/* ====== 全局样式 ====== */
:root {
    /* 基于你提供的色彩方案 */
    --bg-primary: #F5EFE0;
    --bg-secondary: #D4C5B0;
    --bg-ocean: #D1E5F0;
    --bg-land: #E0C8A8;
    
    /* 文字颜色 */
    --text-primary: #5D4A3A;
    --text-secondary: #8B7355;
    --text-light: #C9B8A4;
    
    /* 国家颜色 */
    --usa-color: #E64A4A;
    --china-color: #E64A4A;
    --spain-color: #8B5A9E;
    --scotland-color: #3D7057;
    --russia-color: #4A90E2;
    --brazil-color: #F2994A;
    --japan-color: #E8A8C0;
    
    /* 辅助颜色 */
    --accent-yellow: #F9D466;
    --accent-blue: #4A90E2;
    --accent-green: #5CA481;
    --accent-red: #B53A25;
    
    /* 阴影 */
    --shadow-light: 0 3px 12px rgba(93, 74, 58, 0.1);
    --shadow-medium: 0 6px 20px rgba(93, 74, 58, 0.15);
    --shadow-heavy: 0 10px 30px rgba(93, 74, 58, 0.2);
    
    /* 圆角 */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', cursive;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    min-height: 100vh;
}

/* ====== 加载页面 ====== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 90%;
}

.storybook-animation {
    position: relative;
    width: 300px;
    height: 400px;
    margin-bottom: 40px;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #E8A8C0 0%,      /* 日本颜色 */
        #D495B2 25%,     /* 中间色 */
        #9B6CA5 75%,     /* 中间色 */
        #8B5A9E 100%     /* 西班牙颜色 */
    );
    border-radius: 15px 20px 20px 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    animation: bookOpen 2.5s ease-in-out 0.5s forwards;
    overflow: hidden;
}

/* 添加一些装饰效果 */
.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 15px 20px 0 0;
}

.book-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 15px;
}

.cover-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.cover-title h1 {
    font-family: 'Gochi Hand', cursive;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cover-title p {
    font-family: 'Caveat', cursive;
    font-size: 18px;
    opacity: 0.9;
}

.cover-illustration {
    position: relative;
    width: 200px;
    height: 150px;
}

.illustration-tree,
.illustration-lantern,
.illustration-firework {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
}

.illustration-tree {
    width: 100px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><path fill="%235CA481" d="M50 10 L70 40 L60 40 L75 65 L65 65 L85 100 L50 85 L15 100 L35 65 L25 65 L40 40 L30 40 Z"/></svg>');
    left: 50px;
    bottom: 0;
    animation: gentleSway 4s infinite alternate ease-in-out;
}

.illustration-lantern {
    width: 40px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 50"><path fill="%23E64A4A" d="M20 5 C25 5, 35 10, 35 25 C35 40, 25 45, 20 45 C15 45, 5 40, 5 25 C5 10, 15 5, 20 5 Z"/></svg>');
    left: 10px;
    top: 20px;
    animation: floatUpDown 3s infinite alternate ease-in-out;
}

.illustration-firework {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path fill="%23F9D466" d="M15 5 L18 12 L25 12 L19 17 L22 25 L15 20 L8 25 L11 17 L5 12 L12 12 Z"/></svg>');
    right: 20px;
    top: 10px;
    animation: sparkle 2s infinite;
}

.book-pages {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: white;
    top: 0;
}

.page-left {
    left: 0;
    border-right: 2px dashed var(--text-light);
}

.page-right {
    right: 0;
}

.world-map-sketch {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%23C9B8A4" stroke-width="0.5" d="M10,20 Q30,15 40,30 T70,20 T90,40"/><circle cx="30" cy="50" r="3" fill="%23E64A4A"/><circle cx="60" cy="30" r="3" fill="%235CA481"/></svg>');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
}

.loading-message p {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.loading-progress-container {
    width: 200px;
    position: relative;
}

.loading-progress-bar {
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, var(--japan-color), var(--spain-color));
    border-radius: 3px;
    transition: width 2.5s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.loading-hint {
    display: flex;
    align-items: center;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-light);
}

.loading-hint i {
    color: var(--accent-yellow);
    font-size: 20px;
    margin-right: 10px;
}

.loading-hint p {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: var(--text-secondary);
}

/* ====== 背景Canvas ====== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

}

/* ====== 主页面 ====== */
.main-page, .story-page, .passport-page, 
.wish-tree-page, .settings-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.6s ease;
}

