/* 桃花源 - 主样式文件 */
/* 全局样式 */
:root {
    --bg-start: #ffe9f0;
    --bg-end: #fffefa;
    --panel-bg: rgba(255, 255, 255, 0.96);
    --panel-border: rgba(255, 182, 193, 0.45);
    --panel-shadow: 0 20px 60px rgba(98, 64, 73, 0.18);
    --text-primary: #4c2d23;
    --text-muted: #a67968;
    --accent: #ff7ba5;
    --accent-soft: rgba(255, 182, 193, 0.2);
    --radius-lg: 28px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--bg-start), var(--bg-end));
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px clamp(12px, 3vw, 32px);
}

.page-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.market-page,
.portfolio-page,
.gazette-page,
.leaderboard-page,
.street-fight-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    background: var(--panel-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--panel-border);
    padding: clamp(18px, 4vw, 36px);
    box-shadow: var(--panel-shadow);
}

.street-fight-page {
    padding: clamp(18px, 3.5vw, 32px);
}

.gazette-page {
    gap: 1.5rem;
}

.market-board {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.portfolio-summary div {
    background: rgba(255, 249, 247, 0.9);
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 14px;
    padding: 14px;
}

.portfolio-summary label {
    font-size: 13px;
    color: #a67968;
}

.portfolio-summary strong {
    display: block;
    font-size: 22px;
    margin-top: 6px;
}

.kline-canvas {
    width: 100%;
    height: 260px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    background-color: #fff;
}

.kline-actions {
    display: flex;
    gap: 10px;
}

.kline-btn {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 182, 193, 0.6);
    background: rgba(255, 249, 247, 0.8);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.kline-btn.active {
    background: rgba(255, 182, 193, 0.8);
    color: #5a2c11;
}

.maintenance-board .message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.maintenance-board textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    padding: 10px;
    resize: vertical;
    font-family: inherit;
}

.message-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.message-list li {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a67968;
    margin-bottom: 6px;
}

.message-list p {
    font-size: 14px;
    color: #5a2c11;
    white-space: pre-wrap;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.portfolio-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-card-header small {
    color: #a67968;
}

.portfolio-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.orders-table {
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.orders-head,
.orders-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 14px;
    font-size: 13px;
}

.orders-head {
    background: rgba(255, 249, 247, 0.95);
    font-weight: bold;
}

.orders-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.merchant-hall-page {
    max-width: 1100px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.96);
    border: 3px solid rgba(255, 182, 193, 0.6);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.merchant-hall-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.merchant-hall-header h1 {
    font-size: 28px;
    color: #5a2c11;
}

.merchant-hall-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.merchant-hall-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

.merchant-hall-sidebar {
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 249, 247, 0.9);
}

.merchant-hall-sidebar h3 {
    margin-bottom: 10px;
    color: #a05d4e;
}

.merchant-hall-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.merchant-hall-sidebar li a {
    color: #5a2c11;
    text-decoration: none;
    font-weight: 600;
}

.merchant-hall-sidebar li small {
    display: block;
    font-size: 12px;
    color: #a67968;
}

