* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 背景几何图形 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    background-size: 100% 100%, 100% 100%, 200px 200px, 200px 200px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 头部区域 */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 16px;
    color: #7f8c8d;
}

.main-heading {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #1a5490;
    margin: 40px 0;
    position: relative;
    padding: 20px;
}

.main-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(173, 216, 230, 0.3);
    border-radius: 10px;
    z-index: -1;
}

/* 主内容卡片 */
.main-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* 输入区域 */
.input-section {
    margin-bottom: 40px;
}

.form-field {
    display: inline-block;
    width: 48%;
}

.input-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.date-input {
    width: 100%;
    padding: 12px 15px 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.date-input:focus {
    border-color: #4a90e2;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.query-button {
    width: 100%;
    padding: 12px 30px;
    font-size: 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.query-button:hover {
    background: #357abd;
}

.query-button:active {
    transform: scale(0.98);
}

.signup-button {
    background: #08BF60;
}

.signup-button:hover {
    background: #388e3c;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a90e2;
}

.checkbox-wrapper label {
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
}

.captcha-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input-wrapper {
    position: relative;
    width: 150px;
    flex-shrink: 0;
}

.captcha-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.captcha-input:focus {
    border-color: #4a90e2;
}

.captcha-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.captcha-image {
    width: 120px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    font-size: 18px;
    font-weight: bold;
    color: #4a90e2;
    letter-spacing: 3px;
}

/* 结果显示区域 */
.results-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.info-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.8;
}

.info-box-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
}

.info-item {
    color: #424242;
    margin: 5px 0;
}

/* 学习提示区域 */
.tips-section {
    margin-bottom: 40px;
}

.tips-box {
    background: #fff9e6;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 14px;
}

.tips-table thead {
    background: #ffd54f;
}

.tips-table th {
    padding: 12px 10px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    border: 1px solid #ffb300;
    white-space: nowrap;
}

.tips-table td {
    padding: 12px 10px;
    border: 1px solid #ffb300;
    color: #424242;
    vertical-align: top;
}

.tips-table tbody tr {
    background: #fffef5;
}

.tips-table tbody tr:nth-child(even) {
    background: #fffbf0;
}

.tips-table tbody tr:hover {
    background: #fff8e1;
}

/* 关键信息样式 */
.key-info {
    font-weight: bold;
    color: #d32f2f;
}

.hours-required {
    font-weight: bold;
    color: #1976d2;
}

.status-expired {
    font-weight: bold;
    color: #d32f2f;
}

.status-ongoing {
    font-weight: bold;
    color: #f57c00;
}

.status-upcoming {
    font-weight: bold;
    color: #388e3c;
}

.date-highlight {
    font-weight: bold;
    color: #1976d2;
}

/* 联系方式区域 */
.contact-section {
    margin-top: 20px;
    text-align: center;
}

.contact-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.qr-code-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 500px;
    margin: 0 auto;
}

.qr-code-box {
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.qr-code-box p {
    font-size: 14px;
    color: #2c3e50;
    margin-top: 5px;
    margin-bottom: 10px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .form-field {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .date-input-wrapper {
        max-width: 100%;
    }

    .query-button {
        width: 100%;
    }

    .main-heading {
        font-size: 18px;
    }

    .main-card {
        padding: 20px;
    }

    .tips-box {
        padding: 15px;
        margin: 0 -5px;
    }

    .tips-table {
        font-size: 12px;
        min-width: 700px;
    }

    .tips-table th,
    .tips-table td {
        padding: 8px 6px;
    }

    .qr-code-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .qr-code-box {
        width: 100%;
        margin-bottom: 10px;
    }
}