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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f5f0;
    color: #333;
    max-width: 414px;
    margin: 0 auto;
}

.page-header {
    background: #8b4513;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.home-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    margin-right: 12px;
    white-space: nowrap;
}

.page-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    flex: 1;
    text-align: center;
    margin: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #8b4513;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .logo {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.top-nav nav {
    display: flex;
    gap: 8px;
}

.top-nav nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
}

.top-nav nav a:hover {
    background: rgba(255,255,255,0.2);
}

.top-nav nav a.active {
    background: #d2691e;
}

.container {
    padding: 16px;
    background: #f8f5f0;
}

.screen {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 12px;
    text-align: center;
}

.treasure-intro {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.treasure-intro p {
    color: #5d4037;
    font-size: 14px;
    line-height: 1.6;
}

.subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.clue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clue-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.clue-card:hover {
    border-color: #d2691e;
}

.clue-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.clue-badge.hot {
    background: #ff4444;
    color: #fff;
}

.clue-badge.new {
    background: #4CAF50;
    color: #fff;
}

.clue-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    padding-right: 50px;
}

.clue-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.clue-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}

.story-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.story-content {
    flex: 1;
}

.story-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.story-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 6px;
}

.story-author {
    font-size: 11px;
    color: #d2691e;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.btn-primary {
    background: #d2691e;
    color: #fff;
}

.btn-primary:hover {
    background: #b85919;
}

.btn-secondary {
    background: #fff;
    color: #d2691e;
    border: 1px solid #d2691e;
}

.btn-secondary:hover {
    background: #fff5f0;
}

#float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #8b4513;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}

#float-btn:hover {
    background: #6d3610;
}
