/* ========================================
   卡树科技 CardSoon - 高级灰极简设计系统
   ======================================== */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Logo 字体 */
@font-face {
    font-family: 'Avenir Next';
    src: url('/assets/fonts/Avenir Next.ttc');
}
@font-face {
    font-family: 'YousheTitleBlack';
    src: url('/assets/fonts/优设标题黑.ttf');
    font-weight: 700;
}

/* ========================================
   高级灰色彩体系 - 柔和、克制、有层次
   ======================================== */
:root {
    /* 品牌主色 - 低饱和度绿，克制不张扬 */
    --brand: #8BAF51;
    --brand-light: #A5C673;
    --brand-dark: #6B8A3E;

    /* 高级灰体系 - 从浅到深12级灰度，层次分明 */
    --gray-50: #FAFAFA;    /* 页面背景 */
    --gray-100: #F5F5F5;   /* 卡片背景 */
    --gray-200: #EDEDED;   /* 分割线 */
    --gray-300: #E0E0E0;   /* 边框 */
    --gray-400: #BDBDBD;   /* 禁用状态 */
    --gray-500: #9E9E9E;   /* 次要文字 */
    --gray-600: #757575;   /* 正文 */
    --gray-700: #616161;   /* 强调文字 */
    --gray-800: #424242;   /* 标题 */
    --gray-900: #212121;   /* 主标题 */

    /* 白色 */
    --white: #FFFFFF;
}

/* ========================================
   基础样式 - 极简、克制、高级
   ======================================== */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Logo 专属字体 */
.logo-text {
    font-family: 'Avenir Next', 'YousheTitleBlack', sans-serif;
    letter-spacing: 0;
}

.logo-zh {
    font-family: 'YousheTitleBlack', sans-serif !important;
    font-weight: 700 !important;
}

.logo-en {
    font-family: 'Avenir Next', 'Avenir', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
}

/* ========================================
   排版系统 - 极简、有呼吸感
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

p {
    color: var(--gray-700);
    line-height: 1.8;
}

/* ========================================
   图片响应式系统
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.product-card-img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .product-card-img-container {
        height: 200px;
    }
}

@media (min-width: 768px) {
    .product-card-img-container {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .product-card-img-container {
        height: 240px;
    }
}

.hero-img-container {
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-height {
    max-height: 280px;
}

@media (min-width: 640px) {
    .hero-img-container {
        max-height: 380px;
    }
    .hero-img-height {
        max-height: 380px;
    }
}

@media (min-width: 768px) {
    .hero-img-container {
        max-height: 450px;
    }
    .hero-img-height {
        max-height: 450px;
    }
}

@media (min-width: 1024px) {
    .hero-img-container {
        max-height: 520px;
    }
    .hero-img-height {
        max-height: 520px;
    }
}

.feature-img-container {
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img-height {
    max-height: 180px;
}

@media (min-width: 768px) {
    .feature-img-container {
        max-height: 280px;
    }
    .feature-img-height {
        max-height: 280px;
    }
}

.timeline-img-container {
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .timeline-img-container {
        max-height: 200px;
    }
}

.mode-img-container {
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .mode-img-container {
        max-height: 200px;
    }
}

/* ========================================
   极简工具类 - 克制不张扬
   ======================================== */

/* 文字颜色 */
.text-brand { color: var(--brand); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

/* 背景色 */
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-white { background-color: var(--white); }
.bg-brand { background-color: var(--brand); }

/* 边框 */
.border-gray-200 { border-color: var(--gray-200); }

/* 品牌渐变 - 极克制 */
.brand-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

/* 极简卡片悬浮 - 轻微位移，柔和阴影 */
.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

/* 极简圆角 - 统一规范 */
.rounded-card {
    border-radius: 16px;
}

/* 新闻内容间距 */
.news-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ========================================
   高级交互特效 - 克制、优雅、有品质
   ======================================== */

/* 极简毛玻璃 - 低透明度，不抢眼 */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.glass-footer {
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* 极简悬浮动画 - 轻微且优雅 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

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

/* 极简渐变文字 - 低饱和度 */
.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 极简下拉菜单 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-trigger:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 极简按钮 - 克制的悬浮效果 */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -10px rgba(139, 175, 81, 0.4);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文字 - 柔和品牌色 */
::selection {
    background: rgba(139, 175, 81, 0.15);
    color: var(--gray-900);
}
