/* ========================================
   现代极简风格 - 号令天下
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-gray);
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   顶部导航
   ======================================== */
.top-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    flex: 1;
    padding: 48px 24px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   标签页导航
   ======================================== */
.tab-navigation {
    display: flex;
    gap: 8px;
    background: var(--bg-white);
    padding: 6px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.2s;
}

.tab-button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-icon {
    font-size: 18px;
}

/* ========================================
   主卡片
   ======================================== */
.main-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 48px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========================================
   步骤指示器
   ======================================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border-color);
    margin: 0 16px;
}

/* ========================================
   输入区域
   ======================================== */
.input-section {
    margin-bottom: 32px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon {
    font-size: 24px;
    margin-right: 12px;
}

.phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 8px;
    font-size: 18px;
    color: var(--text-dark);
    outline: none;
}

.phone-input::placeholder {
    color: var(--text-light);
}

.input-status {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.hint-icon {
    font-size: 16px;
}

/* ========================================
   分析按钮
   ======================================== */
.analyze-button {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.analyze-button:active {
    transform: translateY(0);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.analyze-button:active .button-ripple {
    width: 300px;
    height: 300px;
}

/* ========================================
   快速功能
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.quick-item {
    text-align: center;
}

.quick-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.quick-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   功能介绍
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon-bg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   靓号推荐
   ======================================== */
.premium-section {
    margin-top: 32px;
}

.premium-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.banner-icon {
    font-size: 48px;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: white;
    color: #d97706;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    white-space: nowrap;
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-arrow {
    font-size: 20px;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.premium-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.premium-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.premium-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.premium-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   免责声明
   ======================================== */
.disclaimer-card {
    display: flex;
    gap: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
}

.disclaimer-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.disclaimer-content {
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

.disclaimer-content strong {
    font-weight: 600;
}

/* ========================================
   标签页内容切换
   ======================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   底部信息
   ======================================== */
.page-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 4px 0;
}

.footer-note {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .main-card {
        padding: 32px 24px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .step-line {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-button {
        width: 100%;
        justify-content: center;
    }
    
    .premium-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-button {
        padding: 12px;
    }
    
    .phone-input {
        font-size: 16px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeIn 0.3s ease-out;
}
