/* ANTEATER 食蚁兽品牌官网 - 主样式文件 */
/* 包含通用样式、布局组件、响应式断点等 */

/* ============ RESPONSIVE IMAGES ============ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image img,
.product-image img,
.story-image-main img,
.news-image img,
.product-visual-inner img,
.philosophy-visual img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 确保图片在所有容器中正确显示 */
.product-visual-inner,
.philosophy-visual,
.article-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ CSS VARIABLES ============ */
:root {
    /* 品牌色系 */
    --obsidian: #0D0D0D;
    --stone: #F5F0E8;
    --bronze: #C8A882;
    --taupe: #8B6F5C;
    --cream: #FCFAF7;
    --slate: #2C2C2C;
    --warm-light: #E8E4DD;
    
    /* 字体 */
    --font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-body: 'Montserrat', 'Noto Sans SC', sans-serif;
    --font-chinese-body: 'Noto Sans SC', sans-serif;
    
    /* 动画缓动 */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* 阴影 */
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-large: 0 20px 60px rgba(0,0,0,0.15);
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
}

/* ============ BASE STYLES ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-chinese-body);
    background: var(--cream);
    color: var(--obsidian);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
}

.ff-display { font-family: var(--font-display); }
.ff-body { font-family: var(--font-body); }

/* ============ LAYOUT ============ */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 140px 0;
    position: relative;
}

.section-label {
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 500;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--obsidian);
    margin-bottom: 24px;
}

.section-desc {
    font-size: 16px;
    color: var(--taupe);
    max-width: 560px;
    line-height: 2;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 13px;
    letter-spacing: 2px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    cursor: pointer;
    background: var(--obsidian);
    color: var(--cream);
}

.btn:hover {
    background: var(--bronze);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--obsidian);
    color: var(--obsidian);
}

.btn-outline:hover {
    background: var(--obsidian);
    color: var(--cream);
}

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(252, 250, 247, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(252, 250, 247, 0.98);
    box-shadow: var(--shadow-soft);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo svg,
.nav-logo-img {
    height: 31px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--slate);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--bronze);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bronze);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--obsidian);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 24px;
    color: var(--obsidian);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--bronze);
}

/* ============ FOOTER ============ */
.footer {
    background: #0A0A0A;
    color: rgba(232,228,221,0.7);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-text {
    font-size: 14px;
    line-height: 2;
    color: rgba(232,228,221,0.5);
    max-width: 300px;
    margin-top: 20px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-area svg,
.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-col-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--bronze);
    margin-bottom: 24px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(232,228,221,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(232,228,221,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(232,228,221,0.3);
    font-family: var(--font-body);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(232,228,221,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--bronze);
    border-color: var(--bronze);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: rgba(232,228,221,0.5);
    transition: fill 0.3s;
}

.footer-social a:hover svg {
    fill: var(--cream);
}

.footer-social img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-social a:hover img {
    opacity: 1;
}

/* 微信二维码弹窗 */
.wechat-icon-wrapper {
    position: relative;
}

.wechat-qr-popup {
    position: absolute;
    bottom: 60px;
    right: 50%;
    transform: translateX(50%);
    background: var(--cream);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-large);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
    z-index: 1000;
    min-width: 200px;
}

.wechat-icon-wrapper:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
}

.wechat-qr-popup.active {
    opacity: 1;
    visibility: visible;
}

.qr-popup-content {
    text-align: center;
}

.qr-popup-title {
    font-size: 14px;
    color: var(--obsidian);
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 auto;
}

.qr-placeholder p {
    font-size: 12px;
    color: var(--taupe);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--obsidian);
    color: var(--cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--bronze);
    transform: translateY(-4px);
}

/* ============ PAGE HERO ============ */
.page-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--stone);
    text-align: center;
}

.page-hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 300;
    color: var(--obsidian);
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 16px;
    color: var(--taupe);
    font-family: var(--font-display);
    font-style: italic;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .container {
        padding: 0 32px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 100px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .page-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .page-hero-title {
        font-size: clamp(32px, 5vw, 48px);
    }
    
    .page-hero-subtitle {
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 12px;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 68px;
    }
}

/* ============ ANIMATIONS ============ */
/* 滚动动画基础类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll-delay-4 { transition-delay: 0.4s; }

/* 淡入效果 */
.animate-fade-in {
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.animate-fade-in.visible { opacity: 1; }

/* 缩放效果 */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 滑动效果 */
.animate-slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

/* 产品卡片动画 */
.product-card {
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out-expo);
}

/* 价值卡片动画 */
.value-card {
    opacity: 0;
    transform: scale(0.9);
}

.value-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s var(--ease-out-expo);
}

/* 新闻卡片动画 */
.news-card {
    opacity: 0;
    transform: translateY(20px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out-expo);
}

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-column { flex-direction: column; }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
