/* AZ_DB网站统一样式 - 资源优化版本 */
/* 资源优化：移除外部字体依赖，减少网络请求 */

body {
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6; /* 减少行高，节省空间 */
    color: #1a202c;
    padding: 0;
    margin: 0;
    padding-top: 60px;
    font-size: 16px; /* 减小字体，节省渲染资源 */
    font-weight: 400;
    /* 资源优化：使用简单背景色，减少GPU使用 */
    background: #f8f9fa;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 导航栏样式 - 资源优化版本 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* 移除导航栏背景动画，避免闪烁 */

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-brand {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #48bb78; /* 使用简单颜色，减少渲染复杂度 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 15px;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    /* 启用硬件加速，优化hover性能 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 只为普通链接添加hover效果，排除特殊按钮 */
.navbar-nav a:not([onclick]):not([href="index_web.html"]):hover {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
    transform: translateY(-1px);
}

.navbar-nav a:active {
    transform: translateY(0);
}

/* 特殊按钮样式 */
.navbar-nav a[onclick*="showDonationModal"] {
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    transition: all 0.2s ease;
}

.navbar-nav a[onclick*="showDonationModal"]:hover {
    background: linear-gradient(135deg, #38b2ac, #2c7a7b) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.4);
    color: white !important;
}

.navbar-nav a[onclick*="joinQQGroup"] {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    transition: all 0.2s ease;
}

.navbar-nav a[onclick*="joinQQGroup"]:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(66, 153, 225, 0.4);
    color: white !important;
}

/* 首页链接特殊样式 */
.navbar-nav a[href="index_web.html"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.navbar-nav a[href="index_web.html"]:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    color: white !important;
}

/* 搜索相关样式 */
.navbar-nav input[type="text"] {
    padding: 6px 12px;
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    width: 120px;
}

.navbar-nav input[type="text"]:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    width: 160px;
}

.navbar-nav button {
    padding: 6px 12px;
    border: 1px solid #48bb78;
    border-radius: 20px;
    background: #48bb78;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.navbar-nav button:hover {
    background: #38b2ac;
    border-color: #38b2ac;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

/* 广告横幅样式 - 与主页保持一致 */
.ad-banner {
    background: transparent;
    padding: 10px 0;
    position: relative;
    top: 0;
    margin-top: -10px;
    z-index: 999;
}

.ad-banner .container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 0;
}

.feature-grid {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.feature-grid .feature-box {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 calc(25% - 15px);
    -ms-flex: 1 1 calc(25% - 15px);
    flex: 1 1 calc(25% - 15px);
    min-width: 280px;
    max-width: calc(25% - 15px);
}

@supports (display: grid) {
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .feature-grid .feature-box {
        flex: none;
        min-width: auto;
        max-width: none;
    }
}

.ad-banner .ad-item {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 calc(25% - 15px);
    -ms-flex: 1 1 calc(25% - 15px);
    flex: 1 1 calc(25% - 15px);
    min-width: 280px;
    max-width: calc(25% - 15px);
}

@supports (display: grid) {
    .ad-banner .container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ad-banner .ad-item {
        flex: none;
        min-width: auto;
        max-width: none;
    }
}

.ad-banner .ad-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
}

.ad-banner .ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #48bb78;
}

.ad-banner .ad-item a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ad-banner .ad-item a:hover {
    color: #38b2ac;
}
    
    .ad-banner .ad-item:nth-child(1) {
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    }
    
    .ad-banner .ad-item:nth-child(2) {
        -ms-grid-column: 2;
        -ms-grid-row: 1;
    }
    
    .ad-banner .ad-item:nth-child(3) {
        -ms-grid-column: 3;
        -ms-grid-row: 1;
    }
    
    .ad-banner .ad-item:nth-child(4) {
        -ms-grid-column: 1;
        -ms-grid-row: 2;
    }
    
    .ad-banner .ad-item:nth-child(5) {
        -ms-grid-column: 2;
        -ms-grid-row: 2;
    }
    
    .ad-banner .ad-item:nth-child(6) {
        -ms-grid-column: 3;
        -ms-grid-row: 2;
    }
}

/* 旧版浏览器备用布局 */
@supports not (display: grid) {
    .ad-banner .container {
        display: flex;
        flex-wrap: wrap;
    }
    .ad-banner .ad-item {
        width: 33.33%;
        margin-bottom: 10px;
    }
}

