/* 国风中医体质测试样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #f8f3e8 0%, #f0e6d2 100%);
    color: #5c3d2e;
    min-height: 100vh;
    position: relative;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 75, 74, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 87, 42, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* 顶部装饰 - 阴阳八卦 */
.header-decoration {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    z-index: 1;
}

.yin-yang {
    font-size: 3rem;
    color: #8b572a;
    animation: rotate 8s linear infinite;
}



/* 主容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 2;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    color: #8b572a;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(139, 87, 42, 0.2);
    letter-spacing: 4px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a67c52;
    margin-bottom: 20px;
    font-style: italic;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    margin: 0 auto;
    position: relative;
}

.divider::before, .divider::after {
    content: '❖';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a574;
    font-size: 0.8rem;
}

.divider::before {
    left: -10px;
}

.divider::after {
    right: -10px;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 60px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #8b572a;
    color: #f8f3e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    border: 3px solid #d4a574;
    box-shadow: 0 4px 15px rgba(139, 87, 42, 0.3);
}

.step-text {
    font-size: 1rem;
    color: #5c3d2e;
    font-weight: 500;
}

/* 内容区域 */
.content-area {
    background: rgba(255, 253, 248, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(139, 87, 42, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #d4a574, #8b572a, #d4a574) 1;
    border-radius: 22px;
    z-index: -1;
}

/* 步骤内容 */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* 欢迎页面样式 */
.welcome-section h2 {
    text-align: center;
    color: #8b572a;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
}

.welcome-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #d4a574;
    margin: 10px auto;
}

.welcome-content {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5c3d2e;
    margin-bottom: 25px;
}

.test-info {
    background: rgba(248, 243, 232, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(212, 165, 116, 0.5);
    text-align: left;
}

.test-info h3 {
    color: #8b572a;
    margin-bottom: 15px;
    text-align: center;
}

.test-info ul {
    list-style: none;
    padding-left: 0;
}

.test-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e8d9c5;
    position: relative;
    padding-left: 25px;
}

.test-info li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* 表单样式 */
.form-section h2, .question-section h2, .result-section h2 {
    text-align: center;
    color: #8b572a;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
}

.form-section h2::after, .question-section h2::after, .result-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #d4a574;
    margin: 10px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #5c3d2e;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d4a574;
    border-radius: 10px;
    background: #fffdf8;
    font-size: 1rem;
    color: #5c3d2e;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #8b572a;
    box-shadow: 0 0 0 3px rgba(139, 87, 42, 0.1);
}

/* 问题样式 */
.question-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #a67c52;
}

.question-container {
    background: rgba(248, 243, 232, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 165, 116, 0.5);
}

.question {
    font-size: 1.2rem;
    color: #5c3d2e;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    padding: 15px 20px;
    background: #fffdf8;
    border: 2px solid #e8d9c5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #5c3d2e;
}

.option:hover {
    border-color: #d4a574;
    background: rgba(212, 165, 116, 0.1);
}

.option.selected {
    border-color: #8b572a;
    background: rgba(139, 87, 42, 0.1);
    color: #8b572a;
    font-weight: 500;
}

/* 结果卡片 */
.result-card {
    background: linear-gradient(135deg, #fffdf8 0%, #f8f3e8 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #d4a574;
    box-shadow: 0 8px 25px rgba(139, 87, 42, 0.15);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8d9c5;
}

.result-header h3 {
    color: #8b572a;
    font-size: 1.5rem;
    margin: 0;
}

.result-score {
    background: #8b572a;
    color: #fffdf8;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #5c3d2e;
}

.result-details, .health-suggestions {
    margin-bottom: 25px;
}

.result-details h4, .health-suggestions h4 {
    color: #8b572a;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.result-details ul {
    list-style: none;
    padding-left: 0;
}

.result-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e8d9c5;
    position: relative;
    padding-left: 20px;
}

.result-details li::before {
    content: '•';
    color: #d4a574;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.suggestion-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(248, 243, 232, 0.5);
    border-radius: 10px;
    border-left: 4px solid #d4a574;
}

.suggestion-item h5 {
    color: #8b572a;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* 中医养生链接样式 */
.health-link-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(248, 243, 232, 0.8);
    border-radius: 10px;
    border-left: 4px solid #789461;
    text-align: center;
}

.health-link-section h4 {
    color: #8b572a;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.health-link {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #789461 0%, #8b572a 100%);
    color: #fffdf8;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 87, 42, 0.3);
}

.health-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 87, 42, 0.4);
    text-decoration: none;
    color: #fffdf8;
}

/* 按钮样式 */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b572a 0%, #a67c52 100%);
    color: #fffdf8;
    box-shadow: 0 4px 15px rgba(139, 87, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 87, 42, 0.4);
}

.btn-next {
    background: linear-gradient(135deg, #d4a574 0%, #e8c9a0 100%);
    color: #5c3d2e;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-prev {
    background: transparent;
    color: #8b572a;
    border: 2px solid #d4a574;
}

.btn-prev:hover {
    background: rgba(212, 165, 116, 0.1);
}



/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 80px 15px 40px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .step-indicator {
        gap: 30px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .content-area {
        padding: 25px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}