/* ========================================
   FastAdmin 官网主题 - 深邃黑 + 白蓝点缀
   ======================================== */
:root {
    --bg-deep: #060a12;
    --bg-card: #0d1320;
    --bg-elevated: #111827;
    --border: rgba(96, 165, 250, 0.15);
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --header-h: 72px;
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全页彗星特效层（覆盖全站，不阻挡点击） */
.site-comets {
    position: fixed;
    inset: 0;
    z-index: 998;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.site-comets.is-active {
    opacity: 1;
    visibility: visible;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), #2563eb);
    color: var(--white);
    box-shadow: 0 4px 24px var(--blue-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--blue-glow);
    color: var(--white);
}
.btn-outline {
    border: 1px solid var(--border);
    color: var(--blue-light);
    background: rgba(59, 130, 246, 0.08);
}
.btn-outline:hover {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.18);
    color: var(--white);
}

/* ---------- 导航 ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: all var(--transition);
}
.site-header.scrolled {
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    box-shadow: 0 0 20px var(--blue-glow);
    flex-shrink: 0;
}
img.logo-mark {
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    border-radius: 8px;
}
.site-nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(59, 130, 246, 0.12);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ---------- 主内容区 ---------- */
.site-main { padding-top: var(--header-h); min-height: 60vh; }

/* ---------- 幻灯片 ---------- */
.hero-slider {
    position: relative;
    height: min(88vh, 760px);
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-bg-default {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0a1628 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,10,18,0.3) 0%, rgba(6,10,18,0.75) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-bottom: 60px;
}
.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 28px;
}
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.hero-dot.active {
    background: var(--blue-light);
    box-shadow: 0 0 12px var(--blue-glow);
    width: 28px;
    border-radius: 5px;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(6,10,18,0.6);
    color: var(--white);
    cursor: pointer;
    font-size: 22px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: rgba(59,130,246,0.3); border-color: var(--blue); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--blue-light);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 16px;
}
.section-line {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--blue), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ---------- 简介 ---------- */
.section-intro { background: var(--bg-card); }
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
    font-size: 16px;
    line-height: 1.9;
}
.intro-content p,
.intro-content span,
.intro-content li,
.intro-content div,
.intro-content blockquote,
.intro-content strong,
.intro-content em {
    color: var(--white);
}
.intro-content img { border-radius: var(--radius); margin: 16px 0; }

/* ---------- 产品横向滚动 ---------- */
.section-products { overflow: hidden; }
.product-marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.product-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.product-marquee-wrap:hover .product-marquee-track {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.product-card {
    flex: 0 0 280px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: 0 16px 48px rgba(59,130,246,0.15);
}
.product-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.product-card:hover .product-card-shine { transform: translateX(100%); }
.product-card-title {
    padding: 16px 18px;
    margin: 0;
    font-size: 16px;
    color: var(--white);
}

/* ---------- 文章网格（首页） ---------- */
.section-articles { background: var(--bg-card); }
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.article-card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96,165,250,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.article-card-cover { height: 180px; overflow: hidden; }
.article-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.article-card:hover .article-card-cover img { transform: scale(1.06); }
.article-card-body { padding: 20px; }
.article-card-body time {
    font-size: 13px;
    color: var(--blue-light);
}
.article-card-body h3 {
    margin: 8px 0 0;
    font-size: 17px;
    color: var(--white);
    line-height: 1.5;
}

/* ---------- 内页 Banner ---------- */
.page-banner {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
    border-bottom: 1px solid var(--border);
}
.page-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
}
.page-desc { color: var(--text-muted); margin: 0; }

/* ---------- 列表网格 ---------- */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.grid-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}
.grid-card-img { height: 200px; overflow: hidden; }
.grid-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.grid-card:hover .grid-card-img img { transform: scale(1.06); }
.grid-card-body { padding: 20px; }
.grid-card-body h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--white);
}
.grid-card-link {
    font-size: 14px;
    color: var(--blue-light);
}

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.news-item:hover {
    border-color: rgba(96,165,250,0.35);
    background: var(--bg-elevated);
}
.news-item-cover {
    flex: 0 0 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}
.news-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-item-body time { font-size: 13px; color: var(--blue-light); }
.news-item-body h3 { margin: 8px 0; font-size: 20px; color: var(--white); }
.news-item-more { font-size: 14px; color: var(--text-muted); margin-top: auto; }
.news-item:hover .news-item-more { color: var(--blue-light); }

