/* ====================================================
   速达证件服务中心 - 暗夜紫科技主题
   主色:#6c5ce7 辅助:#1a1a2e 强调:#e94560
   ==================================================== */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5641e0;
    --primary-light: #a29bfe;
    --bg: #1a1a2e;
    --bg-2: #16162a;
    --bg-3: #20203a;
    --card: rgba(40, 40, 70, 0.55);
    --card-solid: #232342;
    --accent: #e94560;
    --accent-2: #ff6b81;
    --text: #e8e8f5;
    --text-muted: #a0a0c0;
    --border: rgba(108, 92, 231, 0.35);
    --glow: 0 0 18px rgba(108, 92, 231, 0.55);
    --glow-accent: 0 0 18px rgba(233, 69, 96, 0.55);
    --radius: 14px;
    --max: 1200px;
    --header-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 10%, rgba(108, 92, 231, 0.18), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(233, 69, 96, 0.12), transparent 45%);
    background-attachment: fixed;
}

a { color: var(--primary-light); text-decoration: none; transition: color .25s, text-shadow .25s; }
a:hover { color: #fff; text-shadow: var(--glow); }

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

ul { list-style: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===================== 顶部导航 ===================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(22, 22, 42, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.header-inner {
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.logo .logo-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: var(--glow);
}
.logo span { color: var(--primary-light); text-shadow: var(--glow); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--text);
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform .3s;
    border-radius: 2px;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* 汉堡按钮 */
.hamburger {
    display: none;
    width: 44px; height: 44px;
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== 主区通用 ===================== */
.main { padding-top: var(--header-h); }
section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
    font-size: 32px;
    color: #fff;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: var(--glow);
}
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 15px; }

/* 页面横幅 */
.page-banner {
    padding: 70px 0 50px;
    text-align: center;
    background:
        linear-gradient(rgba(26,26,46,0.6), rgba(26,26,46,0.9)),
        radial-gradient(circle at 50% 0%, rgba(108,92,231,0.35), transparent 60%);
    border-bottom: 1px solid var(--border);
}
.page-banner h1 {
    font-size: 38px;
    color: #fff;
    text-shadow: var(--glow);
}
.page-banner p { color: var(--text-muted); margin-top: 14px; }
.breadcrumb { margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.breadcrumb a { color: var(--primary-light); }

/* ===================== 轮播图 ===================== */
.carousel {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.carousel-slides { position: relative; height: 100%; }
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.55) 55%, rgba(26,26,46,0.2) 100%);
}
.carousel-caption {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}
.carousel-caption h2 {
    font-size: 44px;
    color: #fff;
    text-shadow: var(--glow);
    max-width: 620px;
}
.carousel-caption p {
    color: var(--text);
    margin-top: 16px;
    max-width: 560px;
    font-size: 17px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.35);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: .25s;
}
.carousel-btn:hover { background: var(--primary); box-shadow: var(--glow); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    z-index: 3;
    display: flex; justify-content: center; gap: 10px;
}
.carousel-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: .25s;
}
.carousel-dots button.active { background: var(--accent); box-shadow: var(--glow-accent); transform: scale(1.2); }

/* ===================== 按钮 ===================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .3s;
    margin-top: 22px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(108,92,231,0.65); color: #fff; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--glow-accent);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(108,92,231,0.15); color: #fff; }

/* ===================== 瀑布流 ===================== */
.masonry { column-count: 3; column-gap: 22px; }
.masonry-item { break-inside: avoid; margin-bottom: 22px; }

/* ===================== 卡片 ===================== */
.card {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s;
    position: relative;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(108,92,231,0.35), 0 0 16px rgba(108,92,231,0.25);
}
.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.card-body { padding: 18px 18px 22px; }
.card-body h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 14px; }
.card-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-2);
    background: rgba(233,69,96,0.14);
    border: 1px solid rgba(233,69,96,0.4);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
}
.card-link:hover { color: var(--accent-2); }

/* 同尺寸图片网格 */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.thumb-grid .card-img { aspect-ratio: 4 / 3; }

/* ===================== 栏目预览（首页） ===================== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.preview-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: .3s;
}
.preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.preview-card .pc-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: var(--glow);
}
.preview-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.preview-card p { color: var(--text-muted); font-size: 13px; }

/* ===================== 关于我们 ===================== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--glow); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 50px; }
.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
}
.stat-box .num { font-size: 34px; font-weight: 800; color: var(--accent-2); text-shadow: var(--glow-accent); }
.stat-box .label { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ===================== 客户评价 ===================== */
.review-card { padding: 22px; }
.review-card .stars { color: #ffd56b; margin-bottom: 10px; letter-spacing: 2px; }
.review-card .text { color: var(--text); font-size: 15px; font-style: italic; margin-bottom: 16px; }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}
.review-card .reviewer-info strong { color: #fff; display: block; font-size: 15px; }
.review-card .reviewer-info span { color: var(--text-muted); font-size: 12px; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: .3s;
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--glow); }
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-question .faq-icon { color: var(--primary-light); font-size: 22px; transition: .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent-2); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    color: var(--text-muted);
    padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 18px; }

/* ===================== 联系我们 ===================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .ci-icon {
    width: 50px; height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(108,92,231,0.18);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.contact-info-item h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: 14px; }
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(20,20,40,0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: .25s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ===================== 友情链接 ===================== */
.links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.link-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: .3s;
    display: flex; align-items: center; gap: 14px;
}
.link-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.link-card .lc-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.link-card h4 { color: #fff; font-size: 15px; margin-bottom: 2px; }
.link-card p { color: var(--text-muted); font-size: 13px; }

/* ===================== 文章页 ===================== */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-meta { color: var(--text-muted); font-size: 14px; margin: 14px 0 24px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.article-meta span { margin-right: 18px; }
.article-content h2 { color: #fff; font-size: 22px; margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-content h3 { color: var(--primary-light); font-size: 18px; margin: 22px 0 10px; }
.article-content p { color: var(--text); margin-bottom: 16px; font-size: 15px; }
.article-content ul { margin: 0 0 18px 20px; }
.article-content ul li { color: var(--text); margin-bottom: 8px; }
.article-content ul li::marker { color: var(--accent); }
.article-img { margin: 22px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-img img { width: 100%; height: 380px; object-fit: cover; }
.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tags a {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-light);
    background: rgba(108,92,231,0.12);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
}
.article-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 16px; }
.article-nav a { color: var(--primary-light); font-size: 14px; }

/* ===================== 页脚 ===================== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col li { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===================== 返回顶部 ===================== */
.back-top {
    position: fixed;
    right: 22px;
    bottom: 100px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .3s;
    box-shadow: var(--glow);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }
