/* ========================================
   石头优选 - 品牌设计系统
   ======================================== */

:root {
    /* 主色调 - 自然绿色系 */
    --primary-dark: #1a3a2f;
    --primary: #2d5a47;
    --primary-light: #3d7a5f;
    --primary-lighter: #4a9b6f;
    --primary-pale: #e8f3ed;

    /* 辅助色 - 大地色系 */
    --earth-dark: #3d2914;
    --earth: #8b6914;
    --earth-light: #c9a227;
    --earth-pale: #f5efe3;

    /* 强调色 */
    --accent: #d4573c;
    --accent-light: #e87a5f;

    /* 中性色 */
    --bg-primary: #fafaf8;
    --bg-secondary: #f0ebe3;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #8a8a8a;
    --border: #e0dcd5;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(26, 58, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 58, 47, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 58, 47, 0.16);
    --shadow-xl: 0 16px 48px rgba(26, 58, 47, 0.2);

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   全局样式
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   导航栏
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

/* ========================================
   Hero 区域
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--earth-pale) 100%);
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(45, 90, 71, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: scale(1.5);
}

.leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    transform: scale(1.2) rotate(45deg);
}

.leaf-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    transform: scale(0.8) rotate(-30deg);
}

.leaf-4 {
    top: 40%;
    right: 30%;
    animation-delay: -15s;
    transform: scale(1) rotate(60deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-40px) rotate(270deg) scale(1.05);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

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

.stat-number {
    display: block;
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ========================================
   产品展示区
   ======================================== */

.products-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

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

.product-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 产品渐变背景 */
.waxapple-bg {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffeaa7 100%);
}

.chicken-bg {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.milk-bg {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.mooncake-bg {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.apricot-bg {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.rice-bg {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
}

.product-icon {
    font-size: 5rem;
    opacity: 0.8;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.product-badge.heritage {
    background: var(--earth);
}

.product-badge.seasonal {
    background: var(--accent);
}

.product-badge.rare {
    background: var(--earth-light);
}

.product-badge.organic {
    background: var(--primary-lighter);
}

.product-content {
    padding: 1.5rem;
}

.product-origin {
    font-size: 0.85rem;
    color: var(--earth);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
}

/* ========================================
   品牌理念区
   ======================================== */

.philosophy-section {
    padding: 6rem 2rem;
    background: var(--primary-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--earth-light), transparent);
}

.philosophy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.philosophy-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.philosophy-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.philosophy-subtitle span {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

.philosophy-subtitle .plus {
    color: var(--earth-light);
    font-weight: 300;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.philosophy-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.philosophy-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--earth-light);
}

.philosophy-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.philosophy-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.philosophy-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--earth) 0%, transparent 70%);
    opacity: 0.2;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.visual-text {
    position: absolute;
    text-align: center;
    max-width: 280px;
}

.visual-text .quote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.visual-text .author {
    font-size: 0.9rem;
    color: var(--earth-light);
}

/* ========================================
   页脚
   ======================================== */

.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    color: white;
}

.footer-logo span {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-slogan {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-style: italic;
    font-size: 0.85rem;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 968px) {
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .philosophy-visual {
        order: -1;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .products-section,
    .philosophy-section,
    .footer {
        padding: 4rem 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   滚动动画
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   加载动画
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