.hidden {
    display: none !important;
}

/* 顶部统计栏 */
.top-stats {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(245, 239, 224, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    z-index: 50;
}

.explored-count, .collection-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.stat-icon {
    font-size: 20px;
}

.stat-text {
    color: var(--text-primary);
}

/* 全屏地图容器 */
.fullscreen-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
}

.world-map-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/world-map.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    animation: gentleFloat 40s infinite alternate ease-in-out;
}

/* ====== 国家标记点 ====== */
.country-markers-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.country-dot {
    position: absolute;
    width: 24px; /* 增加点击区域 */
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 50; /* 提高z-index确保在最上层 */
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 真正的圆点 */
.country-dot::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: inherit;
}

.country-dot:hover {
    width: 18px;
    height: 18px;
}

.country-dot::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: -7px;
    left: -7px;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* 各个国家标记点颜色 */
.country-dot[data-country="japan"] {
    background-color: var(--japan-color);
    color: var(--japan-color);
}

.country-dot[data-country="china"] {
    background-color: var(--china-color);
    color: var(--china-color);
}

.country-dot[data-country="spain"] {
    background-color: var(--spain-color);
    color: var(--spain-color);
}

.country-dot[data-country="usa"] {
    background-color: var(--usa-color);
    color: var(--usa-color);
}

.country-dot[data-country="brazil"] {
    background-color: var(--brazil-color);
    color: var(--brazil-color);
}

.country-dot[data-country="scotland"] {
    background-color: var(--scotland-color);
    color: var(--scotland-color);
}

.country-dot[data-country="russia"] {
    background-color: var(--russia-color);
    color: var(--russia-color);
}

/* ====== 国家标记点标签样式 ====== */
.country-label {
    position: absolute;
    left: 30px; /* 放在圆点右侧 */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 239, 224, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    box-shadow: var(--shadow-light);
    color: var(--text-primary) !important; /* 覆盖之前的颜色 */
}

.country-dot:hover .country-label {
    opacity: 1;
}

/* ====== 功能按钮标记点样式 ====== */
.function-dot {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 50;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 真正的圆点 */
.function-dot::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: inherit;
}

.function-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.function-dot::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    top: -4px;
    left: -4px;
    border: 3px solid currentColor;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* 功能按钮标签样式 */
.function-label {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 239, 224, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid currentColor;
}

.function-icon {
    font-size: 16px;
}

.function-text {
    color: var(--text-primary);
    font-weight: 500;
}

.function-dot:hover .function-label {
    opacity: 1;
    transform: translate(10px, -50%);
}

/* ====== 左侧国家快捷按钮栏 ====== */
.country-quick-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(245, 239, 224, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px 12px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 197, 176, 0.3);
    border: 1px solid rgba(93, 74, 58, 0.15);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.country-btn:hover {
    background: rgba(212, 197, 176, 0.6);
    transform: translateX(5px);
}

.country-btn .flag {
    font-size: 16px;
}

/* ====== 时间显示区域 ====== */
.time-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(245, 239, 224, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-medium);
    padding: 12px 16px;
    box-shadow: var(--shadow-light);
    z-index: 50;
}

.timezone {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 14px;
}

.timezone .city {
    color: var(--text-primary);
}

.timezone .time {
    font-family: monospace;
    font-weight: bold;
    color: var(--scotland-color);
}

.timezone.active {
    background: rgba(93, 74, 58, 0.05);
    border-radius: var(--radius-small);
    padding: 4px 8px;
    margin: 0 -8px;
}

/* ====== 返回按钮 ====== */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--text-primary);
    border: none;
    border-radius: 20px;
    color: var(--bg-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-light);
}

.back-btn:hover {
    background: var(--scotland-color);
    transform: translateX(-5px);
}

/* ====== 国家习俗页面 ====== */
.story-page {
    background-color: var(--bg-primary);
    background-image: url('images/notebook-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    background-color: rgba(245, 239, 224, 0.7);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-heavy);
}

/* 国家信息头部 */
.country-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-secondary);
}

.country-flag {
    font-size: 48px;
}

.country-title h1 {
    font-family: 'Gochi Hand', cursive;
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.country-title p {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--text-secondary);
}

/* 手账本容器 */
.notebook-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 500px;
    margin-bottom: 40px;
}

.notebook-left, .notebook-right {
    
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.notebook-left::before, .notebook-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 239, 224, 0.7);
    border-radius: var(--radius-large);
    z-index: -1;
}

