/**
 * ============================================================
 * 储能企业官网主样式表
 * 主色调: 白色背景 + 品牌蓝 #0084ff（白色主题）
 * 科技感设计: 毛玻璃、发光效果、渐变线条
 * ============================================================
 */

:root {
    /* ===== 白色主题配色（品牌蓝 #0084ff 延续） ===== */
    --primary: #0084ff;                    /* 品牌主蓝：按钮、链接、强调 */
    --primary-light: #0090e8;              /* 亮蓝：渐变端点（白底上调深保可读性） */
    --primary-dark: #0066cc;               /* 深蓝：hover 按压态 */
    --accent: #00b894;                     /* 点缀绿（白底上调深） */
    --dark: #ffffff;                       /* 主背景：白色 */
    --dark-light: #f5f7fa;                 /* 次级背景：浅灰蓝（区块间隔） */
    --dark-lighter: #eef2f8;               /* 卡片/悬浮层级 */
    --text: #1e293b;                       /* 主文字：深蓝灰 */
    --text-muted: #64748b;                 /* 次要文字 */
    --border: rgba(0, 90, 180, 0.12);      /* 边框 */
    --glass: rgba(255, 255, 255, 0.88);    /* 导航栏玻璃拟态 */
    --glass-light: rgba(0, 132, 255, 0.06);/* 浅色玻璃 */
    --glow: 0 0 16px rgba(0, 132, 255, 0.18);      /* 白色主题减弱发光 */
    --glow-cyan: 0 0 16px rgba(0, 132, 255, 0.15);
    --shadow: 0 4px 24px rgba(15, 35, 70, 0.08);   /* 柔和阴影 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--dark);
}

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

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

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: rgba(6, 12, 24, 0.95);
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.top-bar i { color: var(--primary-light); margin-right: 5px; }

/* ========== 科技感导航栏 ========== */
.main-navbar {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 144, 232, 0.1);
    position: relative;
    z-index: 1030;
}

/* 导航栏底部发光线条 */
.main-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--primary-light) 50%, var(--primary) 70%, transparent 100%);
    opacity: 0.6;
}

/* ========== 品牌区域：LOGO + 公司名称 ========== */
.navbar-brand {
    font-size: 1.55rem;
    font-weight: 700;
    padding: 8px 0;
    color: var(--text) !important;
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 65%;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

/* 品牌区域底部渐变光条 — hover时发光 */
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 148, 0.8), rgba(0, 144, 232, 0.8), transparent);
    opacity: 0;
    filter: blur(0.5px);
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 2px;
}

.navbar-brand:hover::after {
    opacity: 1;
}

/* LOGO图片 */
.navbar-brand .brand-logo-img {
    height: 56px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 12px;
    filter: drop-shadow(0 0 6px rgba(0, 144, 232, 0.2));
    transition: var(--transition);
}

/* hover：翡翠绿→天蓝色 多层渐变发光 */
.navbar-brand:hover .brand-logo-img {
    filter: drop-shadow(0 0 4px rgba(0, 184, 148, 0.6))
            drop-shadow(0 0 12px rgba(0, 184, 148, 0.35))
            drop-shadow(0 0 24px rgba(0, 144, 232, 0.3))
            drop-shadow(0 0 40px rgba(0, 180, 255, 0.15));
}

/* 默认图标（无LOGO时） */
.navbar-brand .brand-logo-icon {
    font-size: 1.9rem;
    color: var(--primary-light);
    text-shadow: none; /* 白色主题去除发光 */
    flex-shrink: 0;
    margin-right: 12px;
    transition: var(--transition);
}

/* hover：翡翠绿→天蓝色 多层渐变发光 */
.navbar-brand:hover .brand-logo-icon {
    color: var(--text);
    text-shadow: none; /* 白色主题去除发光 */
}

/* 公司名称文字 */
.navbar-brand .brand-text {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    transition: var(--transition);
}

