/* 全局样式 */
:root {
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --bg: #f5f5f7;
    --white: #ffffff;
    --border: #d2d2d7;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

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

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 52px;
    display: flex;
    align-items: center;
}

.navbar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 6px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
}

.nav-link:hover { background: rgba(0,0,0,0.05); }

.nav-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.nav-btn-primary {
    background: var(--primary);
    color: white;
}

.nav-btn-primary:hover { background: var(--primary-hover); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-large { padding: 16px 32px; font-size: 18px; }

.btn-small { padding: 8px 16px; font-size: 13px; }

/* 功能区 */
.features {
    padding: 60px 20px;
    background: white;
}

.features h2, .categories h2, .process h2, .contact h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 32px;
    background: var(--bg);
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 分类 */
.categories {
    padding: 60px 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.category-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 流程 */
.process {
    padding: 60px 20px;
    background: white;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--text-secondary); font-size: 13px; }

.step-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

/* 联系 */
.contact {
    padding: 60px 20px;
    text-align: center;
}

.contact p { margin-bottom: 12px; font-size: 16px; }

/* 页脚 */
.footer {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 语言切换 */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(0,0,0,0.05);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.lang-dropdown.show { display: block; }

.lang-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
}

.lang-option:hover { background: var(--bg); }
.lang-option.active { color: var(--primary); font-weight: 500; }

/* RTL支持 */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