.section-title {
    font-family: 'Gochi Hand', cursive;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--bg-secondary);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: var(--bg-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-small);
    border-left: 4px solid var(--japan-color);
    box-shadow: var(--shadow-light);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--japan-color);
    border: 3px solid var(--bg-primary);
}

.timeline-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 数据卡片 */
.data-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.data-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* 统计条 */
.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item span:first-child {
    width: 80px;
    font-size: 14px;
    color: var(--text-primary);
}

.bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(212, 197, 176, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.stat-item span:last-child {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

/* 饼图容器 */
.pie-chart-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--japan-color) 0% 30%,
        var(--china-color) 30% 60%,
        var(--spain-color) 60% 80%,
        var(--usa-color) 80% 100%
    );
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* 进度环 */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(212, 197, 176, 0.3);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: var(--japan-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text span:first-child {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.progress-text span:last-child {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 收藏品区域 */
.collectibles-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
}

.collectibles-section h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collectibles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.collectible-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(245, 239, 224, 0.9);
    border-radius: var(--radius-medium);
    border: 2px dashed var(--bg-secondary);
    transition: all 0.3s ease;
}

.collectible-item.collected {
    border-style: solid;
    border-color: var(--japan-color);
    background: rgba(232, 168, 192, 0.1);
}

.collectible-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.collectible-info h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collectible-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.collectible-check, .collectible-lock {
    margin-left: auto;
    font-size: 20px;
}

.collectible-check {
    color: var(--accent-green);
}

.collectible-lock {
    color: var(--text-light);
}

/* ====== 其他页面样式（简化版） ====== */
.passport-page {
    background-color: var(--bg-primary);
}

.passport-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.passport-cover {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
    border-radius: var(--radius-large);
    color: white;
    box-shadow: var(--shadow-heavy);
}

.passport-cover h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 36px;
    margin-bottom: 10px;
}

.passport-cover p {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    opacity: 0.9;
}

.passport-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
}

/* 许愿树页面 */
.wish-tree-page {
    background-color: var(--bg-primary);
}

.wish-tree-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.wish-tree-header {
    text-align: center;
    margin-bottom: 40px;
}

.wish-tree-header h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 42px;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.wish-tree-header p {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--text-secondary);
}

.wish-input-section {
    margin-bottom: 40px;
}

.wish-input-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-large);
    padding: 25px;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 20px;
}

#wish-input {
    width: 100%;
    height: 120px;
    padding: 20px;
    border: 2px solid rgba(232, 168, 192, 0.3);
    border-radius: var(--radius-small);
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--text-primary);
    resize: none;
    margin-bottom: 20px;
    background: rgba(255, 250, 245, 0.8);
}

#wish-input:focus {
    outline: none;
    border-color: var(--japan-color);
    box-shadow: 0 0 0 3px rgba(232, 168, 192, 0.1);
}

.wish-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    color: var(--text-secondary);
}

.submit-wish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.submit-wish-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.wishes-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--japan-color);
}

.wish-card .wish-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.wish-card .wish-author {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

/* 设置页面 */
.settings-page {
    background-color: var(--bg-primary);
}

.settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
}

.settings-header h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 36px;
    color: var(--text-primary);
}

.settings-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
}

.setting-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(93, 74, 58, 0.3);
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item label {
    font-size: 16px;
    color: var(--text-primary);
}

.setting-item input[type="checkbox"] {
    width: 50px;
    height: 26px;
    appearance: none;
    background: rgba(212, 197, 176, 0.5);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
}

.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.setting-item input[type="checkbox"]:checked::before {
    left: 26px;
}

.danger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(135deg, #E64A4A, #FF6B6B);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 74, 74, 0.4);
}

/* 收藏册页面样式 */
.collection-page {
    background-color: var(--bg-primary);
}

.collection-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.collection-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
    border-radius: var(--radius-large);
    color: white;
    box-shadow: var(--shadow-heavy);
}

.collection-header h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 36px;
    margin-bottom: 10px;
}

.collection-header p {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    opacity: 0.9;
}

.collection-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
}

.collection-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-secondary);
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(212, 197, 176, 0.3);
    border: 1px solid rgba(93, 74, 58, 0.15);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(212, 197, 176, 0.6);
}

.tab-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.collections-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    min-height: 300px;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(245, 239, 224, 0.9);
    border-radius: var(--radius-medium);
    border: 2px solid var(--japan-color);
    box-shadow: var(--shadow-light);
}