/* hover：翡翠绿→天蓝色 多层渐变发光 */
.navbar-brand:hover .brand-text {
    text-shadow: none; /* 白色主题去除发光 */
}

/* 导航链接 */
.main-navbar .navbar-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 22px 26px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    letter-spacing: 1px;
}

/* hover效果 - 发光下划线 */
.main-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 144, 232, 0.4);
}

.main-navbar .navbar-nav .nav-link:hover {
    color: var(--text) !important;
    text-shadow: none; /* 白色主题去除发光 */
}

.main-navbar .navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* 当前页面激活状态 */
.main-navbar .navbar-nav .nav-link.active {
    color: var(--text) !important;
    text-shadow: none; /* 白色主题去除发光 */
}

.main-navbar .navbar-nav .nav-link.active::after {
    width: 60%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.5);
}

/* ========== 导航栏右侧工具栏 ========== */
.nav-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
}

.nav-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-tool-btn:hover {
    color: var(--text);
    background: rgba(0, 132, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.2);
}

.nav-tool-btn::after {
    display: none !important;
}

.nav-icon-globe,
.nav-icon-user {
    width: 22px;
    height: 22px;
}

.nav-lang .dropdown-menu,
.nav-account .dropdown-menu {
    background: var(--dark-light);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 160px;
}

.nav-lang .dropdown-item,
.nav-account .dropdown-item {
    color: var(--text);
    font-size: 0.9rem;
    padding: 8px 18px;
    transition: var(--transition);
}

.nav-lang .dropdown-item:hover,
.nav-account .dropdown-item:hover {
    background: var(--dark-lighter);
    color: var(--primary-light);
}

.nav-lang .dropdown-item.active {
    color: var(--primary-light);
    background: rgba(0, 132, 255, 0.1);
}

.nav-lang .dropdown-divider,
.nav-account .dropdown-divider {
    border-color: var(--border);
    margin: 6px 12px;
}

/* 响应式：移动端导航栏修复 */
@media (max-width: 991.98px) {
    .main-navbar > .container {
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }
    .main-navbar .navbar-brand {
        max-width: calc(100% - 110px);
    }
    .main-navbar .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        border-top: 1px solid var(--border);
        margin-top: 0;
        background: #ffffff;
    }
    .main-navbar .navbar-nav {
        padding: 8px 0;
    }
    .main-navbar .navbar-nav .nav-link {
        padding: 12px 15px;
    }
    .main-navbar .navbar-nav .nav-link::after {
        display: none;
    }
    .nav-toolbar {
        margin-left: 0;
    }
}

/* ========== 科技感汉堡菜单 ========== */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: rgba(0, 60, 120, 0.6);
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.25); }

/* 隐藏默认图标 */
.navbar-toggler-icon { display: none; }

/* 自定义三条渐变横线 */
.navbar-toggler {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 5px;
}

.navbar-toggler .toggler-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    box-shadow: 0 0 8px rgba(0, 184, 148, 0.6), 0 0 16px rgba(0, 132, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.navbar-toggler .toggler-bar:nth-child(2) {
    width: 22px;
}

.navbar-toggler:hover .toggler-bar {
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.8), 0 0 24px rgba(0, 132, 255, 0.5);
}

/* 展开状态 - 三条线变X */
.tech-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    box-shadow: 0 0 12px rgba(0, 144, 232, 0.5);
}

.tech-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.tech-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    box-shadow: 0 0 12px rgba(0, 144, 232, 0.5);
}

/* ========== 轮播图 ========== */
.banner-carousel, .banner-carousel .carousel-item { height: 560px; }

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

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.5) 50%, rgba(0, 100, 180, 0.2) 100%);
}

.banner-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 850px;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 0 30px rgba(0, 132, 255, 0.3);
    animation: fadeInDown 1s ease;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    color: var(--text-muted);
}

