/**
 * 微肽生物 - 主样式表
 * 湖南微肽生物医药有限公司
 */

/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
    /* 主色调 - 专业深蓝+青色 */
    --primary: #1e40af;           /* 深蓝 - 专业、可信 */
    --primary-dark: #1e3a8a;     /* 更深蓝 */
    --primary-light: #3b82f6;     /* 亮蓝 - 悬停 */
    --primary-50: #eff6ff;        /* 最浅蓝 - 背景 */
    --primary-100: #dbeafe;       /* 浅蓝 */
    
    /* 辅助色 - 专业青色 */
    --secondary: #0d9488;         /* 青色 - 创新、科技 */
    --secondary-dark: #0f766e;    /* 深青 */
    --secondary-light: #14b8a6;   /* 亮青 */
    
    /* 强调色 - 琥珀色（用于CTA）*/
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* 中性色 - 专业的灰度系统 */
    --dark: #0f172a;             /* 最深色 - 页脚背景 */
    --gray-900: #1e293b;         /* 标题 */
    --gray-800: #334155;         /* 深色文本 */
    --gray-700: #475569;         /* 正文文本 */
    --gray-600: #64748b;         /* 次要文本 */
    --gray-500: #94a3b8;         /* 占位符 */
    --gray-400: #cbd5e1;         /* 禁用边框 */
    --gray-300: #e2e8f0;         /* 边框 */
    --gray-200: #f1f5f9;         /* 禁用背景 */
    --gray-100: #f8fafc;         /* 卡片背景 */
    --gray-50: #fafbfc;          /* 页面背景 */
    --white: #ffffff;
    
    /* 字体系统 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 字体大小 - 清晰的层次 */
    --text-xs: 0.75rem;          /* 12px */
    --text-sm: 0.875rem;         /* 14px */
    --text-base: 1rem;           /* 16px */
    --text-lg: 1.125rem;         /* 18px */
    --text-xl: 1.25rem;          /* 20px */
    --text-2xl: 1.5rem;         /* 24px */
    --text-3xl: 1.875rem;        /* 30px */
    --text-4xl: 2.25rem;        /* 36px */
    --text-5xl: 3rem;           /* 48px */
    
    /* 行高 */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* 间距系统 - 更多的留白 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* 阴影 - 更微妙、更高级 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 布局 */
    --header-height: 80px;
    --topbar-height: 40px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.3;
    font-weight: 600;
}

ul, ol {
    list-style: none;
}

/* ============================================
   2. Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================
   3. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

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

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

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   4. Top Bar
   ============================================ */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: rgba(255,255,255,.8);
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: var(--white);
}

.top-phone,
.top-email {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-phone svg,
.top-email svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================
   5. Main Header
   ============================================ */
.main-header {
    background: var(--white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
    box-shadow: none;
}

.main-header.scrolled {
    box-shadow: var(--shadow);
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
}

.main-header.scrolled .logo-img {
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .logo-cn {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text .logo-en {
    font-size: 11px;
    color: var(--gray-600);
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ============================================
   6. Main Navigation
   ============================================ */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item.active > .nav-link {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link .icon-arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .icon-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 12px;
}

/* ============================================
   7. Language Switcher
   ============================================ */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: var(--white);
}

.lang-current:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-flag {
    font-size: 16px;
}

.lang-name {
    font-size: 13px;
}

.icon-arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.lang-switcher.open .icon-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   8. Mobile Menu Toggle
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   9. Mobile Menu
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    overflow-y: auto;
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-logo {
    height: 36px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--gray-100);
}

.mobile-nav {
    flex: 1;
    padding: 12px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--gray-800);
    font-weight: 500;
}

.mobile-nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-submenu-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.mobile-submenu-toggle:hover {
    background: var(--gray-100);
}

.mobile-submenu-toggle.open svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background: var(--gray-50);
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 14px;
    color: var(--gray-600);
}

.mobile-submenu a:hover {
    color: var(--primary);
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.mobile-cta-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ============================================
   10. Hero Slider (Homepage)
   ============================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    color: var(--white);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,.9);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: 2px solid rgba(255,255,255,.6);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255,255,255,.3);
    border-color: var(--white);
}

.hero-arrow svg {
    width: 24px;
    height: 24px;
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* ============================================
   11. Page Banner (Inner Pages)
   ============================================ */
.page-banner {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.page-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,115,232,.7) 0%, rgba(0,137,123,.5) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,.9);
    margin-bottom: 24px;
}

.page-banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.page-banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: 2px solid rgba(255,255,255,.6);
    cursor: pointer;
    transition: all var(--transition);
}

.page-banner-dots .dot.active {
    background: var(--white);
    border-color: var(--white);
}

