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

body {
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

/* 头部样式 */
header {
    background-color: #1a1a1a;
    color: #d4af37;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #d4af37;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
    letter-spacing: 1px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 101;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: Garamond, serif;
}

nav a:hover,
nav a.active {
    color: #1a1a1a;
    background-color: #d4af37;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #d4af37;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero::before {
    content: "🜃";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.hero::after {
    content: "🜂";
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
}

/* 右侧浮动分类和标签区域 */
.sidebar {
    width: 250px;
    padding: 0 1rem;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #d4af37;
}

.sidebar-widget h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
    font-size: 1.3rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #d4af37;
}

.category-list span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #d4af37;
    color: #1a1a1a;
}

article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
    border-left: 4px solid #d4af37;
}

.subscribe-article {
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.subscribe-article h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-family: Garamond, serif;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.benefits {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px dashed #d4af37;
}

.benefits li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits li:before {
    content: "🜃";
    color: #d4af37;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.subscribe-form {
    max-width: 400px;
    margin: 2rem auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.cta-button {
    background-color: #1a1a1a;
    color: #d4af37;
    padding: 0.75rem 1.5rem;
    border: 2px solid #d4af37;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    font-family: Garamond, serif;
}

.cta-button:hover {
    background-color: #d4af37;
    color: #1a1a1a;
}

.privacy-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1.5rem;
}

article h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
}

article h4 {
    color: #1a1a1a;
    font-family: Garamond, serif;
}

article p {
    margin-bottom: 1rem;
    color: #333;
}

article a {
    color: #d4af37;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.category {
    color: #d4af37;
    font-weight: bold;
}

.categories {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.categories h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
}

.categories ul {
    list-style-type: none;
}

.categories li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #d4af37;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    padding: 0.6rem 1.2rem;
    background-color: #1a1a1a;
    color: #d4af37;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #d4af37;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background-color: #d4af37;
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* 书籍系列样式 */
.book-series {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.book {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #d4af37;
}

.book::before {
    content: "🜁";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #d4af37;
    opacity: 0.3;
}

.book h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: Garamond, serif;
}

.book p {
    margin-bottom: 0;
    color: #555;
}

/* 两栏布局样式 */
.two-column {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.column {
    flex: 1;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #d4af37;
}

.column h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
}

.column ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.column li {
    margin-bottom: 0.5rem;
}

/* 测评类别样式 */
.test-categories {
    margin-bottom: 2rem;
}

.test-category {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.test-category h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: Garamond, serif;
}

.test-category ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.test-category li {
    margin-bottom: 0.5rem;
}

/* 测评卡片样式 */
.test-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.test-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, #fdfdfd 100%);
    border-radius: 5px;
    border: 2px dashed #d4af37;
}

.test-card h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: Garamond, serif;
    font-size: 1.8rem;
}

.test-card h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: Garamond, serif;
    font-size: 1.5rem;
}

.test-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
}

.test-dimensions {
    text-align: left;
    display: inline-block;
    background-color: #f0f0f0;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    font-weight: bold;
}

.test-dimensions li {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.test-purpose {
    font-size: 1rem;
    color: #555;
    margin: 1.5rem 0;
    text-align: left;
}

/* 测评进度条样式 */
.test-progress {
    margin: 1.5rem 0;
    text-align: left;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #d4af37;
    width: 0%;
    transition: width 0.3s ease;
}

/* 测评问题样式 */
.options {
    text-align: left;
    margin: 1.5rem 0;
}

.option {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f0f0f0;
    border-color: #d4af37;
}

.option input[type="radio"] {
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

/* 测评结果样式 */
.result-report {
    text-align: left;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #d4af37;
}

.result-report h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: Garamond, serif;
    font-size: 1.5rem;
}

.result-report h5 {
    color: #1a1a1a;
    margin: 1rem 0 0.5rem;
    font-family: Garamond, serif;
}

.result-report ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.result-report li {
    margin-bottom: 0.5rem;
}

.cta-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
}

.plugin-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.plugin-container h3 {
    margin-top: 1.5rem;
    color: #1a1a1a;
    font-family: Garamond, serif;
}

.plugin-container small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

#resultArea {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

#resultOutput {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #d4af37;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 2px solid #d4af37;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .plugin-container {
        padding: 1rem;
    }
    
    .book-series {
        grid-template-columns: 1fr;
    }
    
    .subscribe-article h2 {
        font-size: 1.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .test-card {
        padding: 1rem;
    }
    
    .test-card h2 {
        font-size: 1.5rem;
    }
    
    /* 移动端汉堡菜单 */
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        align-items: stretch;
        width: 200px;
        padding: 1rem;
        border: 1px solid #d4af37;
        border-top: none;
        border-radius: 0 0 5px 5px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    nav a {
        display: block;
        text-align: center;
    }
    
    /* 移动端隐藏侧边栏 */
    .sidebar {
        display: none;
    }
    
    main {
        flex-direction: column;
    }
    
    .content {
        width: 100%;
    }
    
    /* 移动端单列布局 */
    .two-column {
        flex-direction: column;
        gap: 1rem;
    }
}