/* 轮播图按钮 */
.banner-carousel .carousel-indicators button {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.3);
    border: 2px solid transparent;
    transition: var(--transition);
}
.banner-carousel .carousel-indicators button.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 144, 232, 0.5);
}

.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 50px; height: 50px;
    top: 50%; transform: translateY(-50%);
    background: rgba(0, 132, 255, 0.15);
    border: 1px solid rgba(0, 144, 232, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}
.banner-carousel:hover .carousel-control-prev,
.banner-carousel:hover .carousel-control-next { opacity: 1; }
.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    background: rgba(0, 132, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.3);
}

/* ========== 通用板块 ========== */
.section-padding { padding: 50px 0; }

.section-title { text-align: center; margin-bottom: 55px; }

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 144, 232, 0.4);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1rem;
}

/* ========== 特色卡片 ========== */
.feature-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 卡片顶部发光线 */
.feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 132, 255, 0.1), inset 0 1px 0 rgba(0, 144, 232, 0.1);
}

.feature-box:hover::before { opacity: 1; }

.feature-icon {
    width: 70px; height: 70px;
    line-height: 70px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0 auto 22px;
    font-size: 1.8rem;
    color: var(--primary-light);
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.1);
}

.feature-box:hover .feature-icon {
    background: rgba(0, 132, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 144, 232, 0.2);
    transform: scale(1.05);
}

.feature-box h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== 产品卡片 ========== */
.product-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.12);
}

.product-card:hover::before { opacity: 1; }

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

.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 22, 40, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-info { padding: 16px 20px 18px; }

.product-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ========== 应用场景卡片 ========== */
.app-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.12);
}

.app-card:hover::before { opacity: 1; }

.app-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.app-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.app-card:hover .app-img img { transform: scale(1.05); }

.app-info {
    padding: 25px;
    text-align: center;
}

.app-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.app-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== 公司简介页 ========== */
.about-content {
    line-height: 1.9;
    color: var(--text);
}
.about-content p { margin-bottom: 15px; }

.about-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 132, 255, 0.1);
}
.about-img img { width: 100%; height: auto; }

/* 企业文化 */
.culture-item {
    padding: 30px;
    background: var(--dark-light);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
}

.culture-item:hover {
    background: var(--dark-lighter);
    border-color: rgba(0, 132, 255, 0.3);
    border-left: 3px solid var(--primary-light);
    box-shadow: 0 5px 20px rgba(0, 132, 255, 0.08);
}

.culture-item h4 {
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 发展历程 */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light), transparent);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px; top: 25px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--primary-light);
    box-shadow: 0 0 10px rgba(0, 144, 232, 0.3);
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.timeline-text { color: var(--text-muted); margin-top: 5px; }

/* ========== 产品列表页 ========== */
.product-filter { margin-bottom: 35px; }
.product-filter .btn {
    margin: 4px;
    border-radius: 25px;
    padding: 8px 24px;
    border-color: var(--border);
    color: var(--text-muted);
    background: transparent;
}
.product-filter .btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--glass-light);
}
.product-filter .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

/* 产品详情页 */
.product-detail-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.product-detail-info .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

/* Product Specifications 渐变边框卡片 */
.spec-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 50%, #0084ff 100%);
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 144, 232, 0.15), 0 0 50px rgba(0, 184, 148, 0.08);
    transition: var(--transition);
}

.spec-card:hover {
    box-shadow: 0 0 35px rgba(0, 144, 232, 0.25), 0 0 70px rgba(0, 184, 148, 0.12);
}

.spec-card-inner {
    background: var(--dark-light);
    border-radius: 10px;
    overflow: hidden;
}

.spec-header {
    background: rgba(0, 132, 255, 0.08) !important;
    border-bottom: 1px solid rgba(0, 132, 255, 0.2);
    color: var(--text);
}

.spec-header h4 {
    color: var(--text);
    font-weight: 600;
}

.spec-header i {
    color: var(--primary-light);
}

.spec-body {
    color: var(--text);
}

