/* 全局重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Helvetica Neue, sans-serif;
    background: #f0f4f8;
    color: #1a2a3a;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

.dark-mode {
    background: #0f1a2e;
    color: #e0e8f0;
}

a {
    color: #2a6a9a;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffd700;
}

.dark-mode a {
    color: #80bfff;
}

.dark-mode a:hover {
    color: #ffd700;
}

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

/* 头部导航 */
header {
    background: linear-gradient(135deg, #0d2b4a, #1a4f7a, #2a6a9a);
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(13, 43, 74, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

nav a:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #0d2b4a, #1a4f7a);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #0d2b4a;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #8899aa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: #2a6a9a;
    font-weight: 500;
}

.dark-mode .breadcrumb a {
    color: #80bfff;
}

.breadcrumb span {
    color: #aabbcc;
}

.dark-mode .breadcrumb span {
    color: #667788;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #0d2b4a 0%, #1a5a8c 40%, #3a8abf 70%, #5a9abf 100%);
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(3deg); }
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .cta {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #0d2b4a;
    padding: 16px 45px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.hero .cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #e6b800, #ffd700);
}

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.banner-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
    min-width: 100%;
    padding: 70px 40px;
    background: linear-gradient(135deg, #1a4f7a, #0d2b4a);
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.banner-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e6b800, #ffd700);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #3a8abf, #1a5a8c);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #0d2b4a, #5a9abf);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px 0;
}

.banner-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-dots span.active {
    background: #ffd700;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.2);
}

/* 通用区块 */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    font-weight: 700;
    color: #0d2b4a;
    letter-spacing: 1px;
}

.dark-mode .section-title {
    color: #ffd700;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e6b800);
    margin: 12px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e6b800, #ffd700);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dark-mode .card {
    background: rgba(20, 35, 55, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.dark-mode .card:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #0d2b4a;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.dark-mode .card h3 {
    color: #ffd700;
}

.card p {
    font-size: 14px;
    color: #445566;
    line-height: 1.8;
}

.dark-mode .card p {
    color: #b0c0d0;
}

.card svg {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    fill: #0d2b4a;
    transition: transform 0.3s ease;
}

.dark-mode .card svg {
    fill: #ffd700;
}

.card:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

/* 数据统计 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 50px 0;
}

.stat-item {
    font-size: 40px;
    font-weight: 700;
    color: #0d2b4a;
    position: relative;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.dark-mode .stat-item {
    color: #ffd700;
    background: rgba(20, 35, 55, 0.5);
    border-color: rgba(255, 215, 0, 0.1);
}

.stat-item span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #667788;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.dark-mode .stat-item span {
    color: #a0b0c0;
}

/* FAQ 手风琴 */
.faq-item {
    border-bottom: 1px solid #d0d8e0;
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 215, 0, 0.03);
}

.dark-mode .faq-item {
    border-color: #2a3a4a;
}

.faq-question {
    font-weight: 600;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0d2b4a;
}

.dark-mode .faq-question {
    color: #e0e8f0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #556677;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 4px;
}

.dark-mode .faq-answer {
    color: #b0c0d0;
}

.faq-answer.open {
    max-height: 500px;
    padding-top: 14px;
}

.faq-question .arrow {
    transition: transform 0.4s ease;
    font-size: 14px;
    color: #ffd700;
}

.faq-question .arrow.open {
    transform: rotate(180deg);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #0d2b4a, #1a4f7a);
    color: #fff;
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e6b800, #ffd700);
}

.footer a {
    color: #ffd700;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 35px;
}

.footer-grid h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #ffd700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ffd700;
    opacity: 0.6;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #c0d0e0;
}

.footer-grid a {
    color: #b0c8e0;
    transition: all 0.3s;
}

.footer-grid a:hover {
    color: #ffd700;
    padding-left: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0d2b4a, #1a4f7a);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    z-index: 999;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #0d2b4a;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.4);
}

.dark-mode .back-to-top {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #0d2b4a;
}

.dark-mode .back-to-top:hover {
    background: linear-gradient(135deg, #e6b800, #ffd700);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.5);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 25px auto;
}

.search-box input {
    flex: 1;
    padding: 14px 22px;
    border-radius: 30px;
    border: 2px solid #d0d8e0;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #1a2a3a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-box input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.dark-mode .search-box input {
    background: #1a2a3a;
    border-color: #3a4a5a;
    color: #e0e8f0;
}

.dark-mode .search-box input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.search-box button {
    padding: 14px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #0d2b4a;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.search-box button:hover {
    background: linear-gradient(135deg, #e6b800, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0;
        gap: 6px;
    }

    nav ul.open {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .cta {
        padding: 14px 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item {
        font-size: 32px;
        padding: 16px 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .banner-slide {
        padding: 50px 20px;
        font-size: 20px;
    }

    .dark-mode-toggle {
        top: 70px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .cta {
        padding: 12px 28px;
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .stat-item {
        font-size: 26px;
    }

    .stat-item span {
        font-size: 14px;
    }

    .banner-slide {
        padding: 40px 15px;
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .search-box {
        flex-direction: column;
        max-width: 100%;
    }

    .search-box button {
        width: 100%;
    }

    .dark-mode-toggle {
        top: 65px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* 暗色模式下的额外调整 */
.dark-mode .banner-carousel {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.dark-mode .hero {
    background: linear-gradient(135deg, #081a30 0%, #0d2b4a 40%, #1a4f7a 70%, #2a6a9a 100%);
}

.dark-mode .hero h1 {
    background: linear-gradient(135deg, #e0e8f0, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .breadcrumb {
    color: #667788;
}

.dark-mode .breadcrumb span {
    color: #556677;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #0d2b4a;
}

.dark-mode ::selection {
    background: rgba(255, 215, 0, 0.4);
    color: #0d2b4a;
}

/* 卡片内联SVG图标适配 */
.card svg {
    display: block;
}

/* 团队卡片头像SVG调整 */
.card svg circle,
.card svg rect {
    transition: fill 0.3s ease;
}

.card:hover svg circle,
.card:hover svg rect {
    fill: #ffd700;
}

.dark-mode .card:hover svg circle,
.dark-mode .card:hover svg rect {
    fill: #ffd700;
}

/* 页脚法律信息文字颜色 */
.footer-grid li:not(a) {
    color: #b0c8e0;
}

.dark-mode .footer-grid li:not(a) {
    color: #90a8c0;
}

/* 网站地图和友情链接区域 */
.section p a {
    color: #2a6a9a;
    font-weight: 500;
    transition: color 0.3s;
}

.section p a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.dark-mode .section p a {
    color: #80bfff;
}

.dark-mode .section p a:hover {
    color: #ffd700;
}

/* 推荐阅读卡片内链接 */
.card a {
    color: #2a6a9a;
    font-weight: 500;
}

.card a:hover {
    color: #ffd700;
}

/* 确保所有文本在暗色模式下可读 */
.dark-mode .section p {
    color: #c0d0e0;
}

.dark-mode .section .card p {
    color: #b0c0d0;
}

/* 客户评价卡片特殊样式 */
.card p:last-child {
    margin-top: 12px;
    font-weight: 600;
    color: #0d2b4a;
}

.dark-mode .card p:last-child {
    color: #ffd700;
}