/* ========================================
   闪迅锋科技 - 主样式表
   东莞闪迅峰科技有限公司 | sxfkj.com
   ======================================== */

/* --- CSS 变量 --- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #ff6d00;
    --accent-light: #fff3e0;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --header-height: 70px;
    --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; }

/* --- 容器 --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 顶部信息栏 --- */
.top-bar {
    background: var(--bg-dark);
    color: #9ca3af;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right { display: flex; gap: 16px; }

/* --- 头部导航 --- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-text h1 { font-size: 1.2rem; line-height: 1.2; color: var(--text); }
.logo-text span { font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.15em; }

/* 导航菜单 */
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block;
    padding: 8px 18px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
}
.nav-overlay.active { display: block; }

/* --- 页面横幅 --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-banner p { font-size: 1.05rem; opacity: 0.9; }

/* --- 首页 Hero --- */
.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 40%, #1a73e8 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-content h1 span { color: #ffcc02; }
.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image .hero-illustration {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: #fff;
    color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: #e65100;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- 区块标题 --- */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* --- 特色卡片 --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- 统计数字 --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-item {
    text-align: center;
    padding: 24px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { color: var(--text-light); font-size: 0.95rem; }

/* --- CTA 区块 --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 24px; }

/* --- 页脚 --- */
.site-footer {
    background: var(--bg-dark);
    color: #d1d5db;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #374151;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #9ca3af; }
.footer-col ul li a:hover { color: #fff; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.footer-logo-img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer-contact li { color: #9ca3af; }
.footer-qrcode { text-align: center; }
.qrcode-placeholder {
    width: 100px; height: 100px;
    background: #374151;
    margin: 0 auto 8px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: #fff; }

/* ========================================
   套餐查询页面样式
   ======================================== */
.packages-section { padding: 50px 0; }

/* 品牌字母标签 */
.brand-tabs {
    display: flex;
    flex-wrap: wrap; /* 字母标签允许换行 */
    gap: 6px;
    margin-bottom: 30px;
    padding: 4px 2px 16px;
    border-bottom: 2px solid var(--border-light);
}
.brand-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--bg-gray);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.brand-tab-all {
    width: auto;
    padding: 0 16px;
    font-size: 0.85rem;
    white-space: nowrap; /* 「全部」两字不换行 */
}
.brand-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.brand-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.brand-tab-all {
    width: auto;
    padding: 0 16px;
    font-size: 0.85rem;
}

/* 搜索和工具栏 */
.packages-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}
.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}
.result-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }

/* 套餐表格 */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}
.packages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}
.packages-table thead {
    background: var(--bg-gray);
}
.packages-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}
.packages-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}
.packages-table tbody tr:hover { background: var(--primary-light); }
.packages-table tbody tr:last-child td { border-bottom: none; }
.packages-table .col-brand { font-weight: 600; color: var(--primary); }
.packages-table .col-code { font-family: "SF Mono", "Consolas", monospace; font-size: 0.85rem; }

/* 筛选输入行 */
.filter-row td { padding: 8px 16px; background: #fafbfc; }
.filter-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
}
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-lighter);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .disabled { color: var(--text-lighter); pointer-events: none; }

/* ========================================
   关于页面样式
   ======================================== */
.about-section { padding: 60px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    background: linear-gradient(135deg, var(--primary-light), #e3f2fd);
    border-radius: var(--radius-lg);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.about-content h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 12px; line-height: 1.8; }

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.culture-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.culture-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.culture-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}
.culture-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.culture-card p { color: var(--text-light); font-size: 0.9rem; }

/* 发展历程 */
.timeline {
    position: relative;
    padding: 20px 0;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 14px; height: 14px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-content {
    width: calc(50% - 40px);
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.timeline-content p { color: var(--text-light); font-size: 0.9rem; }

/* ========================================
   联系页面样式
   ======================================== */
.contact-section { padding: 60px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}
.contact-info h2 { font-size: 1.8rem; margin-bottom: 20px; }
.contact-info > p { color: var(--text-light); margin-bottom: 30px; }
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-item-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item-text h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item-text p { color: var(--text-light); font-size: 0.9rem; }

/* 联系表单 */
.contact-form-wrapper {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { text-align: right; }

/* 成功/错误消息 */
.message-box {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 地图占位 */
.map-section {
    height: 300px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 40px;
    border-radius: var(--radius-lg);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 250px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .hero { padding: 50px 0; }
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image .hero-illustration { width: 180px; height: 180px; font-size: 4rem; }

    /* 移动端导航 */
    .mobile-menu-btn { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        padding: 80px 24px 24px;
        transition: right var(--transition);
        z-index: 100;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { padding: 12px 16px; border-radius: var(--radius); }

    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .culture-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 1.6rem; }

    /* Timeline */
    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item:nth-child(odd) { flex-direction: row; }
    .timeline-dot { left: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-left: 50px; }

    .brand-tabs { gap: 4px; }
    .brand-tab { width: 36px; height: 36px; font-size: 0.85rem; }
    .brand-tab-all { width: auto; padding: 0 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-content h1 { font-size: 1.6rem; }
    .top-bar { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 2rem; }
    .contact-form-wrapper { padding: 20px; }
}
