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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-right .user-info {
    font-size: 12pt;
    opacity: 0.95;
    white-space: nowrap;
}

.header-right .header-btn {
    color: white;
    text-decoration: none;
    font-size: 12pt;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    transition: background 0.2s;
}

.header-right .header-btn:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.site-header h1 {
    font-size: 28pt;
    margin: 0;
}

.site-header .subtitle {
    font-size: 14pt;
    opacity: 0.9;
    margin-top: 25px;
}

.site-header a {
    color: white;
    text-decoration: none;
    font-size: 14pt;
    opacity: 0.9;
}

.site-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-title-bar {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin: 20px 0 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-left: 5px solid #667eea;
    flex-wrap: nowrap;
}

.page-title-bar h2 {
    font-size: 22pt;
    margin: 0;
    color: #2c3e50;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-title {
    font-size: 18pt;
    color: #764ba2;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.job-selector {
    padding: 14px 24px;
    font-size: 18pt;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #f8f9ff;
    color: #2c3e50;
    cursor: pointer;
    min-width: 260px;
    font-weight: 500;
    flex-shrink: 0;
}

.job-selector option {
    color: #2c3e50;
    background: white;
    font-size: 16pt;
}

.job-selector:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #667eea;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
    border-left-color: #764ba2;
}

.course-item {
    transition: all 0.3s ease;
}

.course-item.selected {
    border: 2px solid #667eea;
    border-left-width: 4px;
    background: #f8f9ff;
}

.course-select-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    margin-bottom: 8px;
}

.course-select-label input[type="checkbox"] {
    margin-top: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.course-name {
    font-size: 19pt;
    font-weight: bold;
    line-height: 1.3;
}

.course-grade {
    font-size: 13pt;
    margin-bottom: 14px;
    line-height: 1.4;
}

.course-month-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.course-month-ctrl .month-label {
    font-size: 14pt;
    color: #667eea;
    font-weight: 600;
    flex-shrink: 0;
}

.course-month-ctrl .month-input {
    width: 70px;
    height: 42px;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 16pt;
    padding: 0 5px;
    color: #2c3e50;
    font-weight: 600;
    background: #f8f9ff;
}

.course-month-ctrl .month-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.course-month-ctrl .month-unit {
    font-size: 14pt;
    color: #667eea;
    font-weight: 600;
}

.course-price-row {
    display: flex;
    align-items: baseline;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.course-price-row .price-display {
    font-size: 24pt;
    color: #e67e22;
    font-weight: bold;
}

.course-price-row .price-label {
    font-size: 14pt;
    color: #e67e22;
    margin-left: 4px;
    font-weight: 500;
}

.order-form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 30px auto;
}

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

.form-group label {
    display: block;
    font-size: 13pt;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 13pt;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.order-summary {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13pt;
}

.order-summary .summary-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 16pt;
    font-weight: bold;
}

.order-summary .summary-row.total .value {
    color: #e74c3c;
}

.selected-courses-summary {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1;
    border: 2px solid #764ba2;
    box-shadow: 0 6px 24px rgba(118, 75, 162, 0.35) !important;
}

.selected-courses-summary h3 {
    color: #fff !important;
    margin-bottom: 12px;
    font-size: 15pt;
}

.selected-courses-summary .summary-row {
    padding: 10px 6px;
    font-size: 13pt;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-courses-summary .summary-row:last-of-type {
    border-bottom: none;
}

.selected-courses-summary .summary-row.total {
    border-top: 2px solid rgba(255, 255, 255, 0.25) !important;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16pt;
    color: #fff;
}

.selected-courses-summary .summary-row.total .value {
    color: #f1c40f !important;
    font-size: 20pt;
    font-weight: bold;
}

.pay-methods {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.pay-method {
    flex: 1;
    border: 2px solid #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-size: 13pt;
}

.pay-method.selected {
    border-color: #667eea;
    background: #eef2ff;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15pt;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.success-container {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40pt;
}

.pending-icon {
    background: #f39c12;
}

.success-container h2 {
    font-size: 22pt;
    color: #2c3e50;
    margin-bottom: 15px;
}

.success-container .info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    margin: 25px 0;
}

.success-container .info-box .row {
    display: flex;
    padding: 8px 0;
    font-size: 13pt;
    border-bottom: 1px solid #eee;
}

.success-container .info-box .row:last-child {
    border-bottom: none;
}

.success-container .info-box .label {
    width: 120px;
    color: #7f8c8d;
}

.success-container .info-box .value {
    flex: 1;
    color: #2c3e50;
    word-break: break-all;
}

.activation-code-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.activation-code-box .title {
    font-size: 12pt;
    opacity: 0.9;
    margin-bottom: 8px;
}

.activation-code-box .code {
    font-size: 22pt;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: "Courier New", monospace;
    margin-bottom: 8px;
}

.activation-code-box .expire {
    font-size: 11pt;
    opacity: 0.85;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-buttons a,
.action-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 13pt;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.action-buttons a:hover,
.action-buttons button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.footer-tips {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cc 100%);
    border: 1px solid #f0d78c;
    border-left: 4px solid #f5a623;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 12pt;
    color: #5d4037;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.12);
}

.footer-tips strong {
    color: #e67e22;
    font-size: 14pt;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13pt;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13pt;
}

.site-footer {
    text-align: center;
    color: #95a5a6;
    font-size: 11pt;
    margin-top: 50px;
    padding: 20px;
}

.site-footer a {
    color: #667eea;
    text-decoration: none;
}

/* ===== 登录页专属样式 ===== */
.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    margin: 30px auto;
}
.login-container .form-group {
    margin-bottom: 22px;
}
.login-container .form-group label {
    display: block;
    font-size: 14pt;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
}
.login-container .form-group input[type="tel"],
.login-container .form-group input[type="text"],
.login-container .form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 15pt;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}
.login-container .form-group input:focus {
    outline: none;
    border-color: #667eea;
}
.form-tip {
    font-size: 10.5pt;
    color: #95a5a6;
    margin-top: 6px;
    line-height: 1.5;
}
.login-container .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16pt;
    margin-top: 10px;
}
.login-footer-info {
    margin-top: 30px;
    padding: 18px 20px;
    background: #f8f9ff;
    border: 1px solid #e8eaff;
    border-radius: 10px;
    text-align: center;
    font-size: 12pt;
    color: #475569;
    line-height: 1.8;
}
.login-footer-info a {
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .site-header {
        padding: 20px 16px;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }
    .site-header h1 {
        font-size: 18pt;
        line-height: 1.4;
        white-space: normal;
    }
    .site-header .subtitle {
        font-size: 12pt;
        margin-top: 15px;
        line-height: 1.5;
    }
    .site-header a {
        font-size: 12pt;
    }
    .header-right .user-info {
        font-size: 11pt;
    }
    .header-right .header-btn {
        font-size: 11pt;
        padding: 5px 12px;
    }
    .page-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .page-title-bar h2 {
        font-size: 16pt;
        white-space: normal;
        flex-shrink: 1;
    }
    .job-selector {
        width: 100%;
        min-width: 0;
        font-size: 14pt;
        padding: 10px 16px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .order-form-container {
        padding: 25px;
    }
    .pay-methods {
        flex-direction: column;
    }
}