.merchant-hall-entries {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.merchant-entry {
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
}

.merchant-entry summary {
    cursor: pointer;
    list-style: none;
}

.merchant-entry[open] {
    border-color: rgba(255, 182, 193, 0.8);
    box-shadow: 0 6px 18px rgba(255, 182, 193, 0.25);
}

.merchant-entry-title {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.merchant-alias {
    margin-left: 10px;
    color: #a67968;
    font-size: 14px;
}

.merchant-entry-meta {
    display: flex;
    gap: 12px;
    color: #a05d4e;
    font-size: 14px;
    align-items: center;
}

.merchant-entry-body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #5a2c11;
}

.speaker-card {
    border-left: 4px solid rgba(255, 182, 193, 0.8);
    padding-left: 12px;
}

.merchant-entry-actions {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .merchant-hall-layout {
        grid-template-columns: 1fr;
    }
}

.gazette-body {
    background: linear-gradient(135deg, #ffe9f0, #fffdf5);
    min-height: 100vh;
    padding: 30px 12px;
}

.gazette-page {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 3px solid rgba(255, 182, 193, 0.6);
    padding: 24px;
    box-shadow: 0 20px 45px rgba(255, 182, 193, 0.2);
}

.gazette-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.gazette-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gazette-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.gazette-tab {
    flex: 1;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    background: rgba(255, 249, 247, 0.8);
    cursor: pointer;
    font-size: 15px;
}

.gazette-tab.active {
    background: rgba(255, 182, 193, 0.9);
    color: #5a2c11;
    font-weight: bold;
}

.gazette-panel {
    display: none;
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
}

.gazette-panel.active {
    display: block;
}

.gazette-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.gazette-form textarea {
    border-radius: 14px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 12px;
    resize: vertical;
    font-family: inherit;
}

.gazette-list {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gazette-entry {
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
}

.gazette-entry-meta {
    display: flex;
    justify-content: space-between;
    color: #a67968;
    font-size: 13px;
    margin-bottom: 4px;
}

.gazette-bulletins {
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulletin-entry {
    border-radius: 16px;
    border: 1px solid rgba(255, 182, 193, 0.35);
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
}

.bulletin-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.bulletin-content {
    color: #5a2c11;
    margin-bottom: 8px;
}

.bulletin-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    font-size: 12px;
    color: #a67968;
}

.bulletin-outcome {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.outcome-hit {
    background: rgba(133, 203, 164, 0.3);
    color: #1c7a3b;
}

.outcome-miss {
    background: rgba(255, 188, 188, 0.4);
    color: #a02137;
}

.outcome-expired {
    background: rgba(224, 224, 224, 0.4);
    color: #666;
}

.outcome-pending {
    background: rgba(255, 234, 167, 0.5);
    color: #8a5b00;
}

.street-fight-body {
    min-height: 100vh;
    padding: 28px 12px;
    background: radial-gradient(circle at top, #ffeef3 0%, #fff8f0 45%, #fde7ef 100%);
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    display: block;
    align-items: normal;
    justify-content: normal;
    overflow-y: auto;
}

.announcement-panel {
    background: #fff7eb;
    border-radius: 18px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(255, 196, 107, 0.45);
    box-shadow: 0 20px 40px rgba(255, 167, 38, 0.1);
}

.announcement-panel h3 {
    margin-bottom: 8px;
    color: #b45309;
}

.announcement-text {
    margin: 0;
    color: #4e342e;
    line-height: 1.6;
}

.hub-page {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 32px) 0 60px;
    position: relative;
    color: var(--text-primary);
}

.hub-glow {
    position: absolute;
    width: clamp(180px, 25vw, 320px);
    height: clamp(180px, 25vw, 320px);
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.45;
    z-index: 0;
}

.hub-glow-one {
    background: rgba(242, 180, 198, 0.8);
    top: 40px;
    left: 8%;
}

.hub-glow-two {
    background: rgba(173, 200, 255, 0.7);
    bottom: 80px;
    right: 6%;
}

.hub-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-hero {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 55px rgba(111, 69, 70, 0.12);
    padding: clamp(20px, 4vw, 36px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.hub-greeting {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: rgba(61, 44, 40, 0.75);
}

.hub-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 6px 0;
    color: #e06b90;
}

.hub-subtitle {
    margin-bottom: 18px;
    color: rgba(61, 44, 40, 0.8);
}

.hub-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    flex: 1;
}

.hub-hero-stats div {
    background: rgba(253, 245, 236, 0.95);
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 205, 212, 0.4);
}

.hub-hero-stats span {
    display: block;
    font-size: 0.9rem;
    color: rgba(61, 44, 40, 0.7);
    margin-bottom: 4px;
}

.hub-hero-stats strong {
    font-size: 1.5rem;
    color: #e06b90;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.hub-card {
    background: rgba(255, 252, 247, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(97, 68, 64, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.hub-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #5a2c11;
}

.hub-link {
    font-size: 0.9rem;
    color: #a45a6e;
    text-decoration: none;
}

.hub-link:hover {
    text-decoration: underline;
}

.hub-tag {
    font-size: 0.85rem;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 229, 236, 0.7);
    color: #a04555;
}

.hub-tag.muted {
    background: rgba(226, 226, 226, 0.5);
    color: #6f6f6f;
}

.hub-balance,
.hub-total {
    font-size: 1rem;
    color: #5a2c11;
}

.hub-balance strong,
.hub-total strong {
    font-size: 1.6rem;
    margin-left: 6px;
    color: #e06b90;
}

.hub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hub-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: center;
}

.hub-btn.primary {
    background: linear-gradient(135deg, #ff9e6d, #ff6b9d);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 107, 157, 0.3);
}

.hub-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 107, 157, 0.4);
}

.hub-btn.ghost {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.6);
    color: #a45a6e;
}

.hub-btn.ghost:hover {
    border-color: rgba(255, 150, 170, 0.8);
}

.hub-status-text {
    font-size: 0.9rem;
    color: rgba(61, 44, 40, 0.8);
}

.hub-market-list,
.hub-tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-market-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 249, 247, 0.95);
    border: 1px solid rgba(255, 205, 212, 0.45);
}