.spec-body .product-description {
    color: var(--text);
    line-height: 1.8;
}

.spec-body .product-description h1,
.spec-body .product-description h2,
.spec-body .product-description h3,
.spec-body .product-description h4,
.spec-body .product-description h5,
.spec-body .product-description h6 {
    color: var(--text);
    margin-bottom: 15px;
}

.spec-body .product-description p {
    color: var(--text);
    margin-bottom: 12px;
}

.spec-body .product-description ul,
.spec-body .product-description ol {
    color: var(--text);
    padding-left: 20px;
    margin-bottom: 15px;
}

.spec-body .product-description ul li,
.spec-body .product-description ol li {
    color: var(--text);
    margin-bottom: 8px;
}

.spec-body .product-description table {
    color: var(--text);
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.spec-body .product-description th {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 15px;
    text-align: left;
}

.spec-body .product-description td {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 15px;
}

.spec-body .product-description strong,
.spec-body .product-description b {
    color: var(--primary-light);
}

.spec-body .product-description a {
    color: var(--primary-light);
    text-decoration: underline;
}

.spec-body .product-description a:hover {
    color: var(--accent);
}

/* ========== 技术支持页 ========== */
.faq-item {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(0, 132, 255, 0.25); }

.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    background: rgba(0, 132, 255, 0.05);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 132, 255, 0.1);
}

.faq-question i { color: var(--primary-light); transition: var(--transition); }
.faq-question.collapsed i { transform: rotate(-90deg); }

.faq-answer {
    padding: 20px 25px;
    color: var(--text);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}

/* ========== 联系我们页 ========== */
.contact-info-box {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    height: 100%;
}

.contact-info-box p.text-muted {
    color: var(--text-muted) !important;
}

.contact-info-item {
    display: flex;
    margin-bottom: 16px;
}

.contact-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.1);
}

.contact-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form-box {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 35px;
    border: 1px solid var(--border);
}

.contact-form-box h3 {
    margin-bottom: 25px;
    color: var(--text);
    font-weight: 600;
}

.form-control, .form-select {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 255, 0.15);
    color: var(--text);
}

.form-control::placeholder { color: var(--text-muted); }

