/* 基础重置和变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
}

/* 字体定义 - 使用系统字体栈 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: 16px;
    line-height: 1.5;
    color: var(--slate-900);
    background-color: var(--white);
}

/* 导航栏 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    background-color: var(--emerald-600);
    padding: 0.375rem;
    border-radius: 0.5rem;
}

.navbar-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-800);
}

.navbar-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.navbar-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--emerald-600);
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.btn-login {
    padding: 0.625rem 1.25rem;
    background-color: var(--emerald-600);
    color: var(--white);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.2), 0 4px 6px -2px rgba(5, 150, 105, 0.1);
}

.btn-login:hover {
    background-color: var(--emerald-700);
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-info.show {
    display: flex;
}

.user-greeting {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.user-name {
    font-weight: 700;
    color: var(--emerald-700);
}

.btn-logout {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-600);
    border: 1px solid var(--emerald-600);
    border-radius: 9999px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: var(--emerald-50);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    color: var(--white);
    padding: 5rem 1.5rem;
}

.hero-container {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title-highlight {
    color: var(--emerald-300);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(236, 253, 245, 0.9);
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--emerald-800);
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    transform: translateY(0);
}

.btn-primary:hover {
    background-color: var(--emerald-50);
    transform: translateY(-4px);
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: rgba(16, 185, 129, 0.3);
    color: var(--white);
    border: 1px solid var(--emerald-400);
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(16, 185, 129, 0.5);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* 功能特性区域 */
.features {
    padding: 6rem 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    gap: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--emerald-100);
    color: var(--emerald-600);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--slate-800);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* 流程说明区域 */
.process {
    background-color: var(--slate-50);
    padding: 6rem 1.5rem;
}

.process-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.process-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.process-step {
    flex: 1;
    padding: 0 1rem;
}

.process-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--emerald-200);
    margin-bottom: 1rem;
}

.process-step-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--slate-800);
}

.process-step-description {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.process-arrow {
    display: none;
    color: var(--emerald-300);
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--slate-900);
    color: var(--slate-400);
    padding: 3rem 1.5rem;
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-copyright {
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .navbar {
        padding: 1rem 3rem;
    }

    .navbar-links {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        flex-direction: row;
        gap: 0;
    }

    .process-arrow {
        display: block;
    }

    .footer-container {
        flex-direction: row;
    }

    .footer-brand {
        margin-bottom: 0;
    }
}