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

body {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.8;
    font-style: italic;
}

.header .metadata {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

.nav {
    background: #f8f5f0;
    padding: 15px;
    border-bottom: 1px solid #e0d8cf;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #5c4033;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.nav a:hover {
    background: #5c4033;
    color: white;
}

.section {
    padding: 40px;
    border-bottom: 1px solid #f0ebe5;
}

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

.section-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b7355;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 24px;
    background: #8b7355;
    border-radius: 4px;
}

.original-text {
    font-size: 1.1em;
    line-height: 2.2;
    text-align: justify;
    color: #333;
    background: #faf8f5;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #8b7355;
    white-space: pre-wrap;
}

.translation-text {
    font-size: 1.05em;
    line-height: 2;
    text-align: justify;
    color: #444;
}

.translation-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f6f1;
    border-radius: 6px;
}

.translation-number {
    font-weight: bold;
    color: #5c4033;
    margin-right: 10px;
}

.dual-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.card {
    background: #faf8f5;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e8e0d5;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-content {
    font-size: 0.95em;
    line-height: 1.8;
    color: #555;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.character-card {
    background: linear-gradient(135deg, #fffbf7 0%, #faf8f5 100%);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e8e0d5;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #8b7355;
}

.character-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.character-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e8e0d5;
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 4px;
    font-weight: 600;
}

.character-role {
    font-size: 0.85em;
    color: #8b7355;
    margin-bottom: 8px;
    font-style: italic;
}

.character-appearance {
    font-size: 0.85em;
    color: #666;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 3px solid #27ae60;
}

.character-appearance strong {
    color: #27ae60;
}

.character-desc {
    font-size: 0.9em;
    line-height: 1.7;
    color: #555;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e0d5;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #8b7355;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #8b7355;
}

.timeline-date {
    font-size: 0.9em;
    color: #8b7355;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
}

.location-map {
    background: #f5f0e8;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.location-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

.location-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #8b7355;
}

.location-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.location-modern {
    font-size: 0.85em;
    color: #8b7355;
}

.location-note {
    font-size: 0.75em;
    color: #95a5a6;
    font-style: italic;
    margin-top: 3px;
}

.location-link {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.location-link:hover {
    color: #8b7355;
    text-decoration: underline;
}

.relation-graph {
    background: #faf8f5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.relation-graph svg {
    max-width: 100%;
    height: auto;
}

.clothing-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.clothing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e0d5;
    transition: transform 0.3s, box-shadow 0.3s;
}

.clothing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.clothing-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.clothing-info {
    padding: 15px;
}

.clothing-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.clothing-desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

.source-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-bottom: 12px;
}

.source-recorded {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.source-inferred {
    background-color: #fff3e0;
    color: #e65100;
}

.culture-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.culture-card {
    background: #faf8f5;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #8b7355;
}

.culture-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.culture-content {
    font-size: 0.95em;
    line-height: 1.8;
    color: #555;
}

.culture-content strong {
    color: #8b7355;
}

.references {
    background: #f5f0e8;
    border-radius: 8px;
    padding: 25px;
}

.reference-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d4c8bc;
}

.reference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reference-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.reference-link:hover {
    color: #8b7355;
}

.reference-source {
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.phase-btn {
    padding: 10px 18px;
    border: 1px solid #8b7355;
    background: #fff;
    color: #5c4033;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
    font-family: inherit;
    margin: 5px;
}

.phase-btn:hover {
    background: #f5f0e8;
    border-color: #5c4033;
}

.phase-btn.active {
    background: #5c4033;
    color: white;
    border-color: #5c4033;
}

.story-nav {
    background: #f8f5f0;
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.story-nav a {
    text-decoration: none;
    color: #5c4033;
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid #e8e0d5;
}

.story-nav a:hover {
    background: #5c4033;
    color: white;
    border-color: #5c4033;
}

.recommend-section {
    margin-top: 30px;
}

.recommend-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.recommend-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recommend-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid #8b7355;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-item a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.recommend-item a:hover {
    color: #8b7355;
}

.recommend-reason {
    font-size: 0.8em;
    color: #8b7355;
    margin-top: 5px;
}

.tags-container {
    margin-top: 15px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #faf8f5;
    color: #5c4033;
    border-radius: 15px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #5c4033;
    color: white;
}

.accuracy-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75em;
    margin-left: 8px;
}

.accuracy-exact {
    background: #e8f5e9;
    color: #27ae60;
}

.accuracy-recorded {
    background: #e3f2fd;
    color: #3498db;
}

.accuracy-inferred {
    background: #fff3e0;
    color: #e67e22;
}

.accuracy-questionable {
    background: #ffebee;
    color: #c0392b;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #8b7355;
    background: white;
    color: #5c4033;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #5c4033;
    color: white;
}

.pagination button.active {
    background: #5c4033;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}