/* 文档页面样式 */
:root {
    --primary-color: #8B6914;
    --primary-light: #A67C00;
    --success-color: #67C23A;
    --warning-color: #E6A23C;
    --text-color: #3E2723;
    --text-secondary: #6D5D4B;
    --text-muted: #8B7355;
    --border-color: #D4C4A8;
    --bg-color: #FDF8F0;
    --white: #FFFEF9;
    --paper: #FFFEF9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background: var(--bg-color);
    font-size: 16px;
}

/* 标题使用衬线字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Noto Serif SC', 'Source Han Serif CN', serif;
    letter-spacing: 0.5px;
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
}

.nav-brand h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid var(--primary-color);
    font-size: 13px;
}

.nav-links .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.nav-links .btn-secondary-nav {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 13px;
}

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

/* 文档容器 */
.docs-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

/* 侧边栏 */
.docs-sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
}

.docs-nav h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 8px;
}

.docs-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.docs-nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 文档内容 */
.docs-content {
    flex: 1;
    padding: 40px 80px;
    background: var(--white);
    max-width: 1100px;
}

.docs-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.docs-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
    padding-top: 20px;
}

.docs-section h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--text-color);
}

.docs-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.docs-section ul, .docs-section ol {
    margin: 12px 0 20px 24px;
    color: var(--text-secondary);
}

.docs-section li {
    margin-bottom: 8px;
}

/* 介绍区域 */
.intro-text {
    font-size: 18px;
    line-height: 1.8;
}

.core-values {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color);
    padding: 16px 24px;
    border-radius: 8px;
    flex: 1;
}

.value-icon {
    font-size: 32px;
}

.value-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 14px;
    margin: 0;
    color: var(--text-muted);
}

/* 事件类型 */
.event-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.event-type {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

.event-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.event-milestone { background: #e6f7ff; color: #1890ff; }
.event-project { background: #f6ffed; color: #52c41a; }
.event-reflection { background: #fff7e6; color: #fa8c16; }

/* 刻友类型 */
.connection-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.connection-type {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.connection-type.pioneer { background: linear-gradient(135deg, #e6f7ff 0%, #fff 100%); }
.connection-type.peer { background: linear-gradient(135deg, #f6ffed 0%, #fff 100%); }
.connection-type.follower { background: linear-gradient(135deg, #fff7e6 0%, #fff 100%); }

.connection-type h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.connection-type > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* 职业展望 */
.outlook-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.outlook-feature {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

.outlook-feature h4 {
    margin-bottom: 8px;
}

/* 用户故事 */
.story-intro {
    font-size: 16px;
    font-style: italic;
    color: var(--text-muted);
}

.story-timeline {
    margin-top: 30px;
}

.story-chapter {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 3px solid var(--primary-color);
}

.story-chapter h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.story-content {
    margin-top: 16px;
}

.story-record {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.record-item:last-child {
    border-bottom: none;
}

.record-date {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 60px;
}

.record-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.record-type.milestone { background: #e6f7ff; color: #1890ff; }
.record-type.project { background: #f6ffed; color: #52c41a; }
.record-type.reflection { background: #fff7e6; color: #fa8c16; }

.record-title {
    font-size: 14px;
}

.story-note,
.docs-note {
    background: #fffbe6;
    border-left: 3px solid #faad14;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
}

.story-match {
    margin: 16px 0;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
}

.match-avatar {
    font-size: 40px;
}

.match-info h4 {
    margin-bottom: 4px;
}

.match-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.match-type.pioneer { background: #e6f7ff; color: #1890ff; }

.match-info p {
    font-size: 14px;
    margin: 4px 0;
}

.match-reason {
    color: var(--text-muted) !important;
    font-style: italic;
}

.story-letter {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    font-size: 14px;
}

.letter-greeting {
    font-weight: 500;
    margin-bottom: 12px !important;
}

.letter-signature {
    text-align: right;
    margin-top: 16px !important;
    color: var(--text-muted);
}

.story-meetup {
    margin: 16px 0;
}

.meetup-card {
    background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 20px;
}

.meetup-card h4 {
    margin-bottom: 12px;
    color: var(--warning-color);
}

.meetup-card p {
    font-size: 14px;
    margin: 6px 0;
}

.story-summary {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    line-height: 2;
}

/* 联系我们 */
.contact-info {
    margin: 24px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

.contact-icon {
    font-size: 32px;
}

.contact-item h4 {
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0;
}

.icp-info a {
    color: var(--text-muted);
    text-decoration: none;
}

.icp-info a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }

    .docs-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs-nav li {
        margin-bottom: 0;
    }

    .docs-nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .docs-content {
        padding: 20px 16px;
    }

    .docs-section h1 {
        font-size: 24px;
    }

    .docs-section h2 {
        font-size: 20px;
    }

    .docs-section h3 {
        font-size: 16px;
    }

    .core-values {
        flex-direction: column;
    }

    .value-item {
        padding: 12px 16px;
    }

    .connection-types {
        grid-template-columns: 1fr;
    }

    .outlook-features {
        grid-template-columns: 1fr;
    }

    .story-chapter {
        padding-left: 16px;
    }

    .record-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .record-date {
        min-width: auto;
    }

    .match-card {
        flex-direction: column;
        text-align: center;
    }

    .story-letter {
        padding: 16px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

