
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #fff;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部 */
.header {
    padding: 24px 0 20px;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #25d366;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #ffd479;
}

.subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 auto 16px;
    max-width: 500px;
}

/* 信任徽章 */
.trust-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8aa2c6;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* 输入区域 */
.input-section {
    background: rgba(11, 18, 32, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
    margin-bottom: 12px;
}

input[type="text"]:focus {
    border-color: #25d366;
}

.btn-main {
    background: #25d366;
    color: #03140a;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 热门股票 */
.popular-tickers {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.ticker-chip {
    background: rgba(255, 255, 255, 0.05);
    color: #8aa2c6;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

/* 进度条 */
.progress-section {
    margin: 0 0 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-label {
    color: #cbd5e1;
}

.progress-percent {
    color: #25d366;
    font-weight: 600;
}

.progress-rail {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #25d366;
    transition: width 0.3s;
}

/* WhatsApp区域 - 初始隐藏 */
.whatsapp-section {
    background: rgba(11, 18, 32, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: none;
}

.whatsapp-cta h3 {
    font-size: 1.1rem;
    color: #25d366;
    margin-bottom: 8px;
}

.whatsapp-cta p {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.btn-whatsapp {
    background: #25d366;
    color: #03140a;
    font-weight: 600;
    font-size: 16px;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-benefits {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 11px;
    color: #8aa2c6;
}

/* 页脚 */
footer {
    padding: 20px 0;
    text-align: center;
    color: #7d8ba9;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* 模态框 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    background: rgba(11, 18, 32, 0.98);
    border-radius: 16px 16px 0 0;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: auto;
}

.closex {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    color: #7c8fae;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: #25d366;
    margin-bottom: 6px;
}

.step {
    margin-bottom: 16px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.step-title {
    color: #fff;
}

.step-percent {
    color: #25d366;
    font-weight: 600;
}

.step-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.step-progress-bar {
    height: 100%;
    width: 0;
    background: #25d366;
    transition: width 0.3s;
}

/* 结果展示 */
.result-features {
    display: grid;
    grid-template-columns:1fr;
    gap: 10px;
    margin: 20px 0;
}

.result-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
}

.modal-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式 */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 32px 0 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .input-section {
        padding: 24px;
    }

    .modal {
        align-items: center;
        padding: 20px;
    }

    .modal-card {
        width: min(500px, 92vw);
        border-radius: 12px;
        margin-top: 0;
    }

    .result-features {
        grid-template-columns:repeat(2, 1fr);
    }
}