* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.game-article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #64b5f6;
}

.game-title {
    font-size: 2.5rem;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.download-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.download-link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

#downloadLink {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.9rem;
}

.copy-btn {
    background: #64b5f6;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #42a5f5;
    transform: scale(1.05);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #64b5f6;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-item i {
    font-size: 2.5rem;
    color: #64b5f6;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.guide-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #64b5f6;
}

.guide-item h3 {
    color: #64b5f6;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    display: none;
}

.sidebar-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-content h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-content h3:first-child,
.sidebar-content h3:last-child {
    display: none;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 2rem;
    display: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: #d0d0d0;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
}

.sidebar-download-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: none;
}

.sidebar-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.footer-main {
    background: rgba(26, 26, 46, 0.95);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-content {
        grid-template-columns: 1fr;
        margin-top: 80px;
        padding: 0 1rem;
    }

    .sidebar {
        display: none;
    }

    .game-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-link-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .copy-btn {
        width: 100%;
    }
}

.article-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.news-item, .update-item, .event-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-header, .event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-date, .update-date {
    color: #64b5f6;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.news-tag {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.update-list {
    list-style: none;
    margin: 1rem 0;
}

.update-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.update-list li:before {
    content: '✓';
    color: #64b5f6;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.event-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-status.active {
    background: #4caf50;
    color: white;
}

.event-status.upcoming {
    background: #ff9800;
    color: white;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.event-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid, .features-review {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.screenshot-item {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.tip-item, .feature-review-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.tip-item:hover, .feature-review-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.tip-item i, .feature-review-item i {
    font-size: 2.5rem;
    color: #64b5f6;
    margin-bottom: 1rem;
}

.tip-item h3, .feature-review-item h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 下载弹窗样式 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.download-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #64b5f6;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #d0d0d0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-link-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    word-break: break-all;
}

.download-link-display span {
    color: #64b5f6;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn.primary {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .game-article {
        padding: 1rem;
    }

    .game-title-section {
        flex-direction: column;
        text-align: center;
    }

    .game-tags {
        justify-content: center;
    }

    .news-header, .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tips-grid, .features-review {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* 友情链接样式 - 监禁少女2主题 */
.friend-links-section-swd {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 139, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.15);
}

.friend-links-title-swd {
    color: #dc143c;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
    position: relative;
}

.friend-links-title-swd::before {
    content: '🔐';
    margin-right: 8px;
}

.friend-links-container-swd {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-link-swd {
    display: inline-block;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(220, 20, 60, 0.6);
    border-radius: 10px;
    color: #b91c3c;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.friend-link-swd:hover {
    background: linear-gradient(135deg, #dc143c, #8b008b);
    color: white;
    border-color: #dc143c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

/* Whitehat protocol additions. Existing site styles remain unchanged. */
.my-news-home, .my-news-page { --my-news-surface: rgba(26,26,46,.92); --my-news-text: #f2f5ff; --my-news-muted: #c2cad9; --my-news-accent: #64b5f6; --my-news-line: rgba(100,181,246,.3); }
.my-news-home { width: 100%; padding: 32px 16px 48px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(1180px, 100%); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 4px; color: var(--my-news-accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { margin-top: 0; color: var(--my-news-text); }
.my-news-heading h2 { margin-bottom: 0; font-size: 1.55rem; line-height: 1.3; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; width: fit-content; align-items: center; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 190px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: 8px; box-shadow: 0 10px 26px rgba(0, 0, 0, .12); }
.my-news-card h2, .my-news-card h3 { margin-bottom: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin-top: 10px; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: 8px; }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: 32px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: 8px; box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: 2rem; line-height: 1.3; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
[data-seo-managed="download-link"] { text-decoration: none; }
/* The container selector also styles backend-rendered anchors when their class attribute is removed. */
.friend-links-container-swd { display: flex; flex-wrap: wrap; gap: 7px 0; }
.friend-links-container-swd > a { display: inline-flex; align-items: center; color: #bdc3c7 !important; font-size: .9rem; line-height: 1.45; text-decoration: none !important; transition: color .2s ease; }
.friend-links-container-swd > a:not(:last-of-type)::after { content: ''; width: 1px; height: 12px; margin: 0 10px; background: color-mix(in srgb, #bdc3c7 35%, transparent); }
.friend-links-container-swd > a:hover, .friend-links-container-swd > a:focus-visible { color: #64b5f6 !important; outline: none; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #fff; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; }.my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; }.my-news-page { padding: 26px 12px 44px; }.my-news-page .my-news-detail { padding: 22px; }.friend-links-container-swd { justify-content: center; }.friend-links-container-swd > a:not(:last-of-type)::after { margin-inline: 8px; } }
