:root {
    --primary: #1a5cb0;
    --primary-dark: #0e3d7a;
    --primary-light: #2a7de6;
    --accent: #e8a020;
    --accent-dark: #c7860a;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a2332;
    --text-body: #4a5568;
    --text-light: #718096;
    --border: #dce3ec;
    --success: #27ae60;
    --error: #e74c3c;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26, 92, 176, 0.08);
}

.nav-link.service-btn {
    color: #fff;
    background: var(--accent);
    font-weight: 600;
}

.nav-link.service-btn:hover {
    background: var(--accent-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0b2545 0%, #1a5cb0 40%, #2a7de6 70%, #5ba3f5 100%);
    z-index: 0;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(232, 160, 32, 0.15), transparent),
        radial-gradient(ellipse 500px 500px at 80% 30%, rgba(42, 125, 230, 0.2), transparent);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
    color: #fff;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 20px;
    margin-bottom: 12px;
    opacity: 0.95;
    letter-spacing: 4px;
}

.hero-sub {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

.login-card {
    width: 400px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px 32px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 4px;
    width: 16px;
    text-align: center;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(26, 92, 176, 0.12);
}

.form-group input.input-error {
    border-color: var(--error);
    background: #fff5f5;
}

.form-group input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 46px;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-pwd:hover {
    color: var(--primary);
}

.error-msg {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
    line-height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 92, 176, 0.35);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin: 16px auto 0;
}

.advantages {
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.advantage-card {
    padding: 36px 28px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 92, 176, 0.15);
}

.adv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.exam-info {
    background: var(--bg-light);
}

.exam-content {
    max-width: 960px;
    margin: 0 auto;
}

.exam-overview {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.exam-overview h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.exam-overview p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-body);
}

.exam-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(26, 92, 176, 0.1), rgba(42, 125, 230, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

.detail-card h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.detail-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.9;
}

.exam-process {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.exam-process h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 28px;
    text-align: center;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.step-text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.step-arrow {
    color: var(--primary);
    font-size: 14px;
    margin-top: -20px;
}

.cases {
    background: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 92, 176, 0.15);
}

.case-avatar {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 14px;
}

.case-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.case-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 12px;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.case-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 14px;
}

.case-rating {
    color: var(--accent);
    font-size: 14px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 28px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.cta-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 160, 32, 0.4);
}

.footer {
    background: #0f1c2e;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col h4 i {
    margin-right: 6px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.9;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-notice {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.8;
}

.footer-notice i {
    color: var(--accent);
    margin-right: 6px;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
    color: #fff;
}

.toast.error {
    background: var(--error);
    color: #fff;
}

.toast.info {
    background: var(--primary);
    color: #fff;
}

.logged-in-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logged-in-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.logged-in-modal .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--success), #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
}

.logged-in-modal h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.logged-in-modal p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.logged-in-modal .welcome-user {
    color: var(--primary);
    font-weight: 700;
}

.modal-btn {
    padding: 12px 36px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 6px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.modal-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(26, 92, 176, 0.35);
}

.modal-btn-secondary {
    background: var(--bg-light);
    color: var(--text-body);
}

.modal-btn-secondary:hover {
    background: var(--border);
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
    }

    .header-nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-link.service-btn {
        display: inline-block;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 24px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .exam-details {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-steps {
        flex-direction: column;
        gap: 4px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 22px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .login-card {
        padding: 24px 16px;
    }

    .section-inner {
        padding: 50px 16px;
    }
}