.page-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.page-banner-arrow:hover {
    background: rgba(255,255,255,.3);
}

.page-banner-arrow.prev { left: 20px; }
.page-banner-arrow.next { right: 20px; }

.page-banner-default {
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
}

.page-banner-default::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-default .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   12. Breadcrumb
   ============================================ */
.breadcrumb-nav {
    background: var(--gray-100);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: '/';
    color: var(--gray-400);
    margin-right: 0;
}

.breadcrumb a {
    color: var(--gray-600);
}

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

.breadcrumb [aria-current="page"] {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   13. Section Common Styles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-action {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   14. Video Section
   ============================================ */
.video-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-cover {
    position: relative;
    padding-top: 56.25%;
    background: var(--gray-200);
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.video-card:hover .video-play-btn {
    background: var(--primary);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.video-title {
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.85);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-modal-content video,
.video-modal-content iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.video-modal-close:hover {
    background: rgba(255,255,255,.1);
}

/* ============================================
   15. Category Section
   ============================================ */
.category-section {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition);
    color: var(--gray-700);
}

.category-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--gray-100);
    border-radius: 50%;
    transition: all var(--transition);
}

.category-card:hover .category-icon {
    background: var(--white);
}

.category-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-arrow {
    font-size: 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   16. Product Grid & Cards
   ============================================ */
.products-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.product-image-wrap {
    display: block;
    position: relative;
    padding-top: 75%;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-name a {
    color: var(--dark);
}

.product-name a:hover {
    color: var(--primary);
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.product-brief {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   17. About Section
   ============================================ */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    order: 1;
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-number span {
    font-size: 18px;
    font-weight: 400;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

.about-image {
    order: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ============================================
   18. News Section
   ============================================ */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

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

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-image-wrap {
    display: block;
    position: relative;
    padding-top: 56.25%;
    background: var(--gray-100);
    overflow: hidden;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: var(--dark);
}

.news-title a:hover {
    color: var(--primary);
}

.news-brief {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   19. Partners Section
   ============================================ */
.partners-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    height: 100px;
}

.partner-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.partner-item img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0);
}

/* ============================================
   20. CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   21. Page Content Section (Inner Pages)
   ============================================ */
.page-content-section {
    padding: 60px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-nav {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
}

.sidebar-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

.sidebar-contact {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.sidebar-contact h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.sidebar-contact p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-contact p a {
    font-weight: 600;
    color: var(--primary);
}

.main-content {
    min-width: 0;
}

/* ============================================
   22. Inquiry Form Section
   ============================================ */
.inquiry-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.inquiry-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.inquiry-form .form-group {
    display: flex;
    flex-direction: column;
}

.inquiry-form .form-group-full {
    margin-bottom: 20px;
}

.inquiry-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
}

.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="email"],
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    min-height: 16px;
}

.form-actions {
    margin-top: 24px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--success);
}

.form-success p {
    color: var(--gray-600);
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   23. Captcha Slider
   ============================================ */
.captcha-wrapper {
    margin-bottom: 16px;
}

.captcha-slider-container {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.captcha-bg {
    position: relative;
    width: 100%;
    height: 180px; /* 修改：与PHP生成的高度一致 */
    background: var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

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

.captcha-puzzle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* 确保拼图块在背景图上方 */
}

.captcha-puzzle img {
    width: 52px; /* 修改：与PHP生成的拼图块大小一致 */
    height: 52px;
}

.captcha-slider-track {
    position: relative;
    height: 40px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    overflow: hidden;
}

.captcha-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(26,115,232,.15);
    border-radius: 20px;
    width: 0;
    transition: none;
}

.captcha-slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: grab;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: background var(--transition-fast);
}

.captcha-slider-thumb:active {
    cursor: grabbing;
    background: var(--primary-dark);
}

.captcha-slider-thumb svg {
    width: 16px;
    height: 16px;
}

.captcha-slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

/* ============================================
   24. Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination .current,
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination .dots {
    border: none;
    background: none;
    color: var(--gray-500);
}

/* ============================================
   25. Product Detail Page
   ============================================ */
.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

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

.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

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

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-detail-info .product-category {
    margin-bottom: 16px;
}

.product-detail-brief {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.product-specs {
    margin-bottom: 24px;
}

.product-specs h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-100);
}

.specs-table td {
    padding: 10px 14px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--gray-700);
    width: 30%;
    background: var(--gray-50);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--gray-600);
}

.product-actions {
    display: flex;
    gap: 12px;
}

/* Product Description */
.product-description {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-200);
}

.product-description h2 {
    font-size: 22px;
    margin-bottom: 24px;
}

