:root {
    --bg: #0d1117;
    --card-bg: #161b22;
    --border: #30363d;
    --accent: #2f81f7;
    --text-main: #f0f6fc;
    --text-dim: #8b949e;
    --max-width: 1280px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% -20%, #1e293b 0%, var(--bg) 80%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hero-header, #hero-area {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 20px 30px 10px 30px;
}
.hero-header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: 10px;
}
.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 80px 40px;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    flex: 1;
}
@media (min-width: 900px) {
    .wrapper { grid-template-columns: 2fr 200px; }
}
.main-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.section-header .line {
    height: 1px;
    background: var(--border);
    flex-grow: 1;
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1279.98px) {
    .nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899.98px) {
    .nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.nav-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
}
.nav-card:hover {
    border-color: var(--accent);
    background: #1c2128;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.nav-card .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.nav-card .content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-card .name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.nav-card .desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-card .desc em {
    color: #fba700;
    font-style: normal;
    font-weight: 600;
    background: rgba(251, 167, 0, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
}
/* --- 方案：左侧高亮条 + 内部发光感 --- */

.nav-card.hot-card {
    border-left: 4px solid #fba700;
    background: linear-gradient(90deg, rgba(251, 167, 0, 0.1) 0%, var(--card-bg) 100%);
    position: relative;
    padding-left: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-card.hot-card .name::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fba700;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #fba700;
    animation: hot-pulse 1.5s infinite;
}

.nav-card.hot-card .icon {
    background: rgba(251, 167, 0, 0.2);
    color: #fba700;
    border: 1px solid rgba(251, 167, 0, 0.3);
}

.nav-card.hot-card::after,
.nav-card.hot-card::before {
    display: none;
}

.nav-card.hot-card:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(251, 167, 0, 0.2) 0%, #1c2128 100%);
    border-left-width: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hot-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.nav-card.hot-card .desc em {
    background: #fba700;
    color: #000;
}
.side-bar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.panel-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}
.panel-box h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 12px;
}
.panel-box p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.feedback-cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    width: 100%;
    font-size: 1.25rem;
}
.feedback-cta strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}
.feedback-cta span {
    display: block;
    font-size: 1rem;
    opacity: 0.95;
}
.feedback-cta:hover {
    transform: translateY(-4px) scale(1.04);
    filter: brightness(1.15);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 28px;
    position: relative;
    color: var(--text-main);
}
.close {
    position: absolute;
    right: 20px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dim);
}
.close:hover { color: white; }

#feedback-form label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 500;
}
#feedback-form textarea,
#feedback-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 4px 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d1117;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}
#feedback-form textarea {
    min-height: 110px;
    resize: vertical;
}
#char-count {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: right;
}
.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 16px;
    transition: 0.2s;
}
.submit-btn:hover {
    background: #1e40af;
}

.donate-text {
    position: fixed;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 27, 34, 0.92);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 999;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.donate-text .donate-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.donate-text .donate-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
}

.donate-modal .modal-content {
    max-width: 420px;
    text-align: center;
    padding: 40px 35px;
}
.donate-modal-content {
    position: relative;
}
.donate-close {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 32px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.donate-close:hover {
    color: var(--text-main);
}
#donate-title {
    font-size: 1.6rem;
    margin: 0 0 20px 0;
    color: var(--text-main);
    font-weight: 700;
}
.donate-tip {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin: 0 0 25px 0;
}
.donate-qrcode {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 2px solid var(--border);
}
.donate-thanks {
    color: #10b981;
    font-size: 1.1rem;
    margin: 25px 0 0 0;
    font-weight: 600;
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 1rem;
}

footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #444;
    font-size: 0.85rem;
}
@media (max-width: 640px) {
    .hero-header, #hero-area { padding: 40px 25px 10px 25px; }
    .hero-header h1 { font-size: 1.8rem; }
    .wrapper { padding: 0 25px 40px 25px; }
    .nav-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .nav-card {
        padding: 12px 14px;
        gap: 12px;
        min-height: 64px;
    }
    .nav-card .icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .nav-card .name {
        font-size: 0.9rem;
    }
    .nav-card .desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 639.98px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}
