/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.15)),
        url('beijing.webp') no-repeat center center fixed;
    background-size: auto, cover;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.35);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.4s ease, border-color 0.4s ease;
}
nav.scrolled {
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 22px;
}
.nav-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-logo {
    color: #1d1d1f;
    text-shadow: none;
}
nav.scrolled .nav-links a {
    color: #86868b;
    text-shadow: none;
}
nav.scrolled .nav-links a:hover { color: #1d1d1f; }

/* ===== Hero ===== */
.hero {
    margin-top: 48px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    text-align: center;
    padding: 120px 20px 100px;
}
.hero h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero p {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Section common ===== */
section {
    padding: 80px 20px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}
.section-subtitle {
    font-size: 18px;
    color: #515154;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ===== Articles Grid ===== */
.articles-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.article-card {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.article-card:hover {
    background: rgba(255,255,255,0.68);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-4px);
}
.article-card .tag {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
    color: #1d1d1f;
}
.article-card p {
    font-size: 14px;
    color: #86868b;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .date {
    font-size: 12px;
    color: #86868b;
    margin-top: 16px;
}

/* ===== About ===== */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 40px 32px;
}
.about-content p {
    font-size: 18px;
    color: #1d1d1f;
    margin-top: 16px;
}

/* ===== Footer ===== */
footer {
    background: rgba(0,0,0,0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
footer a { color: rgba(255,255,255,0.85); }
footer a:hover { text-decoration: underline; color: #fff; }

/* ===== Article Detail Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 24px;
    max-width: 900px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #86868b;
    transition: color 0.2s;
}
.modal-close:hover { color: #1d1d1f; }
.modal-box .tag {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modal-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 12px;
}
.modal-box .date {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 24px;
}
.modal-box .body {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.8;
}
.modal-box .body p { margin-top: 1.2em; }

/* ===== Music Toggle ===== */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1d1d1f;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.music-toggle:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.08);
}
.music-toggle.playing {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.15);
}

/* ===== Music Toast ===== */
.music-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 160;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.4s ease;
}
.music-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.music-toast .toast-text {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
}
.music-toast .toast-btns {
    display: flex;
    gap: 10px;
}
.music-toast .toast-btns button {
    flex: 1;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.music-toast .btn-yes {
    background: #1d1d1f;
    color: #fff;
}
.music-toast .btn-yes:hover { background: #333; }
.music-toast .btn-no {
    background: rgba(0,0,0,0.06);
    color: #515154;
}
.music-toast .btn-no:hover { background: rgba(0,0,0,0.12); }

/* ===== Gallery Grid ===== */
.gallery-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-card {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-card:hover {
    background: rgba(255,255,255,0.68);
    transform: translateY(-4px);
}
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.gallery-card:first-child img {
    object-position: top center;
}
.gallery-card .caption {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

/* ===== Image Lightbox ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ===== Music List ===== */
.music-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.music-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 18px 24px;
    transition: all 0.3s ease;
}
.music-row:hover {
    background: rgba(255,255,255,0.65);
    transform: translateX(4px);
}
.music-row .play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.7);
    color: #1d1d1f;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.music-row .play-btn:hover {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}
.music-row .play-btn.playing {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}
.music-row .info {
    flex: 1;
    min-width: 0;
}
.music-row .info .track-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}
.music-row .info .track-desc {
    font-size: 13px;
    color: #86868b;
    margin-top: 2px;
}
.music-row .progress-area {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.music-row .time {
    font-size: 11px;
    color: #86868b;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.music-row .progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.12);
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
}
.music-row .progress-bar:hover {
    height: 6px;
}
.music-row .progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.music-row .progress-bar:hover::-webkit-slider-thumb {
    opacity: 1;
}
.music-row .progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    border: none;
}

/* ===== Responsive ===== */
@media (max-width: 734px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .section-title { font-size: 28px; }
    .articles-grid { grid-template-columns: 1fr; }
    .modal-box { padding: 32px 24px; }
    .modal-box h2 { font-size: 24px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .gallery-card img { height: 160px; }
    .lightbox-prev { left: 8px; width: 36px; height: 36px; font-size: 24px; }
    .lightbox-next { right: 8px; width: 36px; height: 36px; font-size: 24px; }
    .music-row { padding: 14px 16px; gap: 12px; }
    .music-row .info .track-title { font-size: 14px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 11px; }
}