.collection-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.collection-info {
    flex: 1;
}

.collection-info h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.collection-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.collection-country {
    font-size: 12px;
    color: var(--text-light);
    background: rgba(93, 74, 58, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.collection-date {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.empty-collection {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
}

.empty-collection h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-collection p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ====== 响应式设计 ====== */
@media (max-width: 1024px) {
    .notebook-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .function-dot .function-label {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .story-container, .passport-container,
    .wish-tree-container, .settings-container {
        padding: 60px 15px 30px;
    }
    
    .top-stats {
        top: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .time-display {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .country-quick-nav {
        left: 10px;
        padding: 10px 8px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .country-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .function-dot {
        width: 22px;
        height: 22px;
    }
    
    .function-dot::before {
        width: 14px;
        height: 14px;
    }
    
    .function-dot::after {
        width: 28px;
        height: 28px;
    }
    
    .function-label {
        font-size: 11px;
        padding: 5px 8px;
        left: 25px;
    }
    
    .function-dot:hover .function-label {
        transform: translate(5px, -50%);
    }
    
    .notebook-left, .notebook-right {
        padding: 20px;
    }
    
    .collectibles-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .storybook-animation {
        width: 250px;
        height: 350px;
    }
    
    .country-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .country-title h1 {
        font-size: 28px;
    }
    
    .country-title p {
        font-size: 18px;
    }
    
    .function-dot {
        width: 20px;
        height: 20px;
    }
    
    .function-dot::before {
        width: 12px;
        height: 12px;
    }
    
    .function-dot::after {
        width: 24px;
        height: 24px;
    }
    
    .function-label {
        font-size: 10px;
        padding: 4px 6px;
        left: 20px;
    }
    
    .function-icon {
        font-size: 12px;
    }
}

/* ====== 动画定义 ====== */
@keyframes bookOpen {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(-180deg); }
}

@keyframes gentleSway {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(5px) rotate(2deg); }
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

@keyframes gentleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10px, -10px) rotate(0.5deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 在style.css的末尾添加 */

/* ====== 方案一 + 方案五整合的护照设计 ====== */

/* 拟物化护照封面 */
.passport-realistic {
    background: linear-gradient(135deg, #0a1a3d 0%, #1a3a8f 100%);
    border-radius: 16px 16px 8px 8px;
    padding: 40px 30px;
    color: #ffd700;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 2px #ffd700,
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.passport-realistic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 215, 0, 0.05);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 215, 0, 0.05) 10px,
        rgba(255, 215, 0, 0.05) 20px
    );
}

.passport-cover {
    text-align: center;
    position: relative;
    z-index: 2;
}

.passport-cover h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 32px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.passport-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.passport-emblem {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 48px;
    opacity: 0.2;
    animation: gentleFloat 6s infinite alternate ease-in-out;
}

.passport-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 20px;
}

.passport-owner, .passport-issue-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.passport-info .label {
    color: rgba(255, 215, 0, 0.7);
    font-weight: 300;
}

.passport-info .value {
    font-weight: bold;
}

/* 护照内页样式 */
.passport-inner {
    background: linear-gradient(to bottom, #f8f3e9, #f5f0e1);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0d5b8;
    position: relative;
    min-height: 500px;
}

/* 护照纸张纹理 */
.passport-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 79px, rgba(224, 213, 184, 0.3) 79px, transparent 80px),
        linear-gradient(#f5f0e1 1.5px, transparent 1.5px);
    background-size: 80px 20px;
    opacity: 0.4;
    pointer-events: none;
}

/* 数据可视化仪表盘 */
.passport-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dashboard-card h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 世界地图进度 */
.world-map-progress {
    width: 100%;
    height: 180px;
    position: relative;
    background-image: url('images/world-map.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.exploration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(232, 168, 192, 0.3) 0%,
        rgba(74, 144, 226, 0.3) 50%,
        rgba(242, 153, 74, 0.3) 100%
    );
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 1s ease;
}

.map-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.map-stat {
    text-align: center;
}

.map-stat .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

.map-stat .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 统计图表 */
.stats-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 0 10px;
    margin-bottom: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--chart-color), var(--chart-color-light));
    border-radius: 8px 8px 0 0;
    min-height: 10px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.chart-bar:hover {
    transform: scaleY(1.1);
    box-shadow: 
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 0 5px;
}

/* 国家印章区域 */
.passport-stamps-section, 
.passport-achievements-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(93, 74, 58, 0.2);
}

