:root {
    --primary-color: #d4af37;
    /* Gold */
    --primary-dark: #b5952f;
    --bg-color: #0f172a;
    /* Dark blue/slate */
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: transparent;
    position: relative;
    overflow-x: hidden;
}

/* Page transitions */
.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.4s ease-out forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    padding: 25px 0;
}

.logo {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.9rem;
    line-height: 1.4;
}

header h1 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, #fceabb, #f8b500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Benefits list */
.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.benefits .icon {
    font-style: normal;
    margin-right: 12px;
    font-size: 1.2rem;
}

.benefits strong {
    color: #e2e8f0;
    margin-right: 6px;
}

/* Forms */
.form-section {
    margin-top: 25px;
}

.warning-text {
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
}

/* Buttons */
.action-btn-container {
    padding: 20px 0 40px;
    text-align: center;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 70%, transparent);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:active {
    transform: scale(0.98);
}

.submit-btn-style {
    background: linear-gradient(135deg, var(--success), #059669) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
}

/* Quiz Section */
.minimal-header {
    padding: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--card-bg);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover,
.option-btn:active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
}

/* Results Pages */
.result-page {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.result-page.active {
    display: flex;
}

.icon-fail {
    font-size: 4rem;
    margin-bottom: 20px;
}

.icon-success {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-content h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.result-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

#reject-reason {
    color: var(--danger);
    font-weight: 500;
}

.highlight-text {
    color: var(--success) !important;
    font-size: 1.1rem;
}

/* WeChat Card */
.wechat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-color);
}

.qr-container {
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    display: inline-block;
    margin: 15px 0;
}

.qr-code {
    width: 220px;
    height: 220px;
    display: block;
    object-fit: cover;
}

.tel {
    font-size: 1.2rem !important;
    color: var(--text-main) !important;
    margin-bottom: 0 !important;
}

.tel span {
    color: var(--primary-color);
    font-weight: bold;
}