/* ========== 页脚 ========== */
.main-footer {
    background: #f5f7fa;
    color: var(--text-muted);
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.main-footer h5 {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 35px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.footer-contact i {
    color: var(--primary-light);
    margin-right: 10px;
    margin-top: 4px;
    font-size: 1rem;
}

.social-links { margin-top: 14px; }

.btn-pi-entry {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.35);
}
.btn-pi-entry:hover {
    background: linear-gradient(135deg, #9D4EDD, #C77DFF);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.45);
    text-decoration: none;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    margin-right: 10px;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.3);
}

.copyright-bar {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-link { color: var(--text-muted); font-size: 0.85rem; }
.admin-link:hover { color: var(--primary-light); }

/* ========== 面包屑导航 ========== */
.page-banner {
    background: linear-gradient(135deg, #eaf3ff 0%, #d8e9ff 50%, #eaf3ff 100%);
    padding: 25px 0;
    color: var(--text);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* 页面横幅装饰网格 */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 132, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 132, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;   /* 点击穿透装饰层 */
}

.page-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.breadcrumb { background: none; padding: 0; margin: 10px 0 0 0; position: relative; z-index: 10; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary-light); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ========== 按钮样式 ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 10px 28px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.35);
    background: linear-gradient(135deg, #0088ff 0%, var(--primary) 100%);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 10px 28px;
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-outline-light:hover {
    background: rgba(0, 144, 232, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========== 动画 ========== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ========== 辅助样式 ========== */
.bg-light-gray { background: #f5f7fa; }

.text-primary { color: var(--primary-light) !important; }

.badge { font-weight: 500; }
.badge.bg-info { background: rgba(0, 132, 255, 0.2) !important; color: var(--primary-light); }
.badge.bg-success { background: rgba(0, 184, 148, 0.2) !important; color: var(--accent); }

.card {
    background: var(--dark-light);
    border: 1px solid var(--border);
}
.card-header { background: var(--dark-lighter); border-bottom: 1px solid var(--border); }

.table { color: var(--text); }
.table th { background: var(--dark-lighter); color: var(--text); border-color: var(--border); }
.table td { border-color: var(--border); }

.page-link {
    background: var(--dark-light);
    border-color: var(--border);
    color: var(--text);
}
.page-link:hover { background: var(--dark-lighter); border-color: var(--primary); color: var(--primary-light); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-item.disabled .page-link { background: var(--dark-light); border-color: var(--border); color: var(--text-muted); }

/* 统计数字 */
.stats-section {
    background: linear-gradient(135deg, #eaf3ff 0%, #dcecff 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 132, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 144, 232, 0.05) 0%, transparent 50%);
}

.stats-item { text-align: center; position: relative; z-index: 1; }

.stats-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label { font-size: 0.95rem; color: var(--text-muted); }

.view-more { text-align: center; margin-top: 45px; }

.alert-danger { background: rgba(220, 53, 69, 0.1); border-color: rgba(220, 53, 69, 0.3); color: #ff6b7a; }
.alert-success { background: rgba(25, 135, 84, 0.1); border-color: rgba(25, 135, 84, 0.3); color: var(--accent); }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
    border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.5);
}

/* ========== 响应式 ========== */
@media (max-width: 991.98px) {
    .banner-carousel, .banner-carousel .carousel-item { height: 420px; }
    .banner-content h2 { font-size: 2rem; }
    .banner-content p { font-size: 1rem; }
    .main-navbar .navbar-nav .nav-link { padding: 12px 15px; }
    .section-padding { padding: 55px 0; }
    .section-title h2 { font-size: 1.7rem; }
    .stats-number { font-size: 2.2rem; }
}

@media (max-width: 767.98px) {
    .banner-carousel, .banner-carousel .carousel-item { height: 320px; }
    .banner-content h2 { font-size: 1.6rem; }
    .banner-content p { font-size: 0.9rem; }
    .section-padding { padding: 45px 0; }
    .section-title { margin-bottom: 35px; }
    .section-title h2 { font-size: 1.5rem; }
    .stats-number { font-size: 1.8rem; }
    .contact-info-box, .contact-form-box { padding: 25px; }
}

@media (max-width: 575.98px) {
    .banner-carousel, .banner-carousel .carousel-item { height: 260px; }
    .banner-content h2 { font-size: 1.3rem; }
}

/* 表格样式 */
.table-bordered td, .table-bordered th { border-color: var(--border); }

/* 下拉菜单 */
.dropdown-menu {
    background: var(--dark-light);
    border: 1px solid var(--border);
}
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--dark-lighter); color: var(--primary-light); }

/* 品牌区域响应式适配 */
@media (max-width: 1199.98px) {
    .navbar-brand {
        font-size: 1.35rem;
        max-width: 55%;
    }
    .navbar-brand .brand-logo-img {
        height: 32px;
        max-width: 130px;
        margin-right: 10px;
    }
    .navbar-brand .brand-logo-icon {
        font-size: 1.7rem;
        margin-right: 10px;
    }
}

@media (max-width: 991.98px) {
    /* 移动端顶部导航栏加高至 64px，与 shop 页面导航栏一致 */
    .main-navbar > .container,
    .main-navbar > .container-fluid {
        min-height: 64px;
    }
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 50%;
        padding: 4px 0;
    }
    .navbar-brand .brand-logo-img {
        height: 40px;
        max-width: 120px;
        margin-right: 8px;
    }
    .navbar-brand .brand-logo-icon {
        font-size: 1.5rem;
        margin-right: 8px;
    }
    .main-navbar .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff !important;
        padding: 70px 24px 24px;
        border-radius: 0;
        border: none;
        border-left: 1px solid var(--border);
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        display: block !important;
        overflow-y: auto;
    }
    .main-navbar .navbar-collapse.show {
        transform: translateX(0);
    }

    /* 移动端菜单关闭按钮 */
    .mobile-nav-close {
        display: flex;
        position: absolute;
        top: 12px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(15,35,70,0.05);
        color: var(--text-muted);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 10;
        padding: 0;
    }
    .mobile-nav-close svg {
        width: 20px;
        height: 20px;
    }
    .mobile-nav-close:hover {
        color: var(--text);
        background: rgba(15,35,70,0.08);
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.05rem;
        max-width: 55%;
    }
    .navbar-brand .brand-logo-img {
        height: 34px;
        max-width: 100px;
        margin-right: 6px;
    }
    .navbar-brand .brand-logo-icon {
        font-size: 1.3rem;
        margin-right: 6px;
    }
}

/* ========== products.php 产品分类按钮 — 移动端专属样式（只在该页面生效） ========== */
@media (max-width: 767.98px) {
    .product-filter-mobile {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 8px;          /* 纵向10px / 横向8px */
        margin-bottom: 25px;
    }

    .product-filter-mobile .btn {
        white-space: nowrap;     /* 按钮文字不换行 */
        flex-shrink: 0;          /* 按钮不被压缩变形 */
        padding: 7px 16px;       /* 略小但仍保持点击区域 */
        font-size: 0.85rem;
    }
}

/* ========== 新闻列表页 / 新闻详情页 ========== */

/* 新闻卡片 —— 参考 dyness.com 交互效果 */
.news-card {
    background: var(--dark-light);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 18px;
}

/* 卡片底部彩色渐变条 —— hover 时从中间向两边展开 */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), #0084ff, transparent);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.news-card:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 144, 232, 0.08);
}

.news-card:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* 图片区域 —— 基础：高度55% 宽度100% 圆角 */
.news-img {
    position: relative;
    overflow: hidden;
    height: 55%;
    width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

/* hover：直角 宽度100% */
.news-card:hover .news-img {
    border-radius: 0;
    width: 100%;
}

.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.news-img-placeholder {
    width: 100%; height: 100%;
    background: var(--dark-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-placeholder i {
    font-size: 3rem;
    color: rgba(0,132,255,0.18);
}

.news-info {
    padding: 18px 0px 14px;
}

.news-info h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

/* Read More —— 基础白色，hover 变绿色 */
.news-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    gap: 5px;
}

.news-readmore i {
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.news-card:hover .news-readmore {
    color: var(--accent);
}

.news-card:hover .news-readmore i {
    transform: translateX(4px);
    color: var(--accent);
}

/* 新闻详情页 */
.news-detail {
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.news-detail::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.news-detail-meta {
    margin-bottom: 15px;
}

.news-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.3;
}

.news-detail-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: var(--text);
    margin-bottom: 15px;
    margin-top: 25px;
}

.news-detail-content p {
    color: var(--text);
    margin-bottom: 15px;
}

.news-detail-content ul,
.news-detail-content ol {
    color: var(--text);
    padding-left: 25px;
    margin-bottom: 15px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

.news-detail-content table {
    color: var(--text);
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.news-detail-content th {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    padding: 10px 15px;
    text-align: left;
}

.news-detail-content td {
    border: 1px solid var(--border);
    padding: 10px 15px;
}

.news-detail-content strong,
.news-detail-content b {
    color: var(--primary-light);
}

.news-detail-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* 标题与日期分割线 */
.news-detail-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 132, 255, 0.15); /* 和你的 --border 变量一致 */
    margin: 18px 0;
}

/* 上一篇 / 下一篇导航 */
.news-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-top: 10px;
}

.news-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-nav-item--right {
    text-align: right;
    align-items: flex-end;
}

.news-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.news-nav-label i {
    font-size: 0.7rem;
}

.news-nav-link {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-nav-link.disabled {
    color: var(--text-muted);
    cursor: default;
}

/* 新闻详情页视频响应式 — 竖屏/横屏自动适配 */
.news-detail-content video,
.news-detail video {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    aspect-ratio: auto;
    object-fit: contain;
}

/* 新闻页面响应式 */
@media (max-width: 991.98px) {
    .news-detail { padding: 30px; }
    .news-detail-title { font-size: 1.5rem; }
    .news-img { height: 200px; }
}

@media (max-width: 767.98px) {
    .news-detail { padding: 20px; }
    .news-detail-title { font-size: 1.25rem; }
    .news-img { height: 180px; }
}

/* ========== Download Center (Support Page) ========== */
.doc-list {
    max-width: 800px;
    margin: 0 auto;
}

.doc-item {
    display: flex;
    align-items: center;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: var(--transition);
    position: relative;
}

.doc-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-item:hover {
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 5px 25px rgba(0, 132, 255, 0.08);
}

.doc-item:hover::before {
    opacity: 1;
}

.doc-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-right: 18px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.doc-icon .bi-file-earmark-pdf { color: #ff6b6b; }
.doc-icon .bi-file-earmark-excel { color: var(--accent); }
.doc-icon .bi-file-earmark-word { color: #4dabf7; }
.doc-icon .bi-file-earmark-slides { color: #ffa94d; }
.doc-icon .bi-file-earmark-text { color: #adb5bd; }

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

.doc-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.doc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(0, 132, 255, 0.25);
    margin-left: 15px;
}

.doc-download-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
}

.doc-download-btn i {
    font-size: 0.9rem;
}

/* Download Center 响应式 */
@media (max-width: 767.98px) {
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 18px;
    }

    .doc-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .doc-info h4 {
        white-space: normal;
    }

    .doc-download-btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
 * 【新增代码】多语言弹窗 + 会员登录注册页面样式
 * ============================================================ */

/* ---------- 多语言弹窗 ---------- */
.lang-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lang-popup.show {
    opacity: 1;
    visibility: visible;
}

.lang-popup-content {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.lang-popup.show .lang-popup-content {
    transform: translateY(0) scale(1);
}

.lang-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.lang-popup-header h5 {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.lang-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.lang-popup-close:hover {
    color: var(--text);
    background: rgba(15,35,70,0.08);
}

.lang-popup-body {
    padding: 10px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.lang-item:hover {
    background: var(--dark-lighter);
    color: var(--primary-light);
}

.lang-item-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.lang-item-disabled .lang-check {
    color: var(--accent);
}

.lang-name {
    font-size: 1rem;
    font-weight: 500;
}

.lang-native {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-check {
    font-size: 1.2rem;
}

/* ---------- Account / 登录注册页面通用样式 ---------- */
.auth-page {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

.auth-page .main-navbar {
    position: relative;
}

.auth-page .nav-toolbar {
    display: none !important;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px 40px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

.auth-step-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-title {
    color: var(--text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

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

.auth-form-label {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* 密码输入框带眼睛图标 */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 48px;
}

.auth-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.auth-eye-btn:hover {
    color: var(--text);
}

/* 按钮 */
.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.25);
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid var(--border);
}

.auth-btn-secondary:hover {
    background: var(--glass-light);
    border-color: var(--primary);
}

/* 错误提示 */
.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ff6b7a;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.auth-error i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 链接 */
.auth-link {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--text);
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* 邮箱显示（第二步） */
.auth-email-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    color: var(--text);
    font-size: 1rem;
}

.auth-email-display span {
    word-break: break-all;
}

/* 返回链接 */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.auth-back-link:hover {
    color: var(--text);
}

/* ---------- 注册页面 ---------- */
.register-hcaptcha {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--dark-lighter);
    text-align: center;
}

.register-hcaptcha-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* 密码强度提示 */
.pwd-requirements {
    margin-top: 10px;
}

.pwd-requirements-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.pwd-rule.valid {
    color: var(--accent);
}

.pwd-rule.invalid {
    color: #ff6b7a;
}

.pwd-rule i {
    font-size: 0.75rem;
}

/* 验证码输入框 */
.verify-code-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.verify-code-input {
    width: 50px;
    height: 60px;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    outline: none;
}

.verify-code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

/* 倒计时 */
.countdown-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
}

.countdown-text span {
    color: var(--primary-light);
    font-weight: 600;
}

/* checkbox */
.auth-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
}

.auth-checkbox-wrap input[type="checkbox"] {
    width: 23px;
    height: 23px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-wrap label {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
}

/* select */
.auth-select {
    width: 100%;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9bb4' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.auth-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.auth-select option {
    background: var(--dark-lighter);
    color: var(--text);
}

/* loading */
.auth-loading {
    text-align: center;
    padding: 60px 20px;
}

.auth-loading h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.auth-loading p {
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 767.98px) {
    .auth-container {
        padding: 30px 16px;
    }
    .auth-title {
        font-size: 1.6rem;
    }
    .verify-code-input {
        width: 42px;
        height: 52px;
        font-size: 1.3rem;
    }
    .lang-popup-content {
        margin: 16px;
    }
}

/* ========== 【新增】会员中心 ========== */
.member-wrap {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--dark);
}

.member-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--dark);
    padding: 30px 0;
}

.member-nav {
    display: flex;
    flex-direction: column;
}

.member-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.member-nav-item:hover {
    color: var(--text);
    background: var(--glass-light);
}

.member-nav-item.active {
    color: var(--text);
}

.member-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sign Out 分隔 */
.member-nav-item.logout {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    color: #ff6b7a;
}

.member-nav-item.logout:hover {
    color: #ff8a9a;
    background: rgba(220, 53, 69, 0.08);
}

/* 右侧主内容区 */
.member-main {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

.member-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 35px;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
}

.member-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.member-card:hover {
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.member-card-body {
    padding: 28px;
}

.member-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.member-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.member-card-link {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.member-card-link:hover {
    color: var(--primary);
}

/* ========== 移动端：触发器 + 下拉面板 ========== */
.member-mobile-trigger {
    display: none;
}

.member-mobile-panel {
    display: none;
}

/* 响应式 */
@media (max-width: 991.98px) {
    .member-wrap {
        flex-direction: column;
    }

    /* 移动端顶部触发器 */
    .member-mobile-trigger {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        background: var(--dark);
    }

    .member-trigger-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text);
    }

    .member-trigger-inner svg:first-child {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

    .member-trigger-text {
        font-size: 18px;
        font-weight: 700;
        margin-right: 4px;
    }

    .member-trigger-arrow {
        width: 25px;
        height: 25px;
        transition: transform 0.2s ease;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-top: 2px;
    }

    /* 移动端下拉面板 */
    .member-mobile-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        z-index: 1050;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .member-mobile-panel.show {
        opacity: 1;
        visibility: visible;
    }

    .member-panel-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 15px;
    }

    .member-panel-close {
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
        transition: color 0.2s;
    }

    .member-panel-close:hover {
        color: var(--text);
    }

    .member-panel-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .member-panel-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        color: var(--text-muted);
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 8px;
        transition: var(--transition);
    }

    .member-panel-item:hover {
        color: var(--text);
        background: var(--glass-light);
    }

    .member-panel-item.active {
        color: var(--text);
        background: var(--glass-light);
    }

    .member-panel-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .member-panel-item.panel-logout {
        color: #ff6b7a;
    }

    .member-panel-item.panel-logout:hover {
        color: #ff8a9a;
        background: rgba(220, 53, 69, 0.08);
    }

    /* 主内容区 */
    .member-main {
        padding: 25px 20px;
    }

    .member-cards {
        grid-template-columns: 1fr;
    }
}