.ad-banner .ad-item {
    min-height: 80px;
    background: linear-gradient(to right, #ff6b6b, #ff8e53);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-banner .ad-item:hover {
    transform: scale(1.02);
}

.ad-banner .ad-item a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
}

/* 顶部导航栏搜索功能 */
.navbar-search {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid rgba(72, 187, 120, 0.3);
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    width: 250px;
}

.search-btn {
    margin-left: 10px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #38b2ac, #2c7a7b);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(72, 187, 120, 0.3);
}

/* 搜索结果样式 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(72, 187, 120, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(72, 187, 120, 0.05);
}

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

.search-result-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.search-result-description {
    font-size: 12px;
    color: #718096;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-search {
        display: none;
    }

    .navbar .container {
        flex-wrap: wrap;
    }
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: #0078d4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 内容样式 - 清新风格 */
h1, h2, h3, h4 {
    color: #2d3748;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #48bb78, #38b2ac, #4fd1c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #48bb78, #38b2ac);
    border-radius: 2px;
}

h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2d3748;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    border-radius: 2px;
}

h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #4a5568;
}

h4 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #4a5568;
}

p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.5;
    font-weight: 400;
}

/* 表格样式 - 资源优化版本 */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px;
    background: #1a1a1a; /* 使用简单背景色 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

th, td {
    border: 1px solid #333;
    padding: 10px 12px; /* 减少内边距 */
    text-align: left;
}

th {
    background: #dc143c;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

td {
    background: #2a2a2a;
    color: #e0e0e0;
    font-weight: 400;
}

td:hover {
    background: #333;
    color: #ffffff;
}

/* 字段详细说明样式 */
.field-detail {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    padding: 15px 20px;
    border-left: 4px solid #dc143c;
    border-right: 4px solid #dc143c;
    border-radius: 8px;
    margin: 15px 0;
    color: #e0e0e0;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.field-detail h3 {
    color: #dc143c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(220, 20, 60, 0.6);
}

.field-detail p {
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

.field-detail ul, .field-detail ol {
    color: #e0e0e0;
    margin-left: 20px;
}

.field-detail li::marker {
    color: #dc143c;
}

/* 世界库导航页面样式 */
.world-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.world-nav-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    padding: 3px 20px;
    border-radius: 20px;
    margin-bottom: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.world-nav-hero h1 {
    font-size: 36px;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.world-nav-hero p {
    font-size: 18px;
    color: #4a5568;
    margin: 0;
}

/* 统计信息卡片 */
.stats-section {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

@supports (display: grid) {
    .stats-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 252, 0.9) 100%);
    padding: 3px 8px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 187, 120, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #48bb78;
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
}

.stat-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

/* 搜索功能 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid rgba(72, 187, 120, 0.3);
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    width: 300px;
    max-width: 100%;
}

.search-box input:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.search-box button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #38b2ac, #2c7a7b);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(72, 187, 120, 0.3);
}

/* 分类区域 */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    margin-bottom: 10px;
}

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    padding: 6px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
}

.category-title .icon {
    font-size: 20px;
}

/* 表格网格布局 */
.tables-grid {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
}

@supports (display: grid) {
    .tables-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}

.table-item {
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: rgba(247, 250, 252, 0.9);
}

.table-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.table-item a {
    display: inline-block;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.9) 0%, rgba(56, 178, 172, 0.9) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 3px;
    font-family: "Poppins", sans-serif;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 100%;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-description {
    color: #4a5568;
    font-size: 10px;
    margin: 0;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .world-nav-hero h1 {
        font-size: 28px;
    }

    .world-nav-hero p {
        font-size: 16px;
    }

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

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .search-box input {
        width: 250px;
    }

    .tables-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .category-title {
        font-size: 16px;
        padding: 5px 16px;
    }

    .table-item {
        padding: 8px 10px;
    }

    .table-item a {
        font-size: 12px;
    }

    .table-description {
        font-size: 9px;
    }
}

