/* 兆客AI - 简洁手机优先样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover { background: #f0f7ff; }

.btn-block { width: 100%; display: block; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 表单卡片 */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-card h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.required { color: #ef4444; }

/* 验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
}

.captcha-text {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
    background: #f0f7ff;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 2px;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 40px 16px;
}

.hero h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.feature {
    background: #f0f7ff;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Header */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
}

.header-bar a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

/* Dashboard */
.dashboard { margin-top: 16px; }

.status-card,
.config-card,
.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.status-card h3,
.config-card h3,
.success-card h3 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.status-item:last-child { border-bottom: none; }

.badge {
    background: #ecfdf5;
    color: #059669;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.alert-warning {
    background: #fef3cd;
    color: #856404;
}

.bot-link input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.tip {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* 支付页面 */
.pay-page { text-align: center; }
.pay-page h1 { font-size: 22px; margin-bottom: 8px; }

.price-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.price-tag {
    font-size: 36px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 16px;
}

.price-features {
    list-style: none;
    text-align: left;
}

.price-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.price-features li:last-child { border-bottom: none; }

.qr-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.qr-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.qr-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-item {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
}

.qr-item img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qr-label {
    font-size: 14px;
    margin-top: 8px;
    color: #555;
}

.pay-actions { margin: 20px 0; }
.pay-note { font-size: 12px; color: #888; margin-top: 12px; }

/* 配置页面 */
.config-card-full h1 { font-size: 20px; }

.success-box {
    background: #ecfdf5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.bot-link-box {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin: 14px 0;
}

.bot-link-box a {
    color: #2563eb;
    font-size: 15px;
    word-break: break-all;
}

.form-actions {
    margin-top: 24px;
}

/* 弹窗 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    max-width: 360px;
    width: 100%;
}

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

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn { flex: 1; }

/* 辅助类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* 飞书Webhook获取教程 */
.webhook-guide {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.guide-toggle {
    width: 100%;
    padding: 10px 16px;
    background: #f9fafb;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.guide-toggle:hover {
    background: #f3f4f6;
}

.guide-content {
    padding: 16px;
    background: #fff;
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
}

.guide-content p {
    margin: 0 0 8px 0;
}

.guide-content .tip {
    color: #dc2626;
    margin-top: 12px;
    margin-bottom: 0;
}
