/* ================= 核心变量 ================= */
:root {
    --bg-color: #070b14; /* 深邃黑蓝 */
    --card-bg: rgba(16, 25, 43, 0.6); /* 毛玻璃背景 */
    --primary: #00f0ff; /* 科技青 */
    --secondary: #7000ff; /* AI紫 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 240, 255, 0.15);
}

/* ================= 全局 & 重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ================= 动态背景光晕 ================= */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float-glow 10s infinite alternate ease-in-out;
}
.glow-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
}
.glow-2 {
    background: var(--secondary);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* ================= 导航栏 (毛玻璃) ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* ================= 通用布局 ================= */
section {
    padding: 120px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 16px;
    letter-spacing: 2px;
}

/* ================= 滚动动画类 ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= 首屏 Banner ================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), #a200ff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-glow {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
}

/* ================= 公司简介 ================= */
.about-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: 18px;
    color: #cbd5e1;
    line-height: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ================= 核心产品 (科技卡片) ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.product-card:hover::before {
    left: 200%;
    transition: 0.7s;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.product-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #fff;
}

.product-card > p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
}

.feature-list {
    text-align: left;
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li i {
    color: var(--primary);
    margin-top: 4px;
}

/* ================= 技术优势 ================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, rgba(16, 25, 43, 0) 0%, rgba(16, 25, 43, 0.6) 100%);
    border-bottom: 2px solid var(--border-color);
    border-radius: 15px;
    transition: 0.3s;
}

.tech-item:hover {
    border-bottom-color: var(--secondary);
    background: linear-gradient(180deg, rgba(16, 25, 43, 0) 0%, rgba(112, 0, 255, 0.1) 100%);
}

.tech-item i {
    font-size: 35px;
    color: var(--text-main);
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

/* ================= 联系我们 ================= */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.contact-item i {
    font-size: 20px;
    color: var(--primary);
}

/* ================= 单独文本页专属样式 (如协议、政策、备案) ================= */
.text-page-section {
    padding-top: 150px; /* 留出导航栏空间 */
    padding-bottom: 80px;
    min-height: calc(100vh - 80px); /* 让页面撑满屏幕，页脚沉底 */
}

.text-content-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    color: #cbd5e1; /* 柔和的白色，避免长文刺眼 */
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.text-content-box h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.text-content-box h2 {
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.text-content-box p {
    margin-bottom: 15px;
    font-size: 16px;
}

.text-content-box a {
    color: var(--primary);
    text-decoration: none;
}

.text-content-box a:hover {
    text-decoration: underline;
}

/* ================= 页脚 ================= */
footer {
    text-align: center;
    padding: 30px;
    background: #04070c;
    color: #475569;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

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

footer .footer-links {
    margin-top: 10px;
}

/* ================= 响应式 ================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 16px; }
    .section-title { font-size: 32px; }
    .about-box, .text-content-box { padding: 30px 20px; }
    .text-content-box h1 { font-size: 26px; }
}
