/* style.css - PureCollagen 样式表 */

/* 基础设置与变量 */
:root {
    --brand-primary: #ec4899; /* Pink-500 */
    --brand-dark: #be185d;    /* Pink-700 */
    --brand-light: #fce7f3;   /* Pink-100 */
    --text-main: #1f2937;     /* Gray-800 */
    --text-secondary: #4b5563; /* Gray-600 */
    --bg-light: #f9fafb;      /* Gray-50 */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 工具类 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.39);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--white);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero 区域 */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7)), 
                url('/ok.jpg?&w=1920&q=80.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-text .highlight {
    background: linear-gradient(to right, var(--brand-primary), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: rotate(0) scale(1.02);
}

/* 核心功效 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--brand-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: #fbcfe8;
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* 产品列表 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f3f4f6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--brand-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-cart-btn {
    background: var(--text-main);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--brand-primary);
}

/* 科学原理 */
.science-section {
    background: var(--white);
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.science-img-wrapper {
    position: relative;
}

.science-img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.science-list {
    margin-top: 2rem;
}

.science-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.science-num {
    width: 3rem;
    height: 3rem;
    background: var(--brand-light);
    color: var(--brand-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* 最新文章 (新增) */
.news-section {
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 用户反馈 */
.reviews-section {
    background: var(--brand-light);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

/* 品牌承诺 (替换原邮件订阅) */
.promise-section {
    background: var(--text-main);
    color: var(--white);
    padding: 4rem 0;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.promise-item i {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.promise-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.promise-item p {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Footer */
.footer {
    background: var(--white);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--brand-primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid #f3f4f6;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.875rem;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .science-grid {
        grid-template-columns: 1fr;
    }
    
    .science-img-wrapper {
        order: -1;
    }
    
    .promise-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
