* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.page-header {
    max-width: 600px;
    margin: 0 auto 24px auto;
    padding: 0 20px;
}

.title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.platform-title {
    font-size: 24px;
    font-weight: bold;
    color: #2196f3;
    margin: 0;
    text-align: left;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.by-author {
    font-size: 8px;
    color: #999;
    font-weight: normal;
}

.header-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.test-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 卡片颜色方案 - 每个测试都有独特的颜色 */

/* 1. SCL90 - 蓝色系（健康、专业） */
.card-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
}
.card-blue .test-header {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}
.card-blue .test-content {
    background: linear-gradient(135deg, #f1f8ff 0%, #ffffff 100%);
}
.card-blue .test-name {
    color: #1565c0;
}

/* 2. RPI - 粉色系（爱情、情感） */
.card-pink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
.card-pink .test-header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
}
.card-pink .test-content {
    background: linear-gradient(135deg, #f8bbd0 0%, #ffffff 100%);
}
.card-pink .test-name {
    color: #c2185b;
}

/* 3. SRI - 深紫色系（私密、深度） */
.card-deeppurple {
    background: linear-gradient(135deg, #ede7f6 0%, #e1bee7 100%);
}
.card-deeppurple .test-header {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
}
.card-deeppurple .test-content {
    background: linear-gradient(135deg, #e1bee7 0%, #ffffff 100%);
}
.card-deeppurple .test-name {
    color: #6a1b9a;
}

/* 4. AST - 橙色系（自然、活力） */
.card-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.card-orange .test-header {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}
.card-orange .test-content {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffffff 100%);
}
.card-orange .test-name {
    color: #e65100;
}

/* 5. MBTI - 青色系（专业、理性） */
.card-cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}
.card-cyan .test-header {
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
}
.card-cyan .test-content {
    background: linear-gradient(135deg, #b2ebf2 0%, #ffffff 100%);
}
.card-cyan .test-name {
    color: #00838f;
}

/* 6. AAT - 黄色系（年轻、活力） */
.card-yellow {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
}
.card-yellow .test-header {
    background: linear-gradient(135deg, #fbc02d 0%, #fdd835 100%);
}
.card-yellow .test-content {
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
}
.card-yellow .test-name {
    color: #f57f17;
}

/* 7. APT - 紫色系（潜能、神秘） */
.card-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%);
}
.card-purple .test-header {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}
.card-purple .test-content {
    background: linear-gradient(135deg, #ede7f6 0%, #ffffff 100%);
}
.card-purple .test-name {
    color: #7b1fa2;
}

/* 8. HIT - 深蓝色系（职业、专业） */
.card-deepblue {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}
.card-deepblue .test-header {
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
}
.card-deepblue .test-content {
    background: linear-gradient(135deg, #c5cae9 0%, #ffffff 100%);
}
.card-deepblue .test-name {
    color: #283593;
}

/* 9. DT - 深灰色系（黑暗、阴影） */
.card-dark {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
}
.card-dark .test-header {
    background: linear-gradient(135deg, #546e7a 0%, #78909c 100%);
}
.card-dark .test-content {
    background: linear-gradient(135deg, #cfd8dc 0%, #ffffff 100%);
}
.card-dark .test-name {
    color: #37474f;
}

/* 10. TLA - 玫瑰色系（浪漫） */
.card-rose {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
.card-rose .test-header {
    background: linear-gradient(135deg, #ec407a 0%, #f48fb1 100%);
}
.card-rose .test-content {
    background: linear-gradient(135deg, #f8bbd0 0%, #ffffff 100%);
}
.card-rose .test-name {
    color: #c2185b;
}

/* 11. FFT - 橙黄色系（水果、活力） */
.card-orangeyellow {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}
.card-orangeyellow .test-header {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
}
.card-orangeyellow .test-content {
    background: linear-gradient(135deg, #ffecb3 0%, #ffffff 100%);
}
.card-orangeyellow .test-name {
    color: #e65100;
}

/* 12. YBT - 深红色系（强烈、病态） */
.card-red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}
.card-red .test-header {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
}
.card-red .test-content {
    background: linear-gradient(135deg, #ffcdd2 0%, #ffffff 100%);
}
.card-red .test-name {
    color: #b71c1c;
}

/* 13. RVT - 浅粉色系（温柔、恋爱） */
.card-lightpink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
.card-lightpink .test-header {
    background: linear-gradient(135deg, #f48fb1 0%, #f8bbd0 100%);
}
.card-lightpink .test-content {
    background: linear-gradient(135deg, #f8bbd0 0%, #ffffff 100%);
}
.card-lightpink .test-name {
    color: #ad1457;
}

/* 14. LBT - 桃色系（甜蜜、恋爱） */
.card-peach {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.card-peach .test-header {
    background: linear-gradient(135deg, #ff8a65 0%, #ffab91 100%);
}
.card-peach .test-content {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffffff 100%);
}
.card-peach .test-name {
    color: #d84315;
}

/* 15. MPT - 棕色系（自然、原始） */
.card-brown {
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
}
.card-brown .test-header {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 100%);
}
.card-brown .test-content {
    background: linear-gradient(135deg, #d7ccc8 0%, #ffffff 100%);
}
.card-brown .test-name {
    color: #5d4037;
}

/* 16. VBT - 浅灰色系（脆弱、温和） */
.card-lightgray {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}
.card-lightgray .test-header {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
}
.card-lightgray .test-content {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}
.card-lightgray .test-name {
    color: #616161;
}

.test-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-number {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.test-title {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.test-icon {
    font-size: 24px;
    color: #fff;
    opacity: 0.9;
}

.test-content {
    padding: 24px;
}

.test-description {
    font-size: 17px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
}

.test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-meta {
    font-size: 14px;
    color: #666;
}

.start-btn {
    background: #e0e0e0;
    color: #333;
    border: 1px solid #bdbdbd;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.start-btn:hover {
    background: #d0d0d0;
    border-color: #9e9e9e;
    transform: translateY(-1px);
}

.start-btn:active {
    transform: translateY(0);
}

.disclaimer {
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 0 20px 40px 20px;
}

.disclaimer-content {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #2196f3;
}

.disclaimer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.disclaimer-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.page-footer {
    max-width: 600px;
    margin: 30px auto 40px auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-link {
    color: #2196f3;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modal-body {
    text-align: center;
}

.modal-body p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.wechat-id {
    font-size: 18px;
    color: #333;
    margin-top: 16px;
}

.wechat-id strong {
    color: #2196f3;
    font-size: 20px;
}

/* 加载状态样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .page-header {
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .title-row {
        margin-bottom: 14px;
    }

    .platform-title {
        font-size: 22px;
    }

    .by-author {
        font-size: 7px;
    }

    .container {
        max-width: 100%;
    }

    .disclaimer {
        max-width: 100%;
        padding: 0 16px 30px 16px;
        margin-top: 30px;
    }

    .disclaimer-content {
        padding: 18px;
    }

    .disclaimer-title {
        font-size: 15px;
    }

    .disclaimer-text {
        font-size: 12px;
    }

    .page-footer {
        max-width: 100%;
        padding: 0 16px;
        margin: 25px auto 30px auto;
    }

    .footer-text {
        font-size: 13px;
    }

    .modal-content {
        padding: 24px;
        max-width: 90%;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body p {
        font-size: 15px;
    }

    .wechat-id {
        font-size: 16px;
    }

    .wechat-id strong {
        font-size: 18px;
    }

    .test-header {
        padding: 18px 20px;
    }

    .test-number {
        font-size: 18px;
    }

    .test-title {
        font-size: 18px;
    }

    .test-icon {
        font-size: 24px;
    }

    .test-content {
        padding: 20px;
    }

    .test-description {
        font-size: 18px;
    }

    .test-meta {
        font-size: 16px;
    }

    .start-btn {
        padding: 12px 22px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .page-header {
        padding: 0 12px;
        margin-bottom: 16px;
    }

    .title-row {
        margin-bottom: 12px;
    }

    .platform-title {
        font-size: 20px;
    }

    .by-author {
        font-size: 7px;
    }

    .test-list {
        gap: 20px;
    }

    .test-header {
        padding: 16px 18px;
    }

    .test-number {
        font-size: 17px;
    }

    .test-title {
        font-size: 17px;
    }

    .test-icon {
        font-size: 24px;
    }

    .test-content {
        padding: 18px;
    }

    .test-description {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .test-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .test-meta {
        font-size: 15px;
    }

    .start-btn {
        padding: 12px 22px;
        font-size: 16px;
    }

    .disclaimer {
        padding: 20px 12px;
    }

    .disclaimer-content {
        max-width: 100%;
        padding: 16px;
    }

    .disclaimer-title {
        font-size: 16px;
    }

    .disclaimer-text {
        font-size: 13px;
    }

    .page-footer {
        padding: 0 12px;
        margin: 20px auto 25px auto;
    }

    .footer-text {
        font-size: 12px;
    }

    .modal-content {
        padding: 20px;
        max-width: 85%;
    }

    .modal-title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .modal-body p {
        font-size: 14px;
    }

    .wechat-id {
        font-size: 15px;
        margin-top: 12px;
    }

    .wechat-id strong {
        font-size: 17px;
    }

    .modal-close {
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 14px;
    }
}
