/* ============ 珠海腾画讯飞网络科技有限公司 · 科技风官网样式 ============ */
:root {
    --bg: #060a14;
    --bg-alt: #0a1020;
    --panel: rgba(15, 23, 42, 0.6);
    --border: rgba(56, 189, 248, 0.15);
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --gradient: linear-gradient(135deg, #22d3ee, #3b82f6 50%, #8b5cf6);
    --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

/* ---------- 背景特效 ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
    position: fixed; border-radius: 50%; z-index: -1; pointer-events: none;
    filter: blur(120px); opacity: 0.18;
}
.bg-glow-1 { width: 560px; height: 560px; top: -180px; left: -140px; background: var(--cyan); }
.bg-glow-2 { width: 640px; height: 640px; top: 30%; right: -260px; background: var(--purple); }

/* ---------- 导航 ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.3rem; }
.logo-icon {
    font-family: Consolas, monospace; font-size: 0.95rem; font-weight: 700;
    padding: 5px 9px; border-radius: 8px; color: var(--cyan);
    background: rgba(34, 211, 238, 0.1); border: 1px solid var(--border);
}
.logo-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-menu { display: flex; list-style: none; gap: 34px; }
.nav-link {
    color: var(--text-dim); text-decoration: none; font-size: 0.95rem; position: relative;
    padding: 6px 0; transition: color 0.25s;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--gradient); border-radius: 2px; transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cyan); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 90px; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--cyan);
    padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: rgba(34, 211, 238, 0.06); margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.25; font-weight: 800; margin-bottom: 22px; letter-spacing: 1px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-desc { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
    border-radius: 10px; text-decoration: none; font-size: 0.98rem; font-weight: 600;
    cursor: pointer; border: none; transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(34, 211, 238, 0.45); }
.btn-outline { background: transparent; color: var(--cyan); border: 1px solid var(--border); }
.btn-outline:hover { background: rgba(34, 211, 238, 0.08); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat-num {
    font-size: 2.1rem; font-weight: 800; font-family: Consolas, monospace;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num::after { content: "+"; font-size: 1.4rem; }
.stat-item:nth-child(3) .stat-num::after { content: "%"; }
.stat-label { color: var(--text-dim); font-size: 0.88rem; margin-top: 2px; }

/* 代码窗口 */
.hero-visual { position: relative; }
.code-window {
    background: rgba(10, 15, 30, 0.9); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 44px rgba(34, 211, 238, 0.07);
    overflow: hidden; animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.code-window-header { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #22c55e; }
.code-title { margin-left: 10px; font-size: 0.8rem; color: var(--text-dim); font-family: Consolas, monospace; }
.code-body { padding: 20px; font-family: Consolas, "Courier New", monospace; font-size: 0.86rem; line-height: 1.85; overflow-x: auto; color: #cbd5e1; }
.c-key { color: #c084fc; } .c-str { color: #86efac; } .c-cls { color: #60a5fa; } .c-num { color: #fbbf24; } .c-fn { color: #22d3ee; } .c-com { color: #64748b; }

.floating-card {
    position: absolute; padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; white-space: nowrap;
    background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border); backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: floatY 6s ease-in-out infinite;
}
.fc-1 { top: -22px; right: 8%; animation-delay: 0.6s; color: var(--cyan); }
.fc-2 { bottom: 18%; left: -30px; animation-delay: 1.4s; color: #86efac; }
.fc-3 { bottom: -20px; right: 12%; animation-delay: 2.1s; color: #c084fc; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; font-family: Consolas, monospace; font-size: 0.78rem; letter-spacing: 4px;
    color: var(--cyan); margin-bottom: 12px; padding: 4px 14px; border-radius: 4px;
    background: rgba(34, 211, 238, 0.07); border: 1px solid var(--border);
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section-title.left { text-align: left; }
.section-desc { color: var(--text-dim); font-size: 1rem; }

/* ---------- 服务卡片 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; padding: 34px 28px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.09), transparent 45%);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 16px 44px rgba(34, 211, 238, 0.1); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    font-size: 1.9rem; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; margin-bottom: 20px; background: rgba(34, 211, 238, 0.08); border: 1px solid var(--border);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; }
.service-line {
    position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--gradient);
    transition: height 0.4s; border-radius: 0 3px 3px 0;
}
.service-card:hover .service-line { height: 100%; }

/* ---------- 解决方案 ---------- */
.solutions-list { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.solution-item {
    display: flex; align-items: center; gap: 28px; padding: 28px 32px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border); transition: border-color 0.3s, transform 0.3s;
}
.solution-item:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateX(8px); }
.solution-num {
    font-family: Consolas, monospace; font-size: 2.2rem; font-weight: 800; min-width: 84px; text-align: center;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85;
}
.solution-info h3 { font-size: 1.12rem; margin-bottom: 6px; }
.solution-info p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text > .section-tag { margin-bottom: 14px; }
.about-text > p { color: var(--text-dim); margin: 18px 0 24px; font-size: 0.98rem; }
.about-points { list-style: none; margin-bottom: 28px; }
.about-points li { display: flex; gap: 10px; padding: 7px 0; color: var(--text); font-size: 0.94rem; }
.check {
    color: var(--cyan); font-weight: 700; width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: rgba(34, 211, 238, 0.1); border: 1px solid var(--border); font-size: 0.8rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags span {
    font-family: Consolas, monospace; font-size: 0.8rem; color: var(--text-dim); padding: 5px 14px;
    border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); transition: 0.25s;
}
.tech-tags span:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); }

.about-cards { display: grid; gap: 18px; }
.about-card { padding: 26px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: 0.3s; }
.about-card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }
.ac-icon { font-size: 1.5rem; margin-bottom: 10px; }
.about-card h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--cyan); }
.about-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- 案例 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.case-card:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 18px 46px rgba(59, 130, 246, 0.14); }
.case-cover { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.cc-1 { background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.18)); }
.cc-2 { background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.16)); }
.cc-3 { background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(34, 211, 238, 0.16)); }
.case-body { padding: 24px; }
.case-tag {
    display: inline-block; font-size: 0.75rem; color: var(--cyan); padding: 3px 12px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(34, 211, 238, 0.06); margin-bottom: 12px;
}
.case-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.case-body p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta-banner {
    padding: 76px 0; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.1) 50%, rgba(139, 92, 246, 0.1));
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-banner p { color: var(--text-dim); margin-bottom: 30px; }