.hub-market-card ul small {
    color: #a67968;
    margin-left: 6px;
}

.hub-leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-leaderboard li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 205, 212, 0.4);
}

.hub-highlight-card p {
    color: #5a2c11;
}

.hub-gazette-card form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    padding: 10px;
    font-family: inherit;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
}

.hub-message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-message-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.hub-message-list li {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 205, 212, 0.4);
}

.hub-message-list li > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(61, 44, 40, 0.65);
    margin-bottom: 4px;
}

.hub-message-list p {
    margin: 0;
    color: #5a2c11;
    white-space: pre-wrap;
}

.hub-log-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.hub-log-list li {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 205, 212, 0.4);
}

.hub-log-list li > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(61, 44, 40, 0.65);
    margin-bottom: 4px;
}

.hub-log-list em {
    font-style: normal;
    color: #e06b90;
    font-weight: 600;
}

.hub-profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-profile-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 205, 212, 0.4);
    color: #5a2c11;
}

.hub-profile-list li:last-child {
    border-bottom: none;
}

.hub-profile-list span {
    color: rgba(61, 44, 40, 0.7);
}

.hub-profile-list strong {
    color: #e06b90;
}

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

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fffdf8;
}

.inventory-item .label {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #ffe0b2;
    color: #a04900;
}

.inventory-item .label.muted {
    background: #e0e7ff;
    color: #3f51b5;
}

.hub-tip-list li {
    padding-left: 14px;
    position: relative;
    font-size: 0.95rem;
    color: #5a2c11;
}

.hub-tip-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #e06b90;
}

.hub-empty {
    color: rgba(61, 44, 40, 0.65);
    font-style: italic;
}

@media (max-width: 720px) {
    .hub-hero {
        padding: 20px;
    }
    .hub-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .street-fight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .street-fight-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .bet-options {
        flex-direction: column;
        align-items: stretch;
    }
    .fighter-card header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.street-fight-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.street-fight-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.street-fight-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fight-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.fight-status > div {
    border-radius: 18px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    background: rgba(255, 249, 247, 0.95);
    padding: 16px;
    text-align: center;
}

.fight-status h3 {
    margin-bottom: 6px;
    color: #a05d4e;
}

#fightCountdown {
    font-size: 2.4rem;
    font-weight: bold;
    color: #ff6b9d;
}

.fighters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.fighter-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 182, 193, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 236, 244, 0.9));
    padding: 20px;
    box-shadow: 0 12px 30px rgba(255, 182, 193, 0.25);
}

.fighter-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.fighter-card h2 {
    font-size: 1.8rem;
    color: #5a2c11;
}

.fighter-persona {
    color: #a67968;
    margin: 8px 0;
}

.fighter-card blockquote {
    font-style: italic;
    color: #5a2c11;
    border-left: 4px solid rgba(255, 182, 193, 0.7);
    padding-left: 12px;
    margin: 10px 0;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list li {
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(255, 182, 193, 0.5);
    border-radius: 14px;
    padding: 10px 12px;
}

.skill-list strong {
    color: #a05d4e;
}

.bet-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.bet-form {
    border-radius: 20px;
    border: 1px solid rgba(255, 182, 193, 0.35);
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-options {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.bet-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 182, 193, 0.45);
    background: rgba(255, 249, 247, 0.9);
}

.bet-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.bet-message {
    min-height: 22px;
    color: #a05d4e;
}

.bet-summary {
    border-radius: 20px;
    border: 1px solid rgba(255, 182, 193, 0.35);
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
}

.bet-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bet-summary-grid div {
    background: rgba(255, 249, 247, 0.95);
    border-radius: 16px;
    padding: 14px;
    border: 1px dashed rgba(255, 182, 193, 0.5);
    text-align: center;
}

.public-bets {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.history-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.history-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 182, 193, 0.35);
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
}

