/* ============================================
   工业5G HSR/PRP双发选收CPE 企业官网
   极简工业科技风 / 深蓝主色调 / B端适配
   ============================================ */

/* ---------- Reset & Variables ---------- */
:root {
    --primary: #0a1f3f;
    --primary-light: #112d56;
    --accent: #1a6fe0;
    --accent-hover: #1e80f0;
    --accent-glow: rgba(26, 111, 224, 0.15);
    --bg: #f4f6f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #5a6275;
    --text-muted: #8891a5;
    --border: #e2e6ee;
    --border-light: #eef1f6;
    --success: #0ea85e;
    --warning: #e8900a;
    --danger: #d1343a;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --max-width: 1200px;
    --header-h: 64px;
}

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.72;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--primary);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo:hover { color: #fff; opacity: 0.9; }
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.logo-text { white-space: nowrap; }
.logo-img {
    height: 42px;
    width: auto;
}

.main-nav { display: flex; gap: 2px; }
.nav-link {
    color: rgba(255,255,255,0.82);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.10);
}
.nav-link.active { font-weight: 600; }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ---------- Page Header ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2748 50%, #132d52 100%);
    color: #fff;
    padding: 64px 0 56px;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Section ---------- */
.section {
    padding: 64px 0;
}
.section-alt {
    background: var(--bg-white);
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Home Banner ---------- */
.home-banner {
    background: linear-gradient(160deg, #060f20 0%, #0a1f3f 30%, #112a50 60%, #0d1e3a 100%);
    position: relative;
    overflow: hidden;
}
.home-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 400px at 20% 80%, rgba(26,111,224,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 80% 20%, rgba(26,111,224,0.08) 0%, transparent 70%);
}
.banner-content {
    position: relative;
    z-index: 1;
    padding: 100px 0 90px;
    color: #fff;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}
.banner-content .tag {
    display: inline-block;
    background: rgba(26,111,224,0.2);
    color: #6aafff;
    border: 1px solid rgba(26,111,224,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.banner-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.banner-content .subtitle {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    line-height: 1.7;
}
.banner-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 资质认证带 (首页醒目条) ---------- */
.cert-band {
    background: linear-gradient(90deg, #081426, #123a75 50%, #081426);
    border-top: 1px solid rgba(26, 111, 224, 0.45);
    border-bottom: 1px solid rgba(26, 111, 224, 0.45);
    color: #fff;
    text-align: center;
    padding: 16px 0;
    font-size: 1.02rem;
}
.cert-band .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.cert-star { color: #ffd34d; }
.cert-divider { opacity: 0.45; }
.cert-org { color: #ffd34d; font-weight: 700; }
@media (max-width: 600px) {
    .cert-band { font-size: 0.9rem; padding: 12px 0; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,111,224,0.35);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.btn-lg { padding: 14px 34px; font-size: 1rem; }

.btn-submit {
    background: var(--accent);
    color: #fff;
    padding: 12px 40px;
    font-size: 1rem;
}
.btn-submit:hover { background: var(--accent-hover); color: #fff; }

/* ---------- Feature List ---------- */
.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.feature-item:last-child { border-bottom: none; }
.feature-dot {
    flex-shrink: 0;
    width: 8px; height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.feature-item h4 { font-size: 0.97rem; margin-bottom: 2px; color: var(--primary); }
.feature-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Comparison Table ---------- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-top: 24px;
}
.compare-table th, .compare-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
}
.compare-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.compare-table tbody tr:nth-child(even) { background: #f8f9fc; }
.compare-table .highlight {
    background: var(--accent-glow);
    font-weight: 600;
}
.compare-table thead th.highlight {
    background: var(--accent);
    color: #fff;
}

/* ---------- Spec Table ---------- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-top: 16px;
}
.spec-table th, .spec-table td {
    padding: 10px 16px;
    text-align: left;
    border: 1px solid var(--border);
}
.spec-table th {
    background: var(--primary-light);
    color: #fff;
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) { background: #f8f9fc; }

/* ---------- Model Card ---------- */
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.model-card .model-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.model-card .model-tag.standard { background: #e8f0fe; color: var(--accent); }
.model-card .model-tag.premium { background: #fce8e6; color: var(--danger); }
.model-card .model-tag.core { background: #e6f4ea; color: var(--success); }
.model-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--primary); }
.model-card .model-desc { color: var(--text-secondary); font-size: 0.92rem; }
.model-features { margin-top: 14px; }
.model-features li {
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text-secondary);
    list-style: none;
}
.model-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- Solution Block ---------- */
.solution-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.solution-block h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.solution-block .field {
    margin-bottom: 14px;
}
.solution-block .field-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
}
.solution-block .field-value {
    color: var(--text-secondary);
    font-size: 0.93rem;
}

/* ---------- Case Card ---------- */
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow); }
.case-card .case-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 12px;
}
.case-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.case-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 8px; }

/* ---------- Download List ---------- */
.download-list {
    list-style: none;
    display: grid;
    gap: 12px;
}
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.download-item .dl-icon { color: var(--accent); font-size: 1.3rem; margin-right: 12px; }
.download-item .dl-info { flex: 1; }
.download-item .dl-name { font-weight: 600; color: var(--text); }
.download-item .dl-desc { font-size: 0.85rem; color: var(--text-muted); }
.download-item .btn { font-size: 0.85rem; padding: 8px 18px; }

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    background: #fafbfd;
}
.faq-q:hover { background: #f0f3f8; }
.faq-q .faq-arrow { transition: transform .2s; font-size: 0.8rem; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    display: none;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.93rem;
    color: var(--text);
    background: #fff;
    transition: border-color .15s;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Flash ---------- */
.flash-container {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flash {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: flashIn .3s ease-out;
}
.flash-success { background: #e6f7ed; color: #1a7a3a; border: 1px solid #b7e4c7; }

@keyframes flashIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Admin (样机申请后台) ---------- */
.status-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.status-filters a {
    padding: 5px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.status-filters a:hover { color: var(--accent); border-color: var(--accent); }
.status-filters a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-tag[data-status="待跟进"] { background: #fdf0e0; color: #b25e00; }
.status-tag[data-status="已联系"] { background: #e8f0fe; color: #1a6fe0; }
.status-tag[data-status="已寄样"] { background: #e6f4ea; color: #0e8a52; }
.status-tag[data-status="已关闭"] { background: #eef1f6; color: #8891a5; }
.status-select {
    font-size: 0.78rem;
    padding: 2px 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    background: #fff;
}

/* ---------- Footer ---------- */
.footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.footer-logo {
    height: 44px;
    width: auto;
}
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 48px 0 24px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    padding: 3px 0;
}
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 0.88rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--primary); padding: 12px; }
    .main-nav.open { display: flex; }
    .mobile-nav-toggle { display: block; }
    .banner-content h1 { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .banner-content { padding: 60px 0; }
    .banner-content h1 { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
}
