:root {
    --primary: #1a56db;
    --primary-dark: #1040a0;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #0f2b7a 0%, #1a56db 50%, #2563eb 100%);
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-muted: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    will-change: transform;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.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;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(26,86,219,0.3));
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26,86,219,0.08);
}

.nav-customer-service {
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 18px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    animation: pulse-glow 2s ease-in-out infinite;
}

.nav-customer-service i {
    margin-right: 6px;
    font-size: 13px;
}

.nav-customer-service:hover {
    background: linear-gradient(135deg, #fbbf24, #fb923c) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: #fff !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6), 0 0 8px rgba(245, 158, 11, 0.3);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-muted);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.hero-section {
    flex: 1;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px - 100px);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    animation: float3 15s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px - 100px);
}

.hero-info {
    flex: 1;
    color: #fff;
    min-width: 0;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.title-highlight {
    background: linear-gradient(135deg, #06b6d4, #22d3ee, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 4px;
    font-weight: 300;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6,182,212,0.25);
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.feature-text p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    margin-top: 6px;
}

.login-area {
    width: 420px;
    flex-shrink: 0;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0,0,0,0.08);
    animation: slideUp 0.6s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 15px;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:hover {
    border-color: var(--primary-light);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

.form-input:focus ~ .input-icon,
.form-input:focus + .input-icon {
    color: var(--primary);
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-input.success {
    border-color: var(--success);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    transition: var(--transition);
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary);
}

.error-msg {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
    padding-left: 2px;
    transition: var(--transition);
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.remember-me input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me input:checked + .checkmark::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: #fff;
}

.btn-login {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(26,86,219,0.4);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-message {
    text-align: center;
    font-size: 13px;
    min-height: 20px;
    margin-top: 8px;
    transition: var(--transition);
}

.login-message.error {
    color: var(--error);
}

.login-message.success {
    color: var(--success);
}

.login-card.login-success {
    animation: successPulse 0.6s ease-out;
}

.login-card.login-success .login-message.success {
    animation: successText 0.4s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes successText {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-card.login-success::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    animation: successGlow 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes successGlow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}

.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-notice {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    text-align: center;
}

.footer-notice i {
    color: var(--warning);
    font-size: 14px;
    flex-shrink: 0;
}

.footer-privacy {
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom p {
    margin: 0;
    line-height: 1.8;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
        padding: 36px 20px;
    }

    .hero-title {
        font-size: 34px;
    }

    .login-area {
        width: 380px;
    }

    .login-card {
        padding: 32px 28px;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        gap: 32px;
        padding: 32px 20px;
        min-height: auto;
    }

    .hero-info {
        text-align: center;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        letter-spacing: 2px;
        margin-bottom: 28px;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stats-row {
        justify-content: center;
    }

    .login-area {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .main-content {
        align-items: stretch;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 20px;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 12px 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }

    .header-nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-title {
        font-size: 17px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 12px;
    }

    .stats-row {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .login-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .login-form {
        max-height: calc(100vh - 280px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-form::-webkit-scrollbar {
        width: 4px;
    }

    .login-form::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.1);
        border-radius: 2px;
    }

    .footer-notice {
        font-size: 12px;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }

    .login-card {
        padding: 24px 16px;
    }

    .form-input {
        height: 44px;
        font-size: 14px;
    }

    .btn-login {
        height: 46px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .hero-bg-shapes {
        display: none;
    }

    .hero-section {
        background: linear-gradient(135deg, #0f2b7a 0%, #1a56db 100%);
    }

    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .hero-bg-shapes,
    .login-area {
        display: none;
    }
}