.history-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.history-card li {
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    padding: 10px 12px;
    background: rgba(255, 249, 247, 0.9);
}

.bet-win {
    color: #1b8a5a;
}

.bet-lose {
    color: #a02137;
}

.bet-refund {
    color: #c97c10;
}

.bet-pending {
    color: #777;
}

.homestead-page .homestead-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.homestead-status div {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.homestead-status label {
    display: block;
    font-size: 0.85rem;
    color: #a67968;
    margin-bottom: 4px;
}

.homestead-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.action-card {
    border-radius: 20px;
    border: 1px dashed rgba(255, 182, 193, 0.5);
    padding: 16px;
    background: rgba(255, 252, 247, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-form input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.seed-inventory {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seed-inventory li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.farmland-panel {
    border-radius: 18px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.farmland-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.farmland-slot {
    border-radius: 18px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.farmland-slot.empty {
    border-style: dashed;
    align-items: flex-start;
    color: #7a4d3f;
}

.farmland-slot header {
    font-weight: 600;
    color: #a04555;
}

.farmland-actions {
    margin-top: 8px;
}

.harvest-btn {
    flex: 1;
}

.force-btn {
    flex: 1;
    font-size: 0.85rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 182, 193, 0.2);
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, #ff9e6d, #ff6b9d);
    border-radius: inherit;
}

.neighborhood-scroller {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neighborhood-focus-card {
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}

.neighborhood-focus {
    font-weight: 600;
    color: #a04555;
    margin-bottom: 4px;
}

.neighbor-display {
    padding-top: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.neighbor-display p {
    margin: 2px 0;
    color: #6c3d33;
}

.neighbor-display .neighbor-house {
    font-weight: bold;
    font-size: 1.1rem;
}

.neighbor-display.level-7 {
    background: linear-gradient(135deg, #fff5d1, #ffe0f0);
    box-shadow: 0 0 18px rgba(255, 210, 140, 0.45);
    border-color: rgba(255, 215, 140, 0.9);
}

.neighbor-display.level-6,
.neighbor-display.level-5 {
    background: linear-gradient(135deg, #fff4ec, #ffeef9);
    border-color: rgba(255, 190, 170, 0.7);
}

.neighbor-display.empty {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.6);
    color: #a67968;
}

.neighborhood-cards {
    display: none;
}

.scroll-btn {
    border: none;
    background: rgba(255, 182, 193, 0.3);
    color: #a04555;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.neighbor-jump {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.neighbor-jump input {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.store-page .store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.store-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 182, 193, 0.4);
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.store-card .price {
    font-size: 1.25rem;
    color: #e06b90;
}

.store-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    color: #7a4d3f;
}

.store-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.store-actions input {
    width: 72px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.qty-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.quick-buttons {
    display: flex;
    gap: 6px;
}

.quick-buttons button {
    flex: 1;
    padding: 6px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    .street-fight-header {
        flex-direction: column;
    }
    .bet-options {
        flex-direction: column;
        align-items: flex-start;
    }
    .fighters-panel {
        flex-direction: column;
    }
    .bet-section,
    .history-section {
        grid-template-columns: 1fr;
    }
    .neighborhood-scroller {
        flex-direction: column;
    }
    .scroll-btn {
        width: 100%;
        border-radius: 12px;
    }
    .store-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.market-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(255, 249, 249, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.market-row .rise {
    color: #e91e63;
}

.market-row .fall {
    color: #1b8a5a;
}

.order-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.bulletin-board {
    background: #fff8ef;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(104, 67, 18, 0.15);
    border: 1px solid rgba(226, 168, 95, 0.35);
}

.bulletin-chip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 168, 95, 0.35);
    color: #4e2a08;
}

.bulletin-chip strong {
    font-size: 1.1rem;
    color: #b45309;
}

.bulletin-chip small {
    color: rgba(78, 42, 8, 0.6);
}

.bulletin-chip p {
    margin: 0;
    font-weight: 600;
    color: #0d9488;
}

.bulletin-chip > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-form input,
.order-form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table {
    overflow-x: auto;
}

.leaderboard-table table {
    min-width: 480px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
    text-align: center;
}

body.login-page,
body.register-page {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    background-image: url('../images/墨韵桃花登录.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.leaderboard-page {
    display: block;
    padding: 24px 12px;
    overflow-y: auto;
    align-items: flex-start;
}

/* 背景遮罩层，提高文字可读性 */
body.login-page::before,
body.register-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* 容器样式 */
.login-container,
.register-container,
.dashboard-container,
.game-select-container,
.leaderboard-container {
    background-color: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(255, 182, 193, 0.8);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.login-container::before,
.register-container::before,
.dashboard-container::before,
.game-select-container::before,
.leaderboard-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* 标题样式 */
.game-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3rem;
    color: #ff6b9d;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(255, 182, 193, 0.5),
        0 0 40px rgba(255, 182, 193, 0.3);
    font-weight: bold;
}

.game-title span {
    color: #ff9e6d;
    display: inline-block;
    transform: rotate(-5deg);
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(255, 158, 109, 0.5),
        0 0 40px rgba(255, 158, 109, 0.3);
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #ff6b9d;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(255, 249, 249, 0.9);
    border: 2px solid rgba(255, 182, 193, 0.6);
    border-radius: 15px;
    color: #555;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 182, 193, 0.3),
        inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border-color: #ff9e6d;
    background-color: rgba(255, 255, 255, 0.95);
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9e6d, #ff6b9d);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 20px rgba(255, 107, 157, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.8);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(255, 107, 157, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #ffa97d, #ff7bab);
}

.btn:hover::after {
    left: 100%;
}

.btn-login {
    margin-bottom: 15px;
}

.btn-register {
    background: linear-gradient(135deg, #6dc5ff, #9d6bff);
}

.btn-register:hover {
    box-shadow: 0 8px 20px rgba(157, 107, 255, 0.4);
}

/* 链接样式 */
.links {
    text-align: center;
    margin-top: 25px;
}

.links a {
    color: #6dc5ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.links a:hover {
    text-decoration: underline;
    color: #ff6b9d;
}

/* 错误消息样式 */
.error-message {
    color: #ff4757;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    min-height: 20px;
    background-color: #ffeaea;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff4757;
}

/* 游戏描述样式 */
.game-description {
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    background-color: rgba(255, 249, 249, 0.85);
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed rgba(255, 182, 193, 0.6);
    backdrop-filter: blur(8px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
}

/* 音乐控制样式 */
.music-control {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.music-control:hover {
    transform: scale(1.15);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 182, 193, 0.6),
        0 0 30px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 1);
}

.music-control i {
    color: #ff6b9d;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
}

/* 装饰元素样式 */
.decoration {
    position: absolute;
    z-index: 1;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 182, 193, 0.5),
        0 0 50px rgba(255, 182, 193, 0.3);
    filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.5));
}

.decoration-1 {
    top: 25px;
    left: 25px;
    font-size: 2.5rem;
    color: rgba(255, 204, 203, 0.9);
    transform: rotate(-15deg);
    animation: float 5s ease-in-out infinite;
}

.decoration-2 {
    bottom: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: rgba(255, 204, 203, 0.9);
    transform: rotate(15deg);
    animation: float 5s ease-in-out infinite reverse;
}

/* 动画效果 */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 花瓣飘落效果 */
.blossom {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ff9e6d 40%, #ff6b9d 100%);
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
    z-index: 1;
    box-shadow:
        0 0 15px rgba(255, 158, 109, 0.5),
        0 0 30px rgba(255, 107, 157, 0.3);
    filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.5));
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container,
    .register-container,
    .dashboard-container,
    .game-select-container,
    .leaderboard-container {
        padding: 25px;
        margin: 15px;
    }

    .game-title {
        font-size: 2.2rem;
    }

    .music-control {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* 主界面特定样式 */
.dashboard-container {
    max-width: 500px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.big-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, #ff9e6d, #ff6b9d);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.big-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.big-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
}

.big-button:hover::after {
    left: 100%;
}

.big-button .icon {
    font-size: 2rem;
    margin-right: 15px;
}

.big-button.leaderboard {
    background: linear-gradient(135deg, #6dc5ff, #9d6bff);
}

.big-button.leaderboard:hover {
    box-shadow: 0 10px 25px rgba(157, 107, 255, 0.4);
}

.user-stats {
    background-color: #fff9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #ffcccb;
    margin-top: 20px;
}

.user-stats h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
    text-align: center;
}

.user-stats p {
    margin-bottom: 10px;
    color: #666;
}

.user-stats p:last-child {
    margin-bottom: 0;
}

/* 登录页 */
body.login-page {
    --ink-dark: #2f312c;
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    padding: 24px;
    overflow: hidden;
    background: #f4efe4;
}

body.maintenance-page {
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    padding: 24px;
    overflow-y: auto;
    background: #f3eee4;
}

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-background-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.maintenance-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maintenance-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maintenance-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100vh - 48px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: min(100%, 420px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-input {
    width: min(100%, 340px);
    padding: 15px 18px;
    border: 1px solid rgba(109, 118, 108, 0.22);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    color: var(--ink-dark);
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow:
        0 12px 26px rgba(60, 67, 58, 0.1),
        inset 0 1px 3px rgba(85, 80, 74, 0.05);
    backdrop-filter: blur(8px);
}

.login-input::placeholder {
    color: rgba(70, 76, 70, 0.46);
}

.login-input:focus {
    outline: none;
    border-color: rgba(88, 101, 89, 0.42);
    box-shadow:
        0 0 0 3px rgba(208, 221, 210, 0.48),
        inset 0 1px 3px rgba(85, 80, 74, 0.06);
    transform: translateY(-1px);
}

.login-enter-btn {
    width: 118px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(237, 198, 205, 0.54) 0%, rgba(228, 184, 194, 0.62) 100%);
    border: 1px solid rgba(255, 248, 249, 0.55);
    box-shadow:
        0 8px 18px rgba(132, 105, 112, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: rgba(96, 70, 76, 0.92);
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-indent: 0;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-enter-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(241, 206, 212, 0.68) 0%, rgba(232, 190, 200, 0.76) 100%);
    box-shadow:
        0 10px 20px rgba(132, 105, 112, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.maintenance-grid {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.maintenance-card {
    background: rgba(255, 252, 247, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(70, 60, 55, 0.08);
    backdrop-filter: blur(6px);
}

.maintenance-hero {
    grid-column: 1 / -1;
}

.maintenance-username {
    margin: 0 0 6px;
    color: rgba(55, 45, 42, 0.94);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.maintenance-status {
    margin: 0 0 20px;
    color: rgba(78, 66, 60, 0.88);
    font-size: 1.1rem;
}

.maintenance-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.maintenance-link {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
    color: rgba(50, 42, 38, 0.9);
    transition: transform 0.2s ease;
}

.maintenance-link:hover {
    transform: translateY(-2px);
}

.maintenance-link-icon {
    font-size: 1.2rem;
}

.maintenance-link strong {
    display: block;
    font-size: 0.95rem;
}

.maintenance-link small {
    color: rgba(50, 42, 38, 0.7);
}

.stat-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(253, 245, 236, 0.9);
}

.stat-list span {
    color: rgba(78, 66, 60, 0.8);
}

.stat-list strong {
    color: rgba(50, 42, 38, 0.95);
}

.wallet-amount {
    margin: 6px 0;
    font-size: 1.05rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.text-link {
    font-size: 0.9rem;
    color: rgba(96, 70, 76, 0.9);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.muted {
    color: rgba(78, 66, 60, 0.6);
    font-size: 0.85rem;
}

.market-preview {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-preview li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(253, 245, 236, 0.9);
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
}

.maintenance-card .rise {
    color: #e74c3c;
}

.maintenance-card .fall {
    color: #1b8a5a;
}

@media (max-width: 900px) {
    .login-background-image {
        object-fit: cover;
    }

    .maintenance-background-image {
        object-position: center center;
    }
}

@media (max-width: 640px) {
    body.login-page {
        padding: 18px 14px;
    }

    body.maintenance-page {
        padding: 18px 14px;
    }

    .login-form {
        width: min(100%, 320px);
    }

    .login-enter-btn {
        width: auto;
    }

    .login-input {
        width: 100%;
    }

    .login-background-image {
        object-position: 54% center;
    }

    .maintenance-message {
        width: min(100%, 320px);
    }

    .page-corner-link {
        top: 16px;
        min-width: 74px;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .page-corner-link-left {
        left: 14px;
    }

    .page-corner-link-right {
        right: 64px;
    }
}
