/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    top: 100%;
    margin-top: 0.5rem;
    z-index: 1001;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f7fa;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, rgb(126 81 88 / 0%) 0%, rgb(107 68 73 / 0%) 100%), url(banner-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom; */
    background-size: cover;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-text {
    text-align: center;
    margin-bottom: 3rem;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.banner-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.3rem;
}

.card-body {
    padding: 1.5rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.download-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.item-name {
    font-weight: 600;
    color: #333;
}

.item-size {
    font-size: 0.85rem;
    color: #666;
}

.btn-download {
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(126, 81, 88, 0.4);
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
}

/* 功能特性区 */
.features {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 81, 88, 0.2);
    border-color: #7e5158;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 引擎类型选择区 */
/* 轮播指示器 */
.carousel-indicators {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.2);
}

.engine-types {
    padding: 3rem 0;
    color: white;
    background: linear-gradient(135deg, rgb(126 81 88 / 73%) 0%, rgb(107 68 73 / 78%) 100%), url(banner-bg.png);
    position: relative;
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    background-size: cover;
}

.engine-types .section-title {
    color: white;
}

.engine-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

/* 手机端轮播样式 */
@media (max-width: 768px) {
    .carousel-indicators {
        display: flex;
    }

    .engine-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
    }

    .engine-tabs::-webkit-scrollbar {
        display: none;
    }

    .engine-tab {
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-height: 250px;
        padding: 1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .tab-icon {
        position: relative;
        left: -20px;
        top: 0;
        transform: none;
        width: 120px;
        height: 180px;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .tab-icon img {
        width: 130%;
        height: 130%;
        left: -15%;
    }

    .tab-content {
        flex: 1;
        text-align: right;
        padding-right: 0.5rem;
        margin-top: 0;
        min-width: 0;
    }

    .engine-tab h3 {
        font-size: 1.5rem;
        text-align: right;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .engine-tab p {
        font-size: 1.1rem;
        text-align: right;
        word-wrap: break-word;
    }

    .class-details {
        margin-top: 2rem;
    }

    .class-detail {
        padding: 1.5rem;
    }

    .class-detail h3 {
        font-size: 1.4rem;
    }

    .class-detail ul li {
        font-size: 1rem;
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }
}

.engine-tab {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding-left: 180px;
    overflow: visible;
}

.engine-tab:hover,
.engine-tab.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
}

.tab-icon {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
}

.tab-icon img {
    width: 140%;
    height: 114%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    position: relative;
    left: -20%;
}

.tab-content {
    flex: 1;
    text-align: right;
    padding-right: 1rem;
    margin-top: 0;
    z-index: 5;
}

.engine-tab h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: bold;
    text-align: right;
}

.engine-tab p {
    font-size: 1.4rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
}

/* 底部 */
.footer {
    background-color: #401f1d;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #7e5158;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: #7e5158;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #7e5158;
}

/* 下载卡片底部二维码 */
.qr-footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.2rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.qr-item {
    text-align: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.qr-img-box {
    padding: 12px 12px 8px 12px;
}

.qr-item img {
    width: 90px;
    height: 90px;
    display: block;
    margin: 0 auto;
}

.qr-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
}

.qr-label.android {
    background: #3b7d9f;
}

.qr-label.ios {
    background: #333;
}

.qr-label i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .qr-footer {
        padding: 1rem;
        gap: 1.2rem;
    }
    
    .qr-img-box {
        padding: 10px 10px 6px 10px;
    }
    
    .qr-item img {
        width: 70px;
        height: 70px;
    }
    
    .qr-label {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .qr-label i {
        font-size: 12px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #8a584e;
    color: #ca725e;
}

/* 怪物爆率区 */
.monsters {
    padding: 5rem 0;
    background-color: white;
}

.monster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.monster-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.monster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 81, 88, 0.2);
    border-color: #7e5158;
}

.monster-card.special {
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    color: white;
}

.monster-card.special h3 {
    color: white;
}

.monster-card.special p {
    color: #f5f7fa;
}

.monster-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monster-card h3 i {
    color: #7e5158;
}

.monster-card p {
    color: #666;
    line-height: 1.6;
}

/* 地图开放区 */
.maps {
    padding: 5rem 0;
    color: white;
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    background-size: cover;
}

.maps .section-title {
    color: white;
}

.map-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.map-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.map-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.map-item:nth-child(odd) {
    flex-direction: row;
}

.map-item:nth-child(even) {
    flex-direction: row-reverse;
}

.map-time {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.map-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 0 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #7e5158;
}

.map-content p {
    color: #666;
    line-height: 1.6;
}

/* 充值介绍区 */
.recharge {
    padding: 5rem 0;
    background-color: #f5f7fa;
}

.recharge-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recharge-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recharge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 81, 88, 0.2);
    border-color: #7e5158;
}

.recharge-card.highlight {
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    color: white;
    border-color: #7e5158;
}

.recharge-card.highlight p {
    color: white;
}

.recharge-card.highlight .highlight-text {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 1rem;
}

.recharge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #7e5158 0%, #6b4449 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recharge-card.highlight .recharge-icon {
    background: white;
}

.recharge-icon i {
    font-size: 2rem;
    color: white;
}

.recharge-card.highlight .recharge-icon i {
    color: #7e5158;
}

.recharge-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.recharge-card.highlight h3 {
    color: white;
}

.recharge-rate {
    font-size: 2rem;
    font-weight: bold;
    color: #7e5158;
    margin: 1rem 0;
}

.recharge-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.recharge-note {
    font-size: 0.9rem;
    color: #999;
}

/* 职业详情 */
.class-details {
    margin-top: 3rem;
}

.class-detail {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.class-detail.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-detail h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #7e5158;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.class-detail ul {
    list-style: none;
    padding: 0;
}

.class-detail ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.class-detail ul li:last-child {
    border-bottom: none;
}

.class-detail ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7e5158;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }

    .banner {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .features {
        padding: 3rem 0;
    }

    .engine-types {
        padding: 3rem 0;
    }

    .maps {
        padding: 3rem 0;
    }

    .recharge {
        padding: 3rem 0;
    }

    .monsters {
        padding: 3rem 0;
    }

    .download-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .download-card {
        margin-bottom: 0;
    }

    .card-header {
        padding: 1rem;
    }

    .card-header i {
        font-size: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .download-item {
        padding: 0.8rem 0;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-size {
        font-size: 0.8rem;
    }

    .btn-download {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .card-footer {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .engine-tabs {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: #7e5158;
        font-weight: bold;
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0;
    }

    .footer-section ul li {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }

    .footer-section ul li i {
        margin-right: 0.4rem;
        width: 16px;
        text-align: center;
    }

    .footer-section ul li a {
        display: inline-block;
        padding: 0.2rem 0;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .monster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .recharge-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .recharge-card {
        padding: 1.5rem 0.8rem;
    }

    .recharge-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .recharge-icon i {
        font-size: 1.3rem;
    }

    .recharge-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .recharge-rate {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .recharge-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }

    .recharge-card.highlight .highlight-text {
        font-size: 0.9rem;
    }

    .recharge-note {
        font-size: 0.7rem;
    }

    .map-timeline::before {
        display: block;
        left: 50%;
    }

    .map-item,
    .map-item:nth-child(odd),
    .map-item:nth-child(even) {
        flex-direction: row;
        margin-bottom: 1.5rem;
    }

    .map-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .map-time {
        flex: 1;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .map-content {
        flex: 1;
        margin: 0 1rem;
        padding: 1rem;
    }

    .map-content h4 {
        font-size: 1rem;
    }

    .map-content p {
        font-size: 0.85rem;
    }
}
