/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
}

/* 背景图案 */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/03a9cb9d1a6f4607b445037b01fe17e0~tplv-a9rns2rl98-image.image?rcl=202511061009080DDDF9C1AF7308341990&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1764986975&x-signature=U8xYdW59mUPdSiq128kJAGmQ5Mg%3D');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 标志 */
.logo-container {
    margin-top: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* 内容区域 */
.content {
    width: 100%;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

/* 页面样式 */
.page {
    display: none;
    flex-direction: column;
    gap: 25px;
}

.page.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.page-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* 卡片样式 */
.intro-card, .result-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.intro-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.intro-card p {
    font-size: 16px;
    color: #666;
}

/* 类型预览 */
.types-preview {
    margin-bottom: 20px;
}

.types-preview h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.type-item {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.type-item:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

/* 按钮样式 */
.primary-btn, .secondary-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.mt-4 {
    margin-top: 16px;
}

.primary-btn {
    background-color: #4a90e2;
    color: white;
}

.primary-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.secondary-btn {
    background-color: #e9ecef;
    color: #495057;
}

.secondary-btn:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

/* 测试页面样式 */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4a90e2;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.question-counter {
    font-size: 16px;
    font-weight: 600;
    color: #4a90e2;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.question-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: #4a90e2;
    background-color: #f8f9fa;
}

.option.selected {
    border-color: #4a90e2;
    background-color: #ebf2fc;
}

.option.selected::after {
    content: "✓";
    float: right;
    color: #4a90e2;
    font-weight: bold;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 结果页面样式 */
.result-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.type-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.type-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.type-description {
    font-size: 16px;
    color: #666;
}

.type-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.type-section {
    margin-bottom: 15px;
}

.type-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.type-section h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4a90e2;
    border-radius: 50%;
    margin-right: 8px;
}

.type-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.type-list {
    list-style-type: none;
    padding-left: 16px;
}

.type-list li {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    position: relative;
}

.type-list li::before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: -16px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 分享弹窗样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-modal.hidden {
    display: none;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.share-modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.share-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close-share-modal:hover {
    color: #333;
}

.share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option i {
    font-size: 20px;
}

.share-option[data-platform="weixin"] {
    background-color: #07c160;
    color: white;
}

.share-option[data-platform="qq"] {
    background-color: #12b7f5;
    color: white;
}

.share-option[data-platform="weibo"] {
    background-color: #ff4d4f;
    color: white;
}

.share-option[data-platform="copy"] {
    background-color: #4a90e2;
    color: white;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-tip {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.share-tip strong {
    color: #4a90e2;
}

/* 页脚 */
.footer {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 自定义提示弹窗样式 */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 20px;
}

.toast-notification.hidden {
    display: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 3s ease;
}

.toast-content i {
    font-size: 20px;
    color: #4caf50;
}

.toast-content span {
    font-size: 16px;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .types-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .primary-btn, .secondary-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .content {
        padding: 15px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .type-title {
        font-size: 20px;
    }
    
    .types-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .type-item {
        font-size: 12px;
        padding: 8px;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}
