* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 首页样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
}

.intro-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.dimensions h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.dimension-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.dimension-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.dimension-item:hover {
    transform: translateY(-5px);
}

.emoji {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.test-info h3 {
    color: #34495e;
    margin-bottom: 15px;
}

.test-info ul {
    list-style: none;
    margin-bottom: 25px;
}

.test-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.test-info li:before {
    content: "•";
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
}

.start-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.start-btn:hover {
    transform: scale(1.02);
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
}

/* 测试页面样式 */
.progress-container {
    background: #ecf0f1;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #2ecc71, #3498db);
    height: 100%;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-weight: bold;
}

.question-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.dimension-indicator {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.dimension-emoji {
    font-size: 1.5em;
    margin-right: 10px;
}

.question-text {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.options-form {
    margin-bottom: 20px;
}

.option-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.option-item input {
    display: none;
}

.option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.option-letter {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.option-text {
    flex: 1;
}

.option-item input:checked + label .option-letter {
    background: #2ecc71;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.question-counter {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.test-tips {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* 结果页面样式 */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.chart-container {
    height: 400px;
    margin-bottom: 40px;
}

.scores-container {
    margin-bottom: 40px;
}

.scores-container h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.scores-grid {
    display: grid;
    gap: 15px;
}

.score-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.dimension-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.score-bar-container {
    background: #ecf0f1;
    border-radius: 5px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    transition: width 1s ease;
}

.score-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-weight: bold;
}

.main-feature {
    margin-bottom: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.suggestion {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.share-section {
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.share-card {
    background: white;
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: none;
}

.card-content {
    max-width: 500px;
    margin: 0 auto;
}

.hashtag {
    color: #3498db;
    font-weight: bold;
    margin-top: 10px;
}

.result-footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .dimension-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .question-text {
        font-size: 1.2em;
    }
    
    .chart-container {
        height: 300px;
    }
}