/* 页面通用样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f9fa;
    --card-background: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* Hero区域样式 */
.hero {
    background: #fff;
    padding: 4rem 2rem;
    color: #333;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* 卡片通用样式 */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 测试类型卡片样式 */
.test-types-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.test-type-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.career-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.career-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .test-types-grid {
        flex-direction: column;
        padding: 0 20px;
    }

    .test-type-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Types页面样式 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.type-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-card-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.type-card-body {
    margin: 15px 0;
}

.type-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.keyword {
    background: var(--background-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Career页面样式 */
.career-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.career-item {
    padding: 15px;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.career-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.career-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Love页面样式 */
.match-selector-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.type-selectors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.type-selector {
    text-align: center;
}

.type-selector h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.select-style {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--background-color);
}

/* About页面样式 */
.dimension-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.dimension-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
}

.dimension-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.dimension-side {
    background: var(--background-color);
    padding: 15px;
    border-radius: var(--border-radius);
}

.dimension-side h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dimension-side ul {
    list-style: none;
}

.dimension-side li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.dimension-side li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 响应式布局调整 */
@media (max-width: 900px) {
    .dimension-grid {
        grid-template-columns: 1fr;
    }
    
    .dimension-content {
        grid-template-columns: 1fr;
    }
    
    .type-selectors {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

.start-test-btn {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-test-btn:hover {
    background: var(--secondary-color);
}

/* 表单元素样式 */
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--background-color);
    margin-bottom: 15px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 页面通用样式 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* About页面样式 */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.about-section h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: #444;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

/* 历史时间线样式 */
.history-timeline {
    margin: 30px 0;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 3px solid #3498db;
    position: relative;
}

.timeline-year {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.timeline-item p {
    margin: 0;
    line-height: 1.5;
}

/* MBTI维度样式 */
.mbti-dimensions {
    margin: 30px 0;
}

.dimension {
    margin-bottom: 40px;
}

.dimension h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dimension h3 span {
    background-color: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8em;
}

.dimension > p {
    margin-bottom: 20px;
    color: #666;
}

.dimension-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.compatibility-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.compatibility-score {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.compatibility-score.excellent {
    color: #2ecc71;
}

.compatibility-score.good {
    color: #3498db;
}

.compatibility-score.moderate {
    color: #f39c12;
}

.compatibility-score.fair {
    color: #e74c3c;
}

.compatibility-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.aspect-card {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.aspect-score {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.score-bar {
    flex-grow: 1;
    height: 0.75rem;
    background: #ddd;
    border-radius: 1rem;
    margin-right: 1rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 1rem;
}

.score-text {
    font-weight: bold;
    color: var(--primary-color);
}

.family-analysis {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.family-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.family-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.family-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.type-info {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.type-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.type-code {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
}

.type-name {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strength-card {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.strength-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommendation-card {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.compatibility {
    margin: 1rem 0;
}

.compatibility-level {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.compatibility-bar {
    flex-grow: 1;
    height: 0.75rem;
    background: #ddd;
    border-radius: 1rem;
    margin-right: 1rem;
    overflow: hidden;
}

.compatibility-fill {
    height: 100%;
    border-radius: 1rem;
}

.compatibility.excellent .compatibility-fill {
    background: #2ecc71;
}

.compatibility.good .compatibility-fill {
    background: #3498db;
}

.compatibility.moderate .compatibility-fill {
    background: #f39c12;
}

.compatibility.fair .compatibility-fill {
    background: #e74c3c;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dimension-comparison {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .love-match-form,
    .finder-options,
    .family-content {
        grid-template-columns: 1fr;
    }
    
    .match-pair {
        flex-direction: column;
    }
    
    .type-card {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .compatibility-indicator {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Love页面匹配结果样式 */
.match-result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.match-types {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.type-info {
    text-align: center;
    flex: 1;
}

.type-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.type-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.4;
}

.compatibility-indicator {
    text-align: center;
    padding: 0 30px;
}

.compatibility-score {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.compatibility-score.excellent { color: #2ecc71; }
.compatibility-score.good { color: #3498db; }
.compatibility-score.moderate { color: #f39c12; }
.compatibility-score.fair { color: #e74c3c; }

.compatibility-heart {
    color: #e74c3c;
    font-size: 2rem;
}

.match-conclusion {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.conclusion-text {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.relationship-tips {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.relationship-tips h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.relationship-tips ul {
    list-style: none;
    padding: 0;
}

.relationship-tips li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
}

.relationship-tips li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .match-types {
        flex-direction: column;
        gap: 20px;
    }

    .type-info {
        margin-bottom: 20px;
    }

    .compatibility-indicator {
        margin: 20px 0;
    }
}

/* Career页面样式 */
.type-result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.type-result-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.type-code {
    color: var(--primary-color);
    font-weight: bold;
}

.career-section {
    margin-bottom: 40px;
}

.career-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.career-grid {
    display: grid;
    gap: 20px;
}

.career-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.career-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
}

.career-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.career-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.match-rate {
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .career-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .type-result-card h2 {
        font-size: 1.6rem;
    }
}

/* 免费测试信息区域样式 */
.free-test-info {
    background: linear-gradient(to right, #2c3e50, #3498db);
    padding: 60px 0;
    margin-top: 60px;
    color: white;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.benefit-item i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

.test-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.test-count {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.test-count i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .free-test-info {
        padding: 40px 0;
    }

    .info-card {
        padding: 30px;
    }

    .info-card h2 {
        font-size: 1.6rem;
    }

    .benefits {
        grid-template-columns: 1fr;
    }
}

.career-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.career-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.career-card h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.career-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.type-selector {
    margin-bottom: 1.5rem;
}

.select-style {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 职场优势卡片布局 */
.career-section:first-of-type .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.career-section:first-of-type .career-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 结果页面样式 */
.result-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.personality-type {
    text-align: center;
    margin-bottom: 2rem;
}

.type-code {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.type-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.type-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dimension-analysis {
    margin-bottom: 2rem;
}

.dimension {
    margin-bottom: 1.5rem;
}

.dimension-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dimension-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background-color: #007bff;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-percent {
    text-align: right;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary:hover {
    background-color: #5a6268;
}