/* ========================================
   折叠面板式布局 - 现代极简风格
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #ef4444;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px 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-page);
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   头部
   ======================================== */
.app-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 48px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
}

.badge-icon {
    font-size: 16px;
}

/* ========================================
   主内容区
   ======================================== */
.app-main {
    flex: 1;
    padding: 40px 32px;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================
   主分析区域
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    padding: 48px;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.analysis-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    color: var(--text-dark);
}

.input-wrapper {
    margin-bottom: 20px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.label-icon {
    font-size: 18px;
}

.phone-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s;
    outline: none;
}

.phone-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-hint {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--bg-gray);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    display: inline-block;
    transition: all 0.3s;
}

.analyze-button {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 20px;
}

.btn-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 .btn-ripple {
    width: 300px;
    height: 300px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   靓号推荐横幅
   ======================================== */
.premium-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.banner-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.banner-btn {
    padding: 14px 32px;
    background: white;
    color: #f59e0b;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   折叠面板
   ======================================== */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    box-shadow: var(--shadow-lg);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg-gray);
}

.accordion-item.active .accordion-header {
    background: var(--bg-gray);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    font-size: 24px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.expand-icon {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.accordion-item.active .expand-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    transition: max-height 0.5s ease-in;
}

.content-inner {
    padding: 0 32px 32px;
}

/* ========================================
   内容区样式
   ======================================== */
.content-section {
    margin-bottom: 32px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-gray);
}

.content-section p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* 价值网格 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.value-card {
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.value-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

/* 特性列表 */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* 流程步骤 */
.process-steps {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-info p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

.step-arrow {
    font-size: 24px;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* 维度网格 */
.dimension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.dimension-item {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
}

.dimension-percent {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.dimension-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dimension-item p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

/* 算法框 */
.algorithm-box {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.algo-item {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.algo-item:last-child {
    border-bottom: none;
}

.algo-label {
    color: var(--text-dark);
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

.algo-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.algo-list li {
    padding: 4px 0;
}

.note-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
}

.note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.note-box p {
    font-size: 14px;
    color: #92400e;
    margin: 0;
}

/* 免责声明 */
.disclaimer-section {
    margin-bottom: 32px;
}

.disclaimer-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.disclaimer-section.warning {
    background: #fef2f2;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #fecaca;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.warning-box {
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.warning-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.warning-box h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 10px;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.accept-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 12px;
}

.accept-icon {
    width: 36px;
    height: 36px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.accept-notice p {
    font-size: 15px;
    color: #065f46;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   页脚
   ======================================== */
.app-footer {
    background: var(--text-dark);
    color: white;
    padding: 32px;
    text-align: center;
    margin-top: auto;
}

.footer-wrap p {
    font-size: 14px;
    margin: 4px 0;
}

.footer-note {
    font-size: 13px;
    opacity: 0.7;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .header-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .app-main {
        padding: 24px 20px;
    }
    
    .hero-section {
        padding: 32px 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .analysis-box {
        padding: 24px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-btn {
        width: 100%;
    }
    
    .accordion-header {
        padding: 20px;
    }
    
    .content-inner {
        padding: 0 20px 24px;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .warning-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 24px;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
}
