* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #475569; background: #fff; padding-bottom: 80px; }

.main-content { max-width: 768px; margin: 0 auto; padding: 48px 12px 0; }

h1 { font-size: 28px; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase; margin: 48px -12px 32px; color: #fff; position: relative; background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); padding: 24px 12px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
h1::before { content: ''; position: absolute; inset: 0; opacity: 0.1; background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, #3b82f6 10px, #3b82f6 11px); }
h1::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, #2563eb, #0f172a); }
h1 .icon { width: 32px; height: 32px; color: #3b82f6; opacity: 0.8; position: relative; z-index: 1; }
h1 .title { position: relative; z-index: 1; margin-right: auto; }

h2 { font-size: 24px; font-weight: bold; margin: 32px 0 12px; color: #1e3a8a; display: flex; align-items: center; }
h2 .dots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-right: 16px; }
h2 .dots span { width: 6px; height: 6px; border-radius: 50%; }
h2 .dots span:nth-child(1) { background: #0f172a; }
h2 .dots span:nth-child(2) { background: #3b82f6; }
h2 .dots span:nth-child(3) { background: #3b82f6; }
h2 .dots span:nth-child(4) { background: #e2e8f0; }
h2 .divider { height: 1px; width: 100%; background: #e2e8f0; margin-top: 4px; position: relative; }
h2 .divider::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 48px; background: #3b82f6; }

h3 { font-size: 18px; margin: 20px 0 10px; color: #0f172a; }
p { margin: 16px 0; text-align: justify; color: #475569; }
ul, ol { margin: 10px 0 10px 30px; }
li { margin: 8px 0; color: #475569; }
img { max-width: 100%; height: auto; display: block; margin: 24px 0; border-radius: 8px; }
a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: #0f172a; }
.section { margin: 32px 0; }
.note { background: #f1f5f9; padding: 16px; border-left: 4px solid #3b82f6; margin: 16px 0; border-radius: 0 8px 8px 0; }
.warning { background: #fef3c7; padding: 16px; border-left: 4px solid #f59e0b; margin: 16px 0; border-radius: 0 8px 8px 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { border: 1px solid #e2e8f0; padding: 12px; text-align: left; }
th { background: #f8fafc; color: #0f172a; }
.button { display: inline-block; background: #8b5cf6; color: white; padding: 6px 24px; border-radius: 8px; margin: 12px 0; font-weight: 500; }
.video-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.video-button { display: inline-block; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; padding: 5px 10px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); transition: all 0.2s ease; border: none; cursor: pointer; }
.video-button:hover { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4); transform: translateY(-1px); }
.video-button:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); }
.trail-button { display: inline-block; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); transition: all 0.2s ease; border: none; cursor: pointer; margin: 16px 0; }
.trail-button:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); transform: translateY(-1px); }
.trail-button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.download-button { display: inline-block; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3); transition: all 0.2s ease; border: none; cursor: pointer; margin: 12px 0; }
.download-button:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); transform: translateY(-1px); }
.download-button:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3); }
.scrollable-table { overflow-x: auto; overflow-y: auto; max-height: 435px; margin: 16px 0; }
.trail-table { min-width: 100%; border-collapse: collapse; }
.trail-table th, .trail-table td { padding: 8px 12px; text-align: left; border: 1px solid #e2e8f0; white-space: nowrap; }
.trail-table th { background-color: #f8fafc; font-weight: 600; position: sticky; top: 0; z-index: 10; }
.trail-table th:first-child { position: sticky; left: 0; z-index: 20; }
.trail-table td:first-child { position: sticky; left: 0; z-index: 5; background-color: #fff; }
.trail-table tbody tr:hover { background-color: #f1f5f9; }
.trail-table tbody tr:hover td:first-child { background-color: #f1f5f9; }

.sticky-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-container {
    flex: 1;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    height: 100%;
    scrollbar-width: none;
}
.navbar-container::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.nav-tab.active {
    color: #3b82f6;
    font-weight: 700;
}
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10px; right: 10px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}
.navbar-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: -5px 0 10px rgba(255,255,255,1);
    z-index: 1000;
}
.navbar-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.toc-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.toc-overlay.active { opacity: 1; pointer-events: auto; }

.toc-drawer {
    position: fixed; top: 0; right: -80%; width: 80%; max-width: 300px; height: 100%;
    background: white; z-index: 2001; transition: right 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.toc-drawer.active { right: 0; }

.toc-header { padding: 15px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.close-btn { font-size: 24px; padding: 5px; cursor: pointer; }

.toc-static-links { padding: 10px; border-bottom: 1px solid #e2e8f0; display: grid; gap: 8px; }
.static-link { display: block; padding: 10px; background: #f1f5f9; border-radius: 6px; text-decoration: none; color: #334155; font-size: 14px; font-weight: 500; }

.toc-content { overflow-y: auto; flex: 1; padding: 10px 0; }
.drawer-h1 { padding: 12px 15px; font-weight: 600; color: #1e293b; border-bottom: 1px solid #f1f5f9; cursor: pointer; display: flex; justify-content: space-between; }
.drawer-h1::after { content: '+'; color: #94a3b8; }
.drawer-h1.open { background: #f8fafc; color: #3b82f6; }
.drawer-h1.open::after { content: '-'; }

.drawer-h2-list { display: none; background: #f8fafc; }
.drawer-h1.open + .drawer-h2-list { display: block; }
.drawer-h2 { display: block; padding: 10px 15px 10px 30px; color: #64748b; font-size: 13px; text-decoration: none; border-left: 2px solid transparent; }
.drawer-h2:hover { color: #3b82f6; border-left-color: #3b82f6; background: #eef2ff; }

.toc-fab {
    position: fixed; bottom: 30px; right: 20px; width: 50px; height: 50px;
    background: #3b82f6; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    z-index: 998; cursor: pointer; transition: transform 0.2s;
}
.toc-fab:active { transform: scale(0.9); }

body { padding-top: 48px; }

.feature-tag, .rating-tag, .night-tag, .style-tag, .scenery-tag, .beginner-tag, .intermediate-tag, .expert-tag, .not-recommended-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.rating-icon {
    font-size: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.feature-tag {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.rating-tag {
    background-color: #fef7e0;
    color: #f9ab00;
}

.night-tag {
    background-color: #3c4043;
    color: #ffffff;
}

.style-tag {
    background-color: #e0f2f1;
    color: #00695c;
}

.scenery-tag {
    background-color: #fff8e1;
    color: #f57c00;
}

.beginner-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.intermediate-tag {
    background-color: #e3f2fd;
    color: #1976d2;
}

.expert-tag {
    background-color: #424242;
    color: #ffffff;
}

.not-recommended-tag {
    background-color: #ffebee;
    color: #c62828;
}

.not-recommended-tag .rating-icon {
    font-size: 11px;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    margin: 12px 0;
}

.scroll-hint .arrow-left {
    font-size: 20px;
    font-weight: bold;
    color: #3b82f6;
    animation: arrowBlink 1.5s ease-in-out infinite;
}

@keyframes arrowBlink {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.4; transform: translateX(-8px); }
}

@media (max-width: 768px) {
    th, td { font-size: 14px; }
}
