/* 古式按摩店官网样式 - 基于按摩店主题的温暖色调 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc6 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header-main {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.download-nav {
    background: #ff6b35 !important;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-nav:hover {
    background: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
.main-content {
    padding: 2rem 0;
}

.content-main {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    background: linear-gradient(135deg, #d2691e 0%, #cd853f 100%);
    padding: 2rem;
    color: #fff;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-title i {
    color: #ffd700;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.game-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.game-icon {
    flex-shrink: 0;
}

.icon-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.title-content {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-title i {
    color: #ffd700;
}

.title-badge {
    background: #ff6b35;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 1rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-primary {
    background: #4a90e2;
    color: #fff;
}

.tag-secondary {
    background: #7b68ee;
    color: #fff;
}

.tag-accent {
    background: #ff6b35;
    color: #fff;
}

.game-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff6b35;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.download-btn:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

/* 文章内容 */
.article-body {
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid #d2691e;
    padding-bottom: 0.5rem;
}

.section-title i {
    color: #d2691e;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.text-content h2 {
    color: #8b4513;
    margin: 2rem 0 1rem 0;
    font-size: 1.6rem;
}

.text-content h3 {
    color: #a0522d;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.3rem;
}

.text-content h4 {
    color: #cd853f;
    margin: 1.2rem 0 0.6rem 0;
    font-size: 1.1rem;
}

.text-content ul, .text-content ol {
    margin: 1rem 0 1rem 2rem;
    color: #555;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.image-container {
    margin: 2rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 攻略和资讯导航 */
.strategy-nav, .news-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.strategy-link, .news-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.strategy-link:hover, .news-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4a90e2;
}

.strategy-link i, .news-link i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.strategy-link span, .news-link span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 提示框 */
.tips-box {
    background: #f0f8ff;
    border-left: 4px solid #4a90e2;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.tips-box h4 {
    color: #4a90e2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-box i {
    color: #ffd700;
}

/* 角色网格 */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.character-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-image {
    text-align: center;
    margin-bottom: 1rem;
}

.char-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d2691e;
}

.char-name {
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 0.5rem;
    text-align: center;
}

.char-desc {
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* 截图网格 */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下载区域 */
.download-content {
    text-align: center;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.feature-item i {
    color: #4a90e2;
    font-size: 1.2rem;
}

.download-btn-large {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
}

/* 页脚 */
.footer-main {
    background: #8b4513;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-links-section {
    margin-bottom: 2rem;
}

.footer-links-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links-title i {
    color: #ffd700;
}

.footer-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-link:hover {
    background: rgba(255,255,255,0.2);
    color: #ffd700;
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #8b4513;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .game-title-section {
        flex-direction: column;
        text-align: center;
    }

    .game-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .download-features {
        grid-template-columns: 1fr;
    }

    .strategy-nav, .news-nav {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 1rem;
    }

    .article-header {
        padding: 1.5rem;
    }

    .article-body {
        padding: 1.5rem;
    }
    
    .footer-links-grid {
        gap: 0.8rem;
    }
    
    .footer-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .download-btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .footer-links-grid {
        gap: 0.5rem;
    }
    
    .footer-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .footer-links-title {
        font-size: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d2691e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}


/* 攻略卡片样式 */
.strategy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #d2691e;
    text-decoration: none;
    color: inherit;
}

.strategy-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d2691e 0%, #b8860b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.strategy-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.strategy-card-content {
    flex: 1;
}

.strategy-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.strategy-card-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .strategy-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .strategy-card {
        padding: 1rem;
    }
    
    .strategy-card-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
    
    .strategy-card-icon i {
        font-size: 1.2rem;
    }
    
    .strategy-card-title {
        font-size: 1.1rem;
    }
    
    .strategy-card-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .strategy-card {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}


/* 资讯卡片样式 */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.news-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #b8860b;
    text-decoration: none;
    color: inherit;
}

.news-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.news-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.news-card-content {
    flex: 1;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.news-card-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .news-card-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
    
    .news-card-icon i {
        font-size: 1.2rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .news-card {
        flex-direction: column;
        text-align: center;
    }
    
    .news-card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}


/* 导航下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: #8b4513;
    text-decoration: none;
    padding-left: 1.2rem;
}

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #e0e0e0;
        background: rgba(255,255,255,0.1);
        margin-bottom: 0.25rem;
        border-radius: 4px;
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .download-nav {
        background: #ff6b35 !important;
        border-radius: 15px;
        padding: 0.4rem 0.8rem;
    }
}


/* Managed download confirmation preserves the template's existing warm visual style. */
.download-confirm-modal { align-items: center; background: rgba(46, 29, 20, .72); display: none; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 2200; }
.download-confirm-modal.is-open { display: flex; }
.download-confirm-dialog { background: #fff8ed; border: 2px solid #c4874b; border-radius: 12px; box-shadow: 0 18px 48px rgba(45, 26, 14, .35); color: #4a3328; max-width: 440px; padding: 34px; position: relative; text-align: center; width: 100%; }
.download-confirm-dialog h2 { color: #8b4513; margin: 12px 0; }
.download-confirm-dialog p { line-height: 1.7; margin: 0; }
.download-confirm-icon { color: #b76e2d; font-size: 2.1rem; }
.download-confirm-close { background: transparent; border: 0; color: #815c42; cursor: pointer; font-size: 2rem; line-height: 1; position: absolute; right: 14px; top: 10px; }
.download-confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 25px; }
.download-confirm-actions button { border-radius: 7px; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 18px; }
.download-confirm-cancel { background: #fff8ed; border: 1px solid #c9a882; color: #6b4c3b; }
.download-confirm-proceed { background: #b76e2d; border: 1px solid #b76e2d; color: #fff; }
@media (max-width: 480px) { .download-confirm-dialog { padding: 30px 20px 22px; } .download-confirm-actions { flex-direction: column; } }
