@charset "UTF-8";

/* Router-Recovery.com - Premium Modern Design */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #10b981;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--text-light); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
/* a:hover { color: var(--primary-dark); } */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.cta {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.nav-links a.cta:hover {
    background: var(--primary-dark);
    color: white;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-badge span {
    font-size: 1.25rem;
}

/* Sections */
section {
    padding: 50px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-dark h2,
.section-dark p {
    color: white;
}

/* Features Grid */
.features {
    background: var(--bg-alt);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9375rem;
}

/* Brand logos */
.brands {
    text-align: center;
}

.brand-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.brand-logo {
    background: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

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

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

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--bg-alt);
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-list summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

details[open] summary::after { content: '−'; }

.faq-list p {
    padding: 0 24px 20px;
    color: var(--text-light);
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    padding: 80px 24px;
    border-radius: var(--radius);
}

.cta h2 { color: white; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.125rem; margin-bottom: 32px; }
.cta .btn {
    background: white;
    color: var(--primary);
}
.cta .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
    font-size: 0.9375rem;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero { padding: 120px 0 60px; }
    .hero-subtitle { font-size: 1.25rem; }

    .nav-links { display: none; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Step Cards - AdWhiz Style */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.step-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #64748b;
    flex: 1;
    margin-bottom: 20px;
}

.step-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #f8fafc;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* 极简语言切换器 - 胶囊风格 */
.lang-switch-minimal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.lang-switch-minimal a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
    padding: 0 2px;
}

.lang-switch-minimal a:hover {
    color: var(--text);
}

.lang-switch-minimal a.active {
    color: var(--text);
    font-weight: 700;
}

.lang-switch-minimal .sep {
    color: var(--border);
    cursor: default;
    user-select: none;
}

/* 汉堡按钮 - 默认隐藏 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero { padding: 120px 0 60px; }

    /* 手机端隐藏导航链接 */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        z-index: 1000;
    }

    /* 当菜单激活时显示 */
    .nav-links.active {
        display: flex;
    }

    /* 显示汉堡菜单图标 */
    .menu-toggle {
        display: block;
    }

    /* 手机端微调间距 */
    .nav-right {
        gap: 12px;
    }

    .lang-switch-minimal {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Error States */
.error-container {
    text-align: center;
    padding: 100px 20px;
}
.error-code {
    font-size: 120px;
    color: #007aff;
    font-weight: bold;
    margin-bottom: 20px;
}
.error-message {
    font-size: 24px;
    color: #666;
    margin-bottom: 40px;
}
.error-description {
    font-size: 16px;
    color: #999;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 容器保持在原位 */
.lang-expand-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 4px 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* 必须加，隐藏展开前的文字 */
}

/* 图标按钮样式 */
.lang-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.3s;
}

.lang-icon-btn:hover {
    color: var(--primary);
}

/* 文字内容区：初始宽度为0 */
.lang-content {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 展开后的状态 */
.lang-expand-wrapper.expanded .lang-content {
    max-width: 200px; /* 给一个足够大的值 */
    opacity: 1;
    margin-left: 8px; /* 展开后与图标保持间距 */
}

/* 文字与分隔符样式 */
.lang-content a {
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.lang-content a.active {
    color: var(--text);
    font-weight: 700;
}

.lang-content .sep {
    color: var(--border);
    font-size: 0.75rem;
    user-select: none;
}

.selector-container { padding-top: 100px; max-width: 800px; margin: 0 auto; }
.selector-header { text-align: center; margin-bottom: 30px; }
.selector-header h1 { font-size: 32px; color: #333; margin-bottom: 10px; }
.selector-header p { color: #666; font-size: 16px; }
.selector-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid #ddd;
    max-height: 350px; overflow-y: auto;
    display: none; z-index: 100;
    border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.selector-dropdown.show { display: block; }
.selector-dropdown .item {
    padding: 15px 20px; border-bottom: 1px solid #eee; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.selector-dropdown .item:hover { background: #f5f5f5; }
.selector-dropdown .item:last-child { border-bottom: none; }
.selector-dropdown .item .name { font-weight: 500; color: #333; }
.selector-dropdown .item .target { color: #888; font-size: 13px; }
.version-select { margin-bottom: 25px; }
.version-select select {
    width: 100%; padding: 12px 20px; font-size: 16px;
    border: 2px solid #ddd; border-radius: 10px; background: white;
}
.result-info {
    background: #f8f9fa; padding: 20px; border-radius: 10px; margin-bottom: 20px;
    border: 1px solid #eee;
}
.result-info h3 { font-size: 22px; color: #333; margin-bottom: 10px; }
.result-info p { color: #666; font-size: 14px; margin: 0; }
.result-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.result-table th, .result-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #eee; }
.result-table th { background: #007aff; color: white; font-weight: 500; }
.result-table tr:hover { background: #f8f9fa; }
.result-table tr:last-child td { border-bottom: none; }
.result-table a { 
    display: inline-block; padding: 8px 16px; 
    background: #007aff; color: white; text-decoration: none; border-radius: 6px; 
}
.result-table a:hover { background: #0056b3; }
.result-table .mirror { background: #28a745; }
.result-table .mirror:hover { background: #1e7e34; }
.loading { text-align: center; padding: 40px; color: #666; }
.search-wrap { position: relative; }

/* 父容器：开启弹性布局 */
.selector-controls {
    display: flex;
    gap: 10px;          /* 搜索框和版本号之间的间距 */
    align-items: center;
    width: 100%;
    max-width: 800px;   /* 根据你的页面宽度调整 */
    margin-bottom: 20px;
}

/* 强制父容器并排对齐 */
.selector-controls {
    display: flex !important;
    flex-direction: row !important; /* 确保水平排列 */
    align-items: flex-start !important; /* 顶部对齐，防止被拉伸 */
    gap: 10px; /* 搜索框和版本号的间距 */
    width: 100%;
    margin-bottom: 20px;
}

/* 搜索框容器占据剩余所有宽度 */
.selector-search.search-wrap {
    flex: 1 !important; 
    margin: 0 !important; /* 清除可能干扰对齐的外边距 */
    position: relative;
}

/* 搜索输入框样式 */
.selector-search input#model {
    width: 100%;
    height: 42px; /* 固定高度，确保和下拉框一致 */
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0;
}

/* 版本选择器容器 */
.version-select {
    width: 120px !important; /* 限制宽度 */
    flex-shrink: 0; /* 防止被挤压 */
    margin: 0 !important;
}

/* 版本下拉框样式 */
.version-select select#version {
    width: 100%;
    height: 42px; /* 必须与 input#model 的高度完全一致 */
    box-sizing: border-box;
    cursor: pointer;
    padding: 0 10px;
    margin: 0;
}

/* 移动端适配：如果屏幕太窄，自动变回两行 */
@media (max-width: 480px) {
    .selector-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .version-select {
        width: 100%;
    }
}