/* 搜索结果样式 */
.search-result-info {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.search-result-info p {
    margin: 5px 0;
    color: #4a5568;
    font-weight: 500;
}

.search-result-info button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.search-result-info button:hover {
    background: #38b2ac;
}

/* 搜索高亮样式 */
mark {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d3748;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 提示框样式 */
.note {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.warning {
    background-color: #fff7e6;
    border-left: 4px solid #fa8c16;
    padding: 10px 15px;
    margin-bottom: 15px;
}

/* 字段详情样式 */
.field-details {
    margin-left: 15px;
    margin-bottom: 15px;
}

.field-details h4 {
    color: #0078d4;
    margin-bottom: 5px;
}

.field-details p {
    margin-bottom: 8px;
}

.example {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 搜索容器样式 */
.search-container {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.search-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.search-container button {
    margin-top: 5px;
    padding: 8px 15px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #005a9e;
}

.search-error {
    color: #ff4d4f;
    margin-left: 10px;
    display: none;
}

/* 页脚样式 - 魔兽世界风格 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 3px solid #d4af37;
    padding: 20px 0;
    margin-top: 30px;
    color: #e0e0e0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 8px 0;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.6);
}

.footer a:hover {
    color: #ffd700;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.6);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #005a9e;
}

/* 主要内容容器样式 - 全宽布局 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.main-content {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }

    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .navbar-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-nav input[type="text"] {
        width: 100px;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .table-item {
        padding: 6px 8px;
    }

    .table-item a {
        font-size: 11px;
    }

    .table-description {
        font-size: 8px;
    }
}

/* 链接样式 */
.section-link {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.section-link:hover {
    background-color: #e6f7ff;
}

/* QQ群弹窗样式 */
.qq-group-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qq-group-modal .modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.qq-group-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #4299e1;
    color: white;
    border-radius: 8px 8px 0 0;
}

.qq-group-modal .modal-header h3 {
    margin: 0;
    color: white;
}

.qq-group-modal .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.qq-group-modal .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.qq-group-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.qq-group-modal .modal-body p {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.qq-group-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.qq-group-info p {
    margin: 5px 0;
    font-weight: bold;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.qq-group-modal .btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.qq-group-modal .btn-primary {
    background-color: #0078d4;
    color: white;
}

.qq-group-modal .btn-primary:hover {
    background-color: #005a9e;
}

.qq-group-modal .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.qq-group-modal .btn-secondary:hover {
    background-color: #545b62;
}

/* 打赏弹窗样式 */
.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.donation-modal .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donation-modal .modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(72, 187, 120, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white;
    border-radius: 15px 15px 0 0;
}

.donation-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.donation-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.donation-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.donation-modal .modal-body {
    padding: 25px;
    text-align: center;
}

.donation-modal .modal-body p {
    margin: 0 0 20px;
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
}

/* 打赏方式标签 */
.donation-tabs {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
}

.donation-tabs .tab-btn {
    padding: 10px 20px;
    border: 2px solid rgba(72, 187, 120, 0.3);
    background: transparent;
    color: #4a5568;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.donation-tabs .tab-btn.active {
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white;
    border-color: #48bb78;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

/* 打赏内容区域 */
.donation-content {
    position: relative;
    min-height: 380px;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* 二维码容器 */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}

.qr-code-container img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(72, 187, 120, 0.2);
    transition: all 0.3s ease;
}

.qr-code-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.qr-code-container p {
    margin-top: 15px;
    margin-bottom: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 16px;
}

/* 二维码占位符 */
.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05), rgba(56, 178, 172, 0.05));
    border: 2px dashed rgba(72, 187, 120, 0.3);
    border-radius: 10px;
    color: #718096;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.qr-placeholder p {
    margin: 8px 0;
    font-weight: 600;
}

.qr-placeholder small {
    font-size: 12px;
    line-height: 1.4;
    max-width: 250px;
}

/* 打赏说明 */
.donation-note {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 178, 172, 0.08));
    border: 1px solid rgba(72, 187, 120, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.donation-note p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.donation-note small {
    color: #718096;
}

/* 内联打赏按钮样式 */
.inline-donation-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.inline-donation-btn:hover {
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.inline-donation-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .qq-group-modal .modal-content,
    .donation-modal .modal-content {
        width: 95%;
        margin: 10px;
    }

    .donation-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .donation-tabs .tab-btn {
        width: 100%;
        max-width: 200px;
    }

    .qr-code-container img {
        width: 220px;
        height: 220px;
    }

    .inline-donation-btn {
        margin-left: 5px;
        padding: 6px 12px;
        font-size: 13px;
    }
}
