/*
 * 作者：莲
 * 作者博客：https://blog.52lian.cc
 * 项目地址：https://github.com/52-lian/Web-Zhanqu
 * 战区查询网页版样式文件
 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.nav-logo i {
    margin-right: 10px;
    color: #ffd700;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页样式 */
.hero-section {
    margin-bottom: 30px;
}

.hero-background {
    background: linear-gradient(135deg, #78c4bc 0%, #299f92 100%);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.notice-bar {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.9rem;
}

.notice-bar i {
    margin-right: 10px;
    color: #ffd700;
}

.swiper-container {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    min-width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-dot.active {
    background: white;
    transform: scale(1.2);
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #299f92;
}

.section-title i {
    margin-right: 10px;
}

.hot-functions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.function-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #299f92;
}

.function-item i {
    font-size: 2rem;
    color: #299f92;
    margin-bottom: 10px;
}

.function-item span {
    font-size: 0.9rem;
    color: #299f92;
    font-weight: 500;
}

.article-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.read-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.read-btn:hover {
    background: white;
    color: #667eea;
}

/* 工具页样式 */
.tools-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #299f92;
}

.tool-category h3 {
    color: #299f92;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tool-category h3 i {
    margin-right: 10px;
}

.tool-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.tool-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #299f92;
}

.tool-item i {
    font-size: 1.5rem;
    color: #299f92;
    margin-bottom: 8px;
}

.tool-item span {
    font-size: 0.8rem;
    color: #666;
}

/* 王者页样式 */
.king-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-section {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #299f92;
}

.search-box button {
    background: #299f92;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #1e7a6f;
    transform: translateY(-2px);
}

.hero-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.tab-btn:hover {
    border-color: #299f92;
    color: #299f92;
}

.tab-btn.active {
    background: #299f92;
    border-color: #299f92;
    color: white;
}

.hero-list {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
}

.hero-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #299f92;
}

.hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin: 0;
    padding: 0;
}

.hero-type-tag {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-size: 0.85rem;
}



/* 关于页样式 */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.main-about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.main-about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    backdrop-filter: blur(10px);
}

.about-icon i {
    font-size: 2rem;
    color: #ffd700;
}

.about-title h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 特性展示样式 */
.features-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.features-section .section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #299f92;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #299f92;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #299f92 0%, #1e7a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 版本信息样式 */
.version-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.version-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #299f92;
}

.version-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #299f92;
}

.version-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.version-header h4 {
    font-size: 1.3rem;
    margin: 0;
}

.version-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.version-label {
    font-weight: 600;
    color: #333;
}

.version-value {
    color: #299f92;
    font-weight: 500;
}

/* 联系方式样式 */
.contact-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contact-section .section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #299f92;
}

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

.contact-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #299f92;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #299f92 0%, #1e7a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.3rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 底部信息样式 */
.footer-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-content p {
    color: #666;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #299f92;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.footer-link:hover {
    background: #f8f9fa;
    color: #1e7a6f;
}

/* 弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    border-radius: 15px;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    padding: 20px;
}

.popup-body {
    line-height: 1.6;
    color: #666;
}

.share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn span {
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link span {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .hot-functions {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-tabs {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .tab-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .hero-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .hero-card {
        padding: 6px;
    }
    
    .hero-avatar {
        width: 50px;
        height: 50px;
        border-radius: 3px;
        padding: 0;
    }
    
    .hero-avatar-img {
        border-radius: 3px;
        margin: 0;
        padding: 0;
    }
    
    .hero-name {
        font-size: 0.7rem;
    }
    

}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .hero-tabs {
        gap: 4px;
    }
    
    .tab-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
        border-radius: 10px;
    }
    
    .hero-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .hero-card {
        padding: 8px;
    }
    
    .hero-avatar {
        width: 40px;
        height: 40px;
        border-radius: 2px;
        padding: 0;
    }
    
    .hero-avatar-img {
        border-radius: 2px;
        margin: 0;
        padding: 0;
    }
    
    .hero-name {
        font-size: 0.8rem;
    }
    

}

/* 响应式设计 - 关于页面 */
@media (max-width: 768px) {
    .about-container {
        gap: 20px;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .about-title h2 {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .about-icon {
        margin-right: 0;
    }
    
    .about-title h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .contact-card {
        padding: 20px;
    }
    
    .version-card {
        padding: 20px;
    }
}

/* 一键回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 响应式设计 - 回到顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 0.9rem;
    }
}