.passport-stamps-section h3,
.passport-achievements-section h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

/* 真实的印章样式 */
.stamps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.passport-stamp-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    padding: 15px;
    margin: 5px;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: rotate(var(--rotation, 0deg));
}

.passport-stamp-real::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(212, 175, 55, 0.05) 5px,
        rgba(212, 175, 55, 0.05) 10px
    );
    pointer-events: none;
}

/* 随机旋转角度 */
.passport-stamp-real:nth-child(odd) { --rotation: -3deg; }
.passport-stamp-real:nth-child(even) { --rotation: 2deg; }

.passport-stamp-real.visited:hover {
    transform: rotate(0deg) scale(1.08);
    z-index: 10;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.stamp-icon {
    font-size: 36px;
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stamp-name {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stamp-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(93, 74, 58, 0.1);
    color: var(--text-secondary);
}

.passport-stamp-real.visited .stamp-status {
    background: rgba(92, 164, 129, 0.2);
    color: #5CA481;
    font-weight: bold;
}

.passport-stamp-real.locked {
    opacity: 0.5;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

/* 成就徽章墙 */
.achievement-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
}

.achievement-badge-visual {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 -3px 5px rgba(0, 0, 0, 0.05),
        inset 0 3px 5px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.achievement-badge-visual.unlocked {
    border-color: var(--badge-color, #F9D466);
    background: radial-gradient(circle at 30% 30%, var(--badge-color-light, rgba(249, 212, 102, 0.9)), var(--badge-color, #F9D466));
    color: white;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1),
        inset 0 3px 5px rgba(255, 255, 255, 0.5);
}

.achievement-badge-visual.locked {
    background: radial-gradient(circle at 30% 30%, rgba(200, 200, 200, 0.9), rgba(180, 180, 180, 0.9));
    color: #999;
    border-color: #ccc;
}

.achievement-badge-visual.unlocked:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1),
        inset 0 3px 5px rgba(255, 255, 255, 0.5);
}

.achievement-badge-visual .badge-name {
    font-size: 10px;
    margin-top: 8px;
    text-align: center;
    color: var(--text-primary);
    font-weight: bold;
}

.achievement-badge-visual.locked .badge-name {
    color: #999;
}

/* 详细统计数据 */
.passport-detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detailed-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.detailed-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 护照签名 */
.passport-signature {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(93, 74, 58, 0.3);
}

.signature-line {
    width: 200px;
    height: 1px;
    background: var(--text-primary);
    margin: 0 auto 10px;
}

.signature-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.signature-name {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .passport-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .passport-detailed-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .passport-realistic {
        padding: 30px 20px;
    }
    
    .passport-cover h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .passport-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .passport-inner {
        padding: 25px;
    }
    
    .stamps-container {
        justify-content: center;
    }
    
    .passport-stamp-real {
        width: 120px;
    }
    
    .passport-detailed-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .passport-cover h2 {
        font-size: 20px;
    }
    
    .passport-subtitle {
        font-size: 16px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .passport-stamp-real {
        width: 100px;
    }
    
    .achievement-wall {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
/* ====== 新增动画效果 ====== */
@keyframes stampGlow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes chartGrow {
    from { height: 0%; }
    to { height: var(--target-height); }
}

/* ====== 方案一 + 方案五整合的护照设计 ====== */

/* 拟物化护照封面 */
.passport-realistic {
    background: linear-gradient(135deg, #0a1a3d 0%, #1a3a8f 100%);
    border-radius: 16px 16px 8px 8px;
    padding: 40px 30px;
    color: #ffd700;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 2px #ffd700,
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.passport-realistic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 215, 0, 0.05);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 215, 0, 0.05) 10px,
        rgba(255, 215, 0, 0.05) 20px
    );
}

.passport-cover {
    text-align: center;
    position: relative;
    z-index: 2;
}

.passport-cover h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 32px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.passport-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.passport-emblem {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 48px;
    opacity: 0.2;
    animation: gentleFloat 6s infinite alternate ease-in-out;
}

.passport-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 20px;
}

.passport-owner, .passport-issue-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.passport-info .label {
    color: rgba(255, 215, 0, 0.7);
    font-weight: 300;
}

.passport-info .value {
    font-weight: bold;
}

/* 护照内页样式 */
.passport-inner {
    background: linear-gradient(to bottom, #f8f3e9, #f5f0e1);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0d5b8;
    position: relative;
    min-height: 500px;
}

/* 护照纸张纹理 */
.passport-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 79px, rgba(224, 213, 184, 0.3) 79px, transparent 80px),
        linear-gradient(#f5f0e1 1.5px, transparent 1.5px);
    background-size: 80px 20px;
    opacity: 0.4;
    pointer-events: none;
}

/* 数据可视化仪表盘 */
.passport-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dashboard-card h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 世界地图进度 */
.world-map-progress {
    width: 100%;
    height: 180px;
    position: relative;
    background-image: url('images/world-map.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.exploration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(232, 168, 192, 0.3) 0%,
        rgba(74, 144, 226, 0.3) 50%,
        rgba(242, 153, 74, 0.3) 100%
    );
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 1s ease;
}

.map-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.map-stat {
    text-align: center;
}

.map-stat .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

.map-stat .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 统计图表 */
.stats-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 0 10px;
    margin-bottom: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--chart-color), var(--chart-color-light));
    border-radius: 8px 8px 0 0;
    min-height: 10px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.chart-bar:hover {
    transform: scaleY(1.1);
    box-shadow: 
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 0 5px;
}

/* 国家印章区域 */
.passport-stamps-section, 
.passport-achievements-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(93, 74, 58, 0.2);
}

