        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: "HarmonyOS Sans SC",-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            scroll-behavior: smooth;
        }
        
        
        /* 第一屏相对定位，用于放置轮播图 */
.query-section {
    position: relative;
    overflow: hidden;
}

/* 轮播图容器 */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 轮播图图片 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* 网格滤镜 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;  /* 让点击穿透到卡片 */
}

/* 确保卡片在滤镜上方 */
.query-section .container {
    position: relative;
    z-index: 2;
}
        
        
        
        /* 固定导航栏 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            z-index: 100;
            padding: 12px 24px;
        }
        
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .nav-links a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: #667eea;
        }
        
        /* 容器 */
        .container {
            max-width: 500px;
            margin: 0 auto;
            padding: 80px 20px 60px;
        }
        
        /* 卡片样式 */
        .card {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 28px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 30px;
        }
        
        .card-header {
            padding: 28px 28px 0;
            text-align: center;
        }
        
        .card-header .icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        
        .card-header h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 6px;
        }
        
        .card-header p {
            font-size: 13px;
            color: #888;
            margin-bottom: 10px;
        }
        
        .card-body {
            padding: 24px 28px 32px;
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 18px;
            margin-top: 18px;
        }
        
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #333;
            font-size: 13px;
        }
        
        .required {
            color: #e74c3c;
            margin-left: 3px;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid #e8e8e8;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s;
            font-family: inherit;
            background: white;
        }
        
        select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        textarea {
            resize: vertical;
            min-height: 70px;
        }
        
/* 性别单选 */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 32px;  /* 固定高度，防止跳动 */
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #667eea;
    flex-shrink: 0;
}

.radio-group input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}
        
                /* 年级班级双选框 */
        .double-select {
            display: flex;
            gap: 12px;
        }
        
        .double-select select {
            flex: 1;
        }
        
        /* 按钮 */
        .btn-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 600;
            font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
            margin-top: 8px;
        }
        
        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }
        
        .btn-query {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 600;
            font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
        }
        
        .btn-query:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
        }
        
        .btn-download {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.btn-download:hover {
    background: #059669;
}
        
        /* 消息提示 */
        .message {
            padding: 10px 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-size: 13px;
            text-align: center;
        }
        
        .message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        /* 查询结果 */
        .query-result {
            margin-top: 20px;
            border-radius: 16px;
            display: none;
        }
        
        .query-result.show {
            display: block;
        }
        
        .cert-valid {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            color: white;
            padding: 12px 16px;
            border-radius: 14px;
            text-align: center;
            margin-bottom: 12px;
            font-weight: 600;
            font-size: 13px;
        }
        
        .cert-info {
            background: #f8f9fa;
            border-radius: 14px;
            padding: 14px;
            border: 1px solid #e8e8e8;
        }
        
        .cert-info p {
            margin-bottom: 8px;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
        }
        
        .cert-info .label {
            font-weight: 600;
            width: 80px;
            color: #555;
        }
        
        .cert-info .value {
            color: #333;
            flex: 1;
            word-break: break-all;
        }
        
        .cert-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px;
            border-radius: 12px;
            text-align: center;
            margin-top: 12px;
            font-weight: 600;
            font-size: 12px;
        }
        
        .cert-invalid {
            background: #f8d7da;
            color: #721c24;
            padding: 16px;
            border-radius: 14px;
            text-align: center;
            font-size: 13px;
        }
        
        /* 小箭头 */
        .scroll-hint {
            text-align: center;
            margin-top: 20px;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.3s;
        }
        
        .scroll-hint:hover {
            opacity: 1;
        }
        
        /* 第一屏 */
        .query-section {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            min-height: 100vh;
            padding: 200px 20px 60px;
        }
        
#apply-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* 让内容分散，卡片在上，页脚在下 */
    padding: 70px 0 20px;
}

#apply-section .card {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    max-width: 500px;
    align-self: center;
}

#apply-section .app-footer {
    margin-top: auto;
    margin-bottom: 5px;
}

#apply-section.container {
    padding: 60px 20px 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
        
        .query-section .scroll-hint .arrow {
            border-color: #999;
        }
        
        .query-section .scroll-hint span {
            color: #999;
        }
        
        
        @media (max-width: 600px) {
            .container {
                padding: 70px 16px 40px;
            }
            
            .card-header {
                padding: 24px 24px 0;
            }
            
            .card-body {
                padding: 20px 24px 28px;
            }
            
            .double-select {
                flex-direction: column;
                gap: 10px;
            }
        }
        
        .loading {
            text-align: center;
            padding: 16px;
            color: #666;
            font-size: 13px;
        }
        
        .loading::after {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 8px;
            border: 2px solid #667eea;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            vertical-align: middle;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.lightbox.show {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 切换按钮样式 */
.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f9fa;
}
.tab-btn {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
}
.tab-btn.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}



/* 进度查询样式 */
.status-list {
    margin-top: 15px;
}
.status-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
}
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending {
    background: #fef3c7;
    color: #d97706;
}
.status-approved {
    background: #d1fae5;
    color: #059669;
}
.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}
.status-date {
    font-size: 12px;
    color: #888;
}
.status-detail {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.status-detail p {
    margin-bottom: 6px;
}

/* 自定义弹窗 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.custom-modal.show {
    display: flex;
}
.custom-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.custom-modal-header {
    padding: 24px 24px 0;
}
.custom-modal-icon {
    font-size: 48px;
}
.custom-modal-header h3 {
    font-size: 22px;
    color: #333;
    margin-top: 8px;
}
.custom-modal-body {
    padding: 20px 24px;
}
.custom-modal-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.custom-modal-code {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #667eea;
    margin: 10px 0;
}
.custom-modal-tip {
    font-size: 12px;
    color: #999;
}
.custom-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}
.custom-modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}
.custom-modal-btn:first-child {
    background: #667eea;
    color: white;
}
.custom-modal-btn:first-child:hover {
    background: #5a67d8;
}
.custom-modal-btn.close {
    background: #e8e8e8;
    color: #333;
}
.custom-modal-btn.close:hover {
    background: #ddd;
}

/* 共用箭头容器 */
.scroll-hint {
    text-align: center;
    margin-top: -50px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-hint:hover {
    opacity: 1;
}

/* 向下箭头动画 */
.down-arrow-icon {
    display: inline-block;
    animation: bounceDown 1.5s infinite ease-in-out;
}

/* 向上箭头动画（只上下动，不旋转） */
.up-arrow-icon {
    display: inline-block;
    animation: bounceUp 1.5s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0) rotate(180deg);
    }
    50% {
        transform: translateY(-8px) rotate(180deg);
    }
}

/* 弹窗内容紧凑排版 */
#statusDetailModal .custom-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.download-btn:hover {
    background: #059669;
}


.app-footer {
    text-align: center;
    padding: 20px 20px 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.app-footer p {
    margin: 0;
}

/* 第二屏页脚颜色调整 */
.query-section .app-footer {
    color: #999;
    border-top-color: rgba(0,0,0,0.05);
}
