:root {
    --panel-bg: rgba(17, 17, 17, 0.9);
    --text-gold: #cbb26a; 
    --text-mute: #888;
    --text-white: #e0e0e0;
    --border-color: #7d6b3e;
    --highlight: #ffd700;
    --danger: #8a3324;
}

* { box-sizing: border-box; }

body {
    color: var(--text-gold);
    font-family: 'Songti SC', 'SimSun', serif;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* 背景设置：bg.jpg 需在同级目录 */
    background: 
        radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 100%),
        url('bg.jpg') no-repeat center center fixed;
    background-color: #080808; 
    background-size: cover;
}

.main-container {
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    padding: 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(125, 107, 62, 0.3);
    backdrop-filter: blur(3px);
}

header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

header::after {
    content: "⚜";
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    padding: 0 15px;
    color: var(--border-color);
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(203, 178, 106, 0.2);
}

h1 {
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(203, 178, 106, 0.6);
}

.subtitle { color: var(--text-mute); font-style: italic; font-size: 1rem; }

.search-group {
    width: 100%;
    max-width: 550px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input {
    width: 100%;
    height: 60px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--border-color);
    color: var(--highlight);
    font-size: 1.2rem;
    text-align: center;
    font-family: inherit;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

input:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

button {
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #1f1f1f 0%, #000 100%);
    border: 1px solid var(--border-color);
    color: var(--text-gold);
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 3px;
    transition: 0.3s;
    text-transform: uppercase;
}

button:hover {
    background: var(--border-color);
    color: #000;
    box-shadow: 0 0 25px var(--border-color);
    font-weight: bold;
}

#result-area { display: none; animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.city-zh {
    font-size: 3.5rem;
    color: var(--text-white);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    margin: 0;
    text-align: center;
    margin-bottom: 40px;
}

.lore-box {
    border-left: 3px solid var(--danger);
    background: linear-gradient(90deg, rgba(138,51,36,0.1) 0%, transparent 100%);
    padding: 20px 30px;
    margin-bottom: 50px;
    color: #aaa;
    font-style: italic;
    line-height: 1.8;
    text-align: justify;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--panel-bg);
    border: 1px solid rgba(125, 107, 62, 0.3);
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.info-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--highlight);
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
}

.tag-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    background: rgba(138, 51, 36, 0.2);
    border: 1px solid rgba(138, 51, 36, 0.4);
    color: #dcbfa3;
    padding: 4px 10px;
    font-size: 0.9rem;
}

.day-block { margin-bottom: 70px; position: relative; }
.day-block::before {
    content: ""; position: absolute; left: 15px; top: 40px; bottom: 20px; width: 1px;
    background: linear-gradient(to bottom, var(--border-color), rgba(0,0,0,0)); z-index: 0;
}

.day-header { display: flex; align-items: center; margin-bottom: 30px; position: relative; z-index: 1; }
.day-icon {
    width: 30px; height: 30px; background: #000; border: 2px solid var(--highlight);
    transform: rotate(45deg); display: flex; align-items: center; justify-content: center;
    color: var(--highlight); font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.day-title { margin-left: 30px; font-size: 1.5rem; color: var(--text-white); font-weight: bold; text-shadow: 0 0 10px #000; }

.node-list { margin-left: 60px; }
.node { margin-bottom: 45px; position: relative; }
.node:last-child { margin-bottom: 0; }

.node::after {
    content: "●"; position: absolute; left: -50px; top: 6px; font-size: 10px;
    color: var(--border-color); background: #000; z-index: 1;
    box-shadow: 0 0 5px var(--border-color);
}

.node-name { font-size: 1.25rem; color: var(--text-gold); font-weight: bold; margin-bottom: 8px; text-shadow: 0 0 5px rgba(0,0,0,0.8); }
.node-desc { font-size: 1rem; color: #999; line-height: 1.6; text-align: justify; }

.transport-info {
    display: inline-flex; align-items: center; margin-top: 12px;
    background: rgba(20,20,20,0.9); padding: 6px 15px; border: 1px solid #333;
    border-radius: 4px; font-size: 0.9rem; color: #777; gap: 10px;
}

.xhs-btn {
    display: block; text-align: center; margin-top: 60px; padding: 20px;
    border: 1px solid var(--border-color); color: var(--highlight); text-decoration: none;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 2px;
    background: rgba(20,20,20,0.8); cursor: pointer; user-select: none;
}
.xhs-btn:hover { background: var(--border-color); color: #000; box-shadow: 0 0 25px var(--border-color); }
.error-msg { color: var(--danger); text-align: center; margin-top: 20px; display: none; font-size: 1.1rem; text-shadow: 0 0 10px #000; }

@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } .main-container { padding: 20px 15px; } }