.passport-stamps-section h3,
.passport-achievements-section h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

/* 真实的印章样式 */
.stamps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.passport-stamp-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    padding: 15px;
    margin: 5px;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: rotate(var(--rotation, 0deg));
}

.passport-stamp-real::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(212, 175, 55, 0.05) 5px,
        rgba(212, 175, 55, 0.05) 10px
    );
    pointer-events: none;
}

/* 随机旋转角度 */
.passport-stamp-real:nth-child(odd) { --rotation: -3deg; }
.passport-stamp-real:nth-child(even) { --rotation: 2deg; }

.passport-stamp-real.visited:hover {
    transform: rotate(0deg) scale(1.08);
    z-index: 10;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.stamp-icon {
    font-size: 36px;
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stamp-name {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stamp-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(93, 74, 58, 0.1);
    color: var(--text-secondary);
}

.passport-stamp-real.visited .stamp-status {
    background: rgba(92, 164, 129, 0.2);
    color: #5CA481;
    font-weight: bold;
}

.passport-stamp-real.locked {
    opacity: 0.5;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

/* 成就徽章墙 */
.achievement-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
}

.achievement-badge-visual {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 -3px 5px rgba(0, 0, 0, 0.05),
        inset 0 3px 5px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.achievement-badge-visual.unlocked {
    border-color: var(--badge-color, #F9D466);
    background: radial-gradient(circle at 30% 30%, var(--badge-color-light, rgba(249, 212, 102, 0.9)), var(--badge-color, #F9D466));
    color: white;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1),
        inset 0 3px 5px rgba(255, 255, 255, 0.5);
}

.achievement-badge-visual.locked {
    background: radial-gradient(circle at 30% 30%, rgba(200, 200, 200, 0.9), rgba(180, 180, 180, 0.9));
    color: #999;
    border-color: #ccc;
}

.achievement-badge-visual.unlocked:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1),
        inset 0 3px 5px rgba(255, 255, 255, 0.5);
}

.achievement-badge-visual .badge-name {
    font-size: 10px;
    margin-top: 8px;
    text-align: center;
    color: var(--text-primary);
    font-weight: bold;
}

.achievement-badge-visual.locked .badge-name {
    color: #999;
}

/* 详细统计数据 */
.passport-detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detailed-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.detailed-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--japan-color), var(--spain-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 护照签名 */
.passport-signature {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(93, 74, 58, 0.3);
}

.signature-line {
    width: 200px;
    height: 1px;
    background: var(--text-primary);
    margin: 0 auto 10px;
}

.signature-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.signature-name {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .passport-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .passport-detailed-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .passport-realistic {
        padding: 30px 20px;
    }
    
    .passport-cover h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .passport-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .passport-inner {
        padding: 25px;
    }
    
    .stamps-container {
        justify-content: center;
    }
    
    .passport-stamp-real {
        width: 120px;
    }
    
    .passport-detailed-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .passport-cover h2 {
        font-size: 20px;
    }
    
    .passport-subtitle {
        font-size: 16px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .passport-stamp-real {
        width: 100px;
    }
    
    .achievement-wall {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ====== 新增动画效果 ====== */
@keyframes stampGlow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes chartGrow {
    from { height: 0%; }
    to { height: var(--target-height); }
}