/* 全局基础样式：深色+霓虹游戏风格 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #050816;
    color: #f5f5ff;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-bg {
    position: fixed;
    inset: 0;
    background:
            radial-gradient(circle at 10% 20%, rgba(34,197,94,0.4), transparent 55%),
            radial-gradient(circle at 90% 80%, rgba(190,242,100,0.35), transparent 55%),
            radial-gradient(circle at 40% 80%, rgba(22,163,74,0.3), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.6));
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    min-width: 160px;
    height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #facc15, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1f2933;
    text-shadow: 0 0 8px rgba(250, 250, 210, 0.6);
    box-shadow:
        0 0 20px rgba(250, 204, 21, 0.65),
        0 0 36px rgba(234, 179, 8, 0.55);
    border: 1px solid rgba(252, 211, 77, 0.9);
}

.logo-text h1 {
    font-size: 20px;
    margin: 0;
}

.logo-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 6px 12px;
    border-radius: 999px;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.nav-links a:hover {
    background: rgba(15,23,42,0.9);
    color: #e0f2fe;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.nav-links .admin-link {
    border: 1px solid rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.site-main {
    max-width: 1080px;
    margin: 24px auto 40px;
    padding: 0 16px 32px;
}

.hero {
    border-radius: 24px;
    padding: 26px 26px 26px 26px;
    background:
            linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9)),
            radial-gradient(circle at 10% 0, rgba(248,250,252,0.12), transparent 55%);
    box-shadow:
            0 30px 80px rgba(15, 23, 42, 0.7),
            inset 0 0 0 1px rgba(148, 163, 184, 0.35);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    border: 1px dashed rgba(191, 219, 254, 0.4);
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.6);
    opacity: 0.65;
}

.hero-content {
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 26px;
    margin: 0 0 10px;
}

.hero p {
    margin: 0 0 18px;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: none;
    outline: none;
    background:
        linear-gradient(135deg, #22c55e, #4ade80);
    color: #022c22;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.1s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(22, 163, 74, 0.9);
    filter: brightness(1.04);
}

.btn-danger {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(248, 113, 113, 0.6);
}

.section-card {
    margin-top: 24px;
    border-radius: 20px;
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
    padding: 18px 20px 20px;
    backdrop-filter: blur(22px);
}

.section-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.trend-section {
    margin-top: 24px;
}

.trend-chart-wrapper {
    margin-top: 6px;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0, rgba(74,222,128,0.16), transparent 60%),
                rgba(15,23,42,0.95);
    border: 1px solid rgba(34,197,94,0.6);
    padding: 10px 10px 6px;
}

.trend-chart {
    width: 100%;
    height: 200px;
    display: block;
}

.trend-axis {
    stroke: rgba(148, 163, 184, 0.5);
    stroke-width: 1;
}

.trend-line {
    fill: none;
    stroke: url(#trendStroke);
    stroke-width: 2;
}

.trend-area {
    fill: url(#trendFill);
}

.trend-dot {
    fill: #22c55e;
    stroke: #bbf7d0;
    stroke-width: 1;
}

.trend-label {
    font-size: 11px;
    fill: #9ca3af;
    text-anchor: middle;
}

.trend-label-price {
    fill: #bbf7d0;
    font-size: 10px;
}

.trend-select-form {
    margin-top: 6px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.trend-select-label {
    color: #9ca3af;
}

.trend-select-form select {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
    padding: 4px 8px;
    font-size: 12px;
}

.trend-select-form select:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 1);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.8);
}

.notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #e5e7eb;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.game-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0, rgba(147,197,253,0.2), transparent 60%),
                rgba(15,23,42,0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

.game-name {
    margin: 0 0 6px;
    font-size: 15px;
}

.game-desc {
    margin: 0;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.6;
}

.empty-tip {
    margin: 4px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.contact-section h3 {
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.contact-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
}

.contact-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.admin-section {
    margin-bottom: 10px;
}

.admin-tip {
    margin: 4px 0 14px;
    font-size: 12px;
    color: #9ca3af;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 16px;
}

.admin-block {
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: rgba(15,23,42,0.9);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

.form-card {
    margin: 8px 0 12px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.form-field label {
    font-size: 13px;
    color: #e5e7eb;
}

.form-field input,
.form-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
    padding: 7px 9px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(96, 165, 250, 1);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
    background: rgba(15,23,42,0.98);
}

.table-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 13px;
}

.table-list th,
.table-list td {
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    padding: 8px 6px;
    vertical-align: top;
}

.table-list th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.table-desc {
    color: #d1d5db;
}

.sub-title {
    margin: 10px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.flash-container {
    margin-bottom: 12px;
}

.flash {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

.flash-success {
    background: rgba(22, 163, 74, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.flash-error {
    background: rgba(220, 38, 38, 0.13);
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fecaca;
}

.flash-qa {
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.8);
    color: #dbeafe;
}

.message-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.9);
}

.message-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.message-author {
    font-weight: 600;
    color: #e5e7eb;
}

.message-time {
    font-size: 11px;
}

.message-content {
    margin: 0;
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.6;
}

.site-footer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 10px 0 16px;
}

@media (max-width: 840px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        padding: 18px 16px;
    }

    .site-main {
        margin-top: 12px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