/* ---------- 联系我们 ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: 0.3s; }
.contact-item:hover { border-color: rgba(34, 211, 238, 0.4); }
.ci-icon { font-size: 1.35rem; width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(34, 211, 238, 0.08); border: 1px solid var(--border); }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 3px; color: var(--cyan); }
.contact-item p { color: var(--text-dim); font-size: 0.9rem; }

.contact-form { padding: 36px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { position: relative; margin-bottom: 22px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px 16px 8px; border-radius: 10px; font-size: 0.95rem; resize: vertical;
    background: rgba(6, 10, 20, 0.6); border: 1px solid var(--border); color: var(--text); outline: none; transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.form-group label {
    position: absolute; left: 16px; top: 14px; color: var(--text-dim); font-size: 0.92rem;
    pointer-events: none; transition: 0.22s; transform-origin: left top;
}
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-9px) scale(0.78); color: var(--cyan);
}
.form-tip { text-align: center; color: var(--text-dim); font-size: 0.78rem; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.footer { background: #04070f; border-top: 1px solid var(--border); padding: 64px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 16px; }
.footer-links h4 { font-size: 1rem; margin-bottom: 18px; color: var(--text); }
.footer-links a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; padding: 5px 0; transition: color 0.25s; }
.footer-links a:hover { color: var(--cyan); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.footer-bottom p { color: #5b6b82; font-size: 0.85rem; }
.beian-link {
    color: #5b6b82; text-decoration: none; transition: color 0.25s; border-bottom: 1px dashed transparent;
}
.beian-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- 回到顶部 ---------- */
.back-top {
    position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--border); color: var(--cyan); font-size: 1.2rem;
    cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: 0.3s; backdrop-filter: blur(8px); z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }

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

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero { padding-top: 130px; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .fc-2 { left: 0; }
}

@media (max-width: 640px) {
    .nav-menu {
        position: fixed; top: 70px; right: 0; width: 100%; flex-direction: column; gap: 0;
        background: rgba(6, 10, 20, 0.97); border-bottom: 1px solid var(--border);
        padding: 10px 0; transform: translateY(-130%); transition: transform 0.35s; backdrop-filter: blur(12px);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu li { text-align: center; }
    .nav-link { display: block; padding: 14px; }
    .nav-toggle { display: flex; }
    .services-grid, .cases-grid, .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 24px; justify-content: space-between; }
    .stat-item { flex: 1; min-width: 70px; text-align: center; }
    .hide-mobile { display: none; }
    .solution-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .contact-form { padding: 24px; }
}