.product-description .rich-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}

.rich-content p {
    margin-bottom: 16px;
}

.rich-content h2, .rich-content h3, .rich-content h4 {
    margin: 24px 0 12px;
}

.rich-content ul, .rich-content ol {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc;
}

.rich-content li {
    margin-bottom: 6px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.rich-content table td, .rich-content table th {
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
    font-size: 14px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-200);
}

.related-products h2 {
    font-size: 22px;
    margin-bottom: 24px;
}

/* ============================================
   26. News Detail Page
   ============================================ */
.news-detail-section {
    padding: 40px 0 60px;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-article {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.news-article-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.news-article-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-500);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.news-article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
}

.news-article-body p {
    margin-bottom: 16px;
}

/* News Tags */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--gray-600);
}

/* News Navigation */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.news-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.news-nav-item:hover {
    background: var(--primary-light);
}

.news-nav-item.next {
    text-align: right;
}

.news-nav-label {
    font-size: 12px;
    color: var(--gray-500);
}

.news-nav-title {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.news-nav-item:hover .news-nav-title {
    color: var(--primary);
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.news-sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.widget-body {
    padding: 16px 20px;
}

.widget-news-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.widget-news-list li:last-child {
    border-bottom: none;
}

.widget-news-list a {
    font-size: 14px;
    color: var(--gray-700);
    display: block;
    line-height: 1.4;
}

.widget-news-list a:hover {
    color: var(--primary);
}

.widget-news-list .date {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.category-tab {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   27. Downloads Page
   ============================================ */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.download-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.download-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0;
}

.download-icon.pdf { background: #fce8e6; color: #e74c3c; }
.download-icon.doc { background: #e8f0fe; color: #1a73e8; }
.download-icon.xls { background: #e6f4ea; color: #27ae60; }
.download-icon.zip { background: #fef7e0; color: #f39c12; }

.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
}

.download-meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
}

.download-btn {
    flex-shrink: 0;
}

/* ============================================
   28. Contact Page
   ============================================ */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-card-info a {
    color: var(--primary);
}

.contact-map {
    width: 100%;
    height: 400px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 48px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   29. OEM Page
   ============================================ */
.oem-process-section {
    padding: 80px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: var(--gray-600);
}

/* Advantages Grid */
.advantages-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.advantage-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0;
}

.advantage-icon svg {
    width: 24px;
    height: 24px;
}

.advantage-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.advantage-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   30. Registration Page
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 auto 16px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    background: var(--white);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ============================================
   31. Culture Page
   ============================================ */
.culture-section {
    padding: 80px 0;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.culture-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: all var(--transition);
}

.culture-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.culture-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.culture-card:nth-child(3) {
    border-top-color: var(--accent);
}

.culture-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 auto 16px;
}

.culture-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.culture-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Timeline */
.timeline-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 40px;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   32. About Page
   ============================================ */
.about-intro-section {
    padding: 60px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-intro-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-intro-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.about-intro-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-intro-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 16px;
}

/* Certifications */
.cert-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cert-item {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.cert-item img {
    max-height: 100px;
    margin: 0 auto 12px;
}

.cert-item p {
    font-size: 13px;
    color: var(--gray-600);
}

/* ============================================
   33. Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: .5;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================
   34. Footer
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col {
    min-width: 0;
}

.footer-about {
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-link,
.footer-links a,
.footer-services a {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    transition: all var(--transition-fast);
}

.footer-link:hover,
.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact {
    font-size: 13px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.contact-item a {
    color: rgba(255,255,255,.6);
}

.contact-item a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.copyright,
.icp {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

.copyright a,
.icp a {
    color: rgba(255,255,255,.5);
}

.copyright a:hover,
.icp a:hover {
    color: var(--white);
}

/* ============================================
   35. AI Chatbot
   ============================================ */
.chatbot-float {
    position: fixed;
    z-index: 9000;
}

.chatbot-float.bottom-right {
    bottom: 24px;
    right: 24px;
}

.chatbot-float.bottom-left {
    bottom: 24px;
    left: 24px;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.chatbot-icon {
    width: 28px;
    height: 28px;
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-panel.active {
    display: flex;
}

.chatbot-float.bottom-left .chatbot-panel {
    right: auto;
    left: 0;
}

.chatbot-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.chatbot-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.chatbot-close:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}

.bot-message {
    background: var(--gray-100);
    color: var(--gray-800);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
}

.chatbot-input-wrap {
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-input:focus {
    border-color: var(--primary);
}

.chatbot-send {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.chatbot-send:hover {
    background: var(--primary-dark);
}

.chatbot-send svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   36. Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 90px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   37. Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp .6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn .4s ease forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

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