/* ---------- 详情页 ---------- */
.detail-section { padding-top: 40px; }
.detail-cover {
    max-width: 800px;
    margin: 0 auto 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.detail-content { max-width: 900px; margin: 0 auto; }
.article-content {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.9;
}
.article-content h1, .article-content h2, .article-content h3 { color: var(--white); }
.article-content img { border-radius: 8px; margin: 16px 0; max-width: 100%; }
.article-content a { color: var(--blue-light); }
.detail-back { margin-top: 48px; text-align: center; }
.about-content { max-width: 900px; margin: 0 auto; }
.about-section .about-content {
    color: var(--white);
}
.about-section .about-content p,
.about-section .about-content span,
.about-section .about-content li,
.about-section .about-content div,
.about-section .about-content blockquote,
.about-section .about-content strong,
.about-section .about-content em,
.about-section .about-content h1,
.about-section .about-content h2,
.about-section .about-content h3,
.about-section .about-content h4 {
    color: var(--white);
}
.about-section .about-content a {
    color: var(--blue-light);
}

/* ---------- 分页 ---------- */
.pagination-wrap { margin-top: 48px; text-align: center; }
.pagination-wrap ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-wrap li a,
.pagination-wrap li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.pagination-wrap li.active span,
.pagination-wrap li a:hover {
    background: rgba(59,130,246,0.15);
    border-color: var(--blue);
    color: var(--white);
}
.pagination-wrap li.disabled span { opacity: 0.4; }

/* ---------- 空状态 ---------- */
.empty-tip {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-brand strong { font-size: 20px; color: var(--white); }
.footer-brand p { color: var(--text-muted); margin: 8px 0 24px; font-size: 14px; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--blue-light); }
.footer-copy { font-size: 13px; color: #6b7280; }
.footer-copy a { color: #6b7280; margin-left: 8px; }

/* ---------- 右上角漂浮语言切换 ---------- */
.float-lang {
    position: fixed;
    top: 20px;
    right: 24px;
    left: auto;
    z-index: 1001;
}
.float-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #2563eb);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 32px var(--blue-glow);
    transition: all var(--transition);
}
.float-lang-btn:hover,
.float-lang.is-open .float-lang-btn {
    transform: scale(1.06);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.55);
}
.float-lang-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(13, 19, 32, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    list-style: none;
}
.float-lang.is-open .float-lang-panel {
    display: block;
    animation: floatLangDrop 0.22s ease;
}
@keyframes floatLangDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.float-lang-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.float-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition);
}
.float-lang-item:hover {
    color: var(--white);
    background: rgba(59, 130, 246, 0.12);
}
.float-lang-item.active {
    color: var(--white);
    background: rgba(59, 130, 246, 0.2);
}
.float-lang-item .fa-check {
    font-size: 12px;
    color: var(--blue-light);
}

/* ---------- 右侧悬浮工具栏 ---------- */
.float-sidebar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 14px;
}
.comet-effect-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.comet-switch-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
}
.comet-switch {
    position: relative;
    width: 46px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.comet-switch-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}
.comet-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all var(--transition);
}
.comet-switch.is-on .comet-switch-track {
    background: rgba(59, 130, 246, 0.35);
    border-color: var(--blue);
}
.comet-switch.is-on .comet-switch-thumb {
    left: 22px;
    background: var(--white);
    box-shadow: 0 0 12px var(--blue-glow);
}
.comet-effect-switch:has(.comet-switch.is-on) .comet-switch-label {
    color: var(--blue-light);
}

/* ---------- 漂浮客服 ---------- */
.float-service {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.float-service-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.float-service.open .float-service-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: all var(--transition);
}
.service-item i { font-size: 20px; }
.service-telegram i { color: #29b6f6; }
.service-whatsapp i { color: #25d366; }
.service-item:hover {
    border-color: var(--blue);
    transform: translateX(-4px);
    color: var(--white);
}
.float-service-toggle {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--blue), #2563eb);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 32px var(--blue-glow);
    transition: all var(--transition);
    animation: pulse-glow 2.5s ease-in-out infinite;
}
.float-service-toggle:hover { transform: scale(1.08); }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 32px var(--blue-glow); }
    50% { box-shadow: 0 8px 48px rgba(59,130,246,0.55); }
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .float-lang {
        top: 14px;
        right: 68px;
    }
    .float-lang-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .float-lang-panel {
        min-width: 156px;
        right: 0;
    }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(6,10,18,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link { padding: 14px 16px; }
    .hero-slider { height: 70vh; }
    .hero-arrow { display: none; }
    .section { padding: 56px 0; }
    .product-card { flex: 0 0 240px; }
    .news-item { flex-direction: column; }
    .news-item-cover { flex: none; width: 100%; height: 180px; }
    .float-sidebar { right: 16px; bottom: 16px; }
    .float-service-toggle { width: 50px; height: 50px; font-size: 20px; }
    .comet-effect-switch { padding: 8px 12px; }
    .comet-switch-label { font-size: 12px; }
}
