:root {
    --bg: #f6f1e6;
    --card: #fffdf8;
    --line: #efe4d0;
    --text: #2b2418;
    --mute: #8a7a5a;
    --gold: #e6a800;
    --deep: #3a3224;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
}
.hidden { display: none !important; }
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 360px;
    background: var(--card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(80, 60, 20, 0.08);
}
.logo {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
}
.sub { text-align: center; color: var(--mute); margin: 6px 0 20px; }
.login-card input, .form-card input, .modal-card input, .modal-card textarea, .modal-card select {
    width: 100%;
    border: 1px solid var(--line);
    background: #faf6ee;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 14px;
}
button {
    border: none;
    background: var(--deep);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
}
.login-card button, .form-card button { width: 100%; margin-top: 8px; }
.hint { font-size: 12px; color: var(--mute); text-align: center; }
.layout { display: flex; min-height: 100vh; }
.side {
    width: 220px;
    background: #2f291f;
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
}
.brand { font-weight: 800; font-size: 20px; margin-bottom: 24px; }
.nav-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #d8cbb0;
    margin-bottom: 6px;
}
.nav-btn.active { background: #e6a800; color: #2b2418; font-weight: 700; }
.logout {
    margin-top: auto;
    background: transparent;
    border: 1px solid #5a4e3e;
    color: #d8cbb0;
}
.main { flex: 1; padding: 28px; }
.page-head { display: flex; justify-content: space-between; align-items: center; }
.table, .card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { background: #faf6ee; color: var(--mute); font-weight: 700; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff3d6; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tiny { background: #faf6ee; color: #8a7a5a; border: 1px solid var(--line); }
.spot-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.spot-list, .spot-detail, .form-card, .msg-log {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
}
.spot-item, .friend-item, .room-item, .announce-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}
.spot-item.active { border-color: var(--gold); background: #fff8e8; }
.map-box {
    position: relative;
    height: 360px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.2), rgba(180,150,80,0.08)),
        repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(180,150,80,0.08) 28px),
        #efe4c8;
    overflow: hidden;
    margin-top: 12px;
}
.pin {
    position: absolute;
    transform: translate(-50%, -100%);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
}
.pin.shop { background: #fff3d6; color: #c48a2e; }
.pin.toilet { background: #e8f5e9; color: #2e9a6e; }
.pin.check { background: #eef6ff; color: #3d7ecc; }
.pin.check.done { background: #e2f7ee; color: #2e9a6e; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { background: #faf6ee; color: var(--deep); }
.tab.active { background: var(--gold); }
.msg {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.bubble { background: #faf6ee; border-radius: 12px; padding: 8px 12px; max-width: 70%; }
.msg-zh { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e6dcc8; color: #8a7a5a; font-size: 12px; font-weight: 700; line-height: 1.45; }
.ai-tr-btn { display: block; margin-top: 6px; border: 1px solid #e6a800; background: #fff8e6; color: #b8860b; font-size: 13px; font-weight: 700; cursor: pointer; padding: 3px 10px; border-radius: 12px; }
.bubble img, .bubble video { max-width: 240px; display: block; border-radius: 8px; }
.modal {
    position: fixed; inset: 0;
    background: rgba(30,25,15,0.4);
    display: flex; align-items: center; justify-content: center;
}
.modal-card { width: 460px; background: #fff; border-radius: 18px; padding: 20px; }
.row-btns { display: flex; gap: 8px; justify-content: flex-end; }
label { display: block; font-size: 13px; color: var(--mute); margin-top: 8px; }
.stars { color: var(--gold); letter-spacing: 2px; }
