*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #4fc3f7;
    --primary-bg: #e8f4fd;
    --accent: #ff6f00;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-light: #888;
    --bg-white: #fff;
    --bg-gray: #f5f8fc;
    --bg-dark: #0a1628;
    --border-color: #e0e7ef;
    --shadow: 0 4px 20px rgba(13, 71, 161, 0.10);
    --shadow-hover: 0 8px 30px rgba(13, 71, 161, 0.18);
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: auto;
    height: 40px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.nav {
    margin-right: auto;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-list ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 6px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 16px 6px 12px;
    border: 1.5px solid var(--primary);
    border-radius: 30px;
    transition: var(--transition);
}

.nav-phone .fa {
    font-size: 1rem;
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-phone:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.nav-phone:hover .fa {
    background: #fff;
    color: var(--primary);
}

.nav-phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-phone-qr {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 100%;
    box-sizing: border-box;
}

.nav-phone-qr::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.nav-phone-qr img {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.nav-phone-qr p {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.3;
}

.nav-phone-wrap:hover .nav-phone-qr,
.nav-phone-qr:hover {
    opacity: 1;
    visibility: visible;
}

/* ============ Footer ============ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    padding-left: 20px;
}

.footer-contact {
    padding-left: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============ Back to Top ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* ============ Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    user-select: none;
}

.pagination a,
.pagination span.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    color: var(--text-secondary);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.pagination span.current,
.pagination .page-btn.current,
.pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
    cursor: default;
}

.pagination .disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .ellipsis {
    border: none;
    background: none;
    color: var(--text-light);
    cursor: default;
    min-width: 24px;
}

.pagination .nav-btn {
    font-size: 1rem;
    font-weight: 700;
}

.pagination .page-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 12px;
    padding: 0 8px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-list ul {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .nav-list.open,
    .nav-list.open ul {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}