:root {
    --primary-color: #0064fa;
    --primary-hover: #0050c8;
    --text-color: #1c1f23;
    --text-secondary: #6b7075;
    --bg-color: #f4f5f7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 100, 250, 0.1) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(0, 100, 250, 0.1) 0%, transparent 20%);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 100, 250, 0.2);
    background: #fff;
}

.upload-box {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(0, 100, 250, 0.02);
}

.upload-box.has-image {
    border-style: solid;
    padding: 0;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.upload-icon {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-right: 8px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
        border-radius: var(--radius-md);
    }
}

/* Steps */
.step-container { display: none; }
.step-container.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Landing Page */
.landing-banner { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 20px; display: none; }
.notice-box { background: rgba(255, 247, 230, 0.8); border: 1px solid rgba(255, 213, 145, 0.5); color: #fa8c16; padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; display: none; }
.service-card { cursor: pointer; transition: transform 0.2s; }
.service-card:hover { transform: translateY(-2px); }
.service-icon { width: 48px; height: 48px; background: rgba(0, 100, 250, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--primary-color); font-size: 24px; }
.service-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.service-desc { color: var(--text-secondary); font-size: 13px; }

/* Progress Bar */
.progress-bar { display: flex; margin-bottom: 30px; position: relative; justify-content: space-between; }
.progress-step { width: 20%; text-align: center; position: relative; z-index: 1; }
.step-dot { width: 24px; height: 24px; background: #ddd; border-radius: 50%; margin: 0 auto 8px; color: white; line-height: 24px; font-size: 12px; font-weight: bold; transition: background 0.3s; }
.progress-step.active .step-dot { background: var(--primary-color); }
.progress-step.completed .step-dot { background: #52c41a; }
.step-label { font-size: 12px; color: #999; }
.progress-step.active .step-label { color: var(--primary-color); font-weight: 500; }
.progress-line { position: absolute; top: 12px; left: 10%; right: 10%; height: 2px; background: #eee; z-index: 0; }
.progress-line-fill { height: 100%; background: #52c41a; width: 0; transition: width 0.3s; }

.btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-secondary { background: #e6f7ff; color: var(--primary-color); }
.btn-secondary:hover { background: #bae7ff; }

/* QR Code */
.qr-container { text-align: center; padding: 20px; }
.qr-img { width: 200px; height: 200px; margin: 0 auto 15px; display: block; }

/* 申请状态 Badge（与 status.php 风格保持一致） */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}
.status-EDITING { background: #fff7e6; color: #fa8c16; }
.status-AUDITING { background: #e6f7ff; color: #1890ff; }
.status-REJECTED { background: #fff1f0; color: #f5222d; }
.status-PASSED { background: #f6ffed; color: #52c41a; }
.status-TO_BE_SIGNED { background: #e6f7ff; color: #1890ff; }
