/* ====== 轻站互联 - 完整样式 (SEO 优化版) ====== */

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.page-loaded { opacity: 1; }

/* ====== 颜色系统 ====== */
:root {
    --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-200: #bfdbfe;
    --blue-300: #93c5fd; --blue-400: #60a5fa; --blue-500: #3b82f6;
    --blue-600: #2563eb; --blue-700: #1d4ed8; --blue-800: #1e40af;
    --blue-900: #1e3a5f;
    --cyan-400: #22d3ee; --cyan-500: #06b6d4;
    --gradient-1: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(6,182,212,0.05) 100%);
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-blue-300 { color: var(--blue-300); }
.text-blue-400 { color: var(--blue-400); }
.text-gray-300 { color: #cbd5e1; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #64748b; }
.text-gray-600 { color: #475569; }
.text-white-50 { color: rgba(255,255,255,0.5); }
.bg-dark-primary { background: #0f172a; }
.bg-dark-secondary { background: #0a1628; }

/* ====== 顶部栏 ====== */
.top-bar {
    background: rgba(15,23,42,0.95);
    border-bottom: 1px solid rgba(59,130,246,0.15);
    font-size: 0.85rem;
    color: #94a3b8;
}
.top-bar i { color: var(--blue-400); }
.top-bar .top-bar-info span { display: inline-block; }

/* ====== 导航栏 ====== */
.main-nav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 0.8rem 0;
}
.main-nav.nav-scrolled {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59,130,246,0.2);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    padding: 0.3rem 0;
}
.main-nav .navbar-brand .brand-logo {
    width: 40px; height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.main-nav .brand-name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; color: #fff; }
.main-nav .brand-slogan { font-size: 0.65rem; color: var(--blue-300); line-height: 1; }
.main-nav .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #fff !important;
    background: rgba(59,130,246,0.15);
}
.main-nav .navbar-toggler {
    border-color: rgba(59,130,246,0.3);
    padding: 0.4rem 0.6rem;
}

/* ====== Banner ====== */
.banner-slide {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,58,95,0.7) 50%, rgba(15,23,42,0.6) 100%);
}
.banner-content { padding: 6rem 0 4rem; }
.banner-title {
    font-size: 2.8rem; font-weight: 800; line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.banner-subtitle {
    font-size: 1.3rem; font-weight: 600; color: #fff;
    margin-bottom: 1rem;
}
.banner-desc { font-size: 1.05rem; color: #94a3b8; max-width: 560px; }

@media (max-width: 768px) {
    .banner-slide { min-height: 70vh; }
    .banner-title { font-size: 1.8rem; }
    .banner-subtitle { font-size: 1rem; }
    .banner-content { padding: 5rem 0 3rem; }
}

/* ====== 按钮 ====== */
.btn-gradient {
    background: var(--gradient-1) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
    transition: all 0.3s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}
.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--blue-500);
    color: var(--blue-400);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-outline-gradient:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

/* ====== 区块标题 ====== */
.section { padding: 5rem 0; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: #fff; }
.section-title.text-start h2 { background: none; }
@media (max-width: 768px) { .section { padding: 3rem 0; } .section-title h2 { font-size: 1.6rem; } }

/* ====== 优势卡片 ====== */
.advantage-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 16px;
    transition: all 0.3s;
}
.advantage-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 8px 30px rgba(59,130,246,0.2);
    transform: translateY(-5px);
}
.advantage-icon {
    width: 60px; height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

/* ====== 业务卡片 ====== */
.service-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 16px;
    transition: all 0.3s;
}
.service-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 8px 30px rgba(59,130,246,0.2);
    transform: translateY(-5px);
}
.service-icon {
    width: 56px; height: 56px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}

/* ====== 产品卡片 ====== */
.product-card {
    background: #0a1628;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(59,130,246,0.15);
    transition: all 0.3s;
}
.product-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 8px 30px rgba(59,130,246,0.2);
    transform: translateY(-5px);
}
.product-img { height: 200px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-img-placeholder {
    height: 100%; background: rgba(59,130,246,0.08);
    color: rgba(59,130,246,0.3);
}
.product-info { background: #0f172a; }
.price-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(59,130,246,0.15);
    color: var(--blue-400);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ====== 案例卡片 ====== */
.case-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}
.case-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 8px 30px rgba(59,130,246,0.2);
    transform: translateY(-5px);
}
.case-img { height: 200px; overflow: hidden; position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover .case-img img { transform: scale(1.1); }
.case-img-placeholder {
    height: 100%; background: rgba(59,130,246,0.08);
    color: rgba(59,130,246,0.3);
}
.case-time {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(15,23,42,0.85);
    color: #fff; padding: 0.25rem 0.75rem;
    border-radius: 20px; font-size: 0.8rem;
}

/* ====== 合作伙伴轮播 ====== */
.partner-wrapper { overflow: hidden; }
.partner-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
}
.partner-group { display: flex; gap: 2rem; align-items: center; }
.partner-item {
    flex-shrink: 0;
    width: 140px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
}
.partner-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--blue-400);
}
.partner-item img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.partner-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}
.partner-item span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .partner-item { width: 100px; height: 55px; }
    .partner-track, .partner-group { gap: 1rem; }
}

/* ====== 联系表单 ====== */
.contact-form-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px;
}
.form-control-dark {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(59,130,246,0.2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem;
}
.form-control-dark:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
}
.form-control-dark::placeholder { color: #475569; }
.contact-icon-box {
    width: 44px; height: 44px;
    background: rgba(59,130,246,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-400);
    flex-shrink: 0;
}

/* ====== 页脚 ====== */
.site-footer {
    background: #0a0f1e;
    border-top: 1px solid rgba(59,130,246,0.15);
    padding: 4rem 0 0;
}
.site-footer h5 { color: #fff; font-size: 1rem; }
.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-link:hover { color: var(--blue-400); }
.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(59,130,246,0.1);
    font-size: 0.85rem;
    color: #475569;
}
.social-links a {
    display: inline-flex;
    width: 36px; height: 36px;
    background: rgba(59,130,246,0.1);
    border-radius: 50%;
    align-items: center; justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--gradient-1);
    color: #fff;
}
.contact-list i { color: var(--blue-400); width: 20px; }

/* ====== 返回顶部 ====== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.5);
    color: #fff;
}

/* ====== 面包屑导航 ====== */
.breadcrumb-nav {
    background: rgba(15,23,42,0.8);
    border-bottom: 1px solid rgba(59,130,246,0.1);
}
.breadcrumb-nav .breadcrumb {
    background: transparent;
    margin: 0;
}
.breadcrumb-nav .breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-nav .breadcrumb-item a {
    color: var(--blue-400);
    text-decoration: none;
}
.breadcrumb-nav .breadcrumb-item a:hover { color: var(--blue-300); }
.breadcrumb-nav .breadcrumb-item.active { color: #64748b; }
.breadcrumb-item + .breadcrumb-item::before {
    color: #475569;
}

/* ====== AOS 动画 ====== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1; transform: none; transition: none; }
}

/* ====== 发光影子 ====== */
.shadow-glow {
    box-shadow: 0 8px 40px rgba(59,130,246,0.15);
}

/* ====== 滚动条 ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: var(--gradient-1); border-radius: 3px; }

/* ====== 后台表单增强 ====== */
.form-control-dark {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(59,130,246,0.2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem;
}
.form-control-dark:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
}

/* ====== 响应式 ====== */
@media (max-width: 576px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
}

/* ====== 打印样式 ====== */
@media print {
    .top-bar, .main-nav, .back-to-top, .social-links { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ====== 无障碍 ====== */
.sr-only, .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
