/* ========================================
   首页轮播横幅样式
   ======================================== */

/* 主横幅容器 */
.hero-banner {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
}

/* 轮播容器 */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 轮播幻灯片容器 */
.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 单个轮播幻灯片 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移除遮光效果 */
.carousel-slide::before {
    content: none;
}

/* 激活的幻灯片 */
.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}



/* 幻灯片内容区域 */
.carousel-slide .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

/* ========================================
   轮播控制按钮样式
   ======================================== */

/* 前后导航按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0.7;
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
}

/* 左侧导航按钮 */
.carousel-prev {
    left: 30px;
}

/* 右侧导航按钮 */
.carousel-next {
    right: 30px;
}

/* 导航按钮悬停效果 */
.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1); /* 悬停时轻微放大 */
}

/* ========================================
   轮播指示器样式
   ======================================== */

/* 指示器容器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

/* 单个指示点 */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 激活的指示点 */
.indicator.active {
    background-color: white;
    border-color: white;
    transform: scale(1.2);
}

/* 指示点悬停效果 */
.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

/* 横幅标题 */
.banner-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
}

/* 横幅描述 */
.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: white;
    line-height: 1.6;
    font-weight: 300;
}

/* ========================================
   种族概览区
   ======================================== */

/* 种族概览容器 */
.races-overview {
    padding: 3rem 0;
    background-color: #e6edf6; /* 浅蓝灰色背景 */
    position: relative;
}

/* 概览区顶部装饰线 */
.races-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 种族卡片 */
.race-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(233, 228, 228, 0.1);
}

/* 种族卡片悬停效果 */
.race-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(226, 218, 218, 0.15);
}

/* 卡片图片容器 */
.race-card .card-image {
    height: 200px; /* 图片高度 */
    background-size: cover;
    background-position: center;
    position: relative;
}


/* 种族名称 */
.race-card .race-name {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: rgb(179, 112, 112);
    font-size: 1.5rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(238, 233, 233, 0.5);
}

/* 卡片音效按钮 */
.race-card .sound-button {
    position: relative;
    z-index: 2;
}

/* 卡片内容区域 */
.race-card .card-content {
    padding: 0.75rem 1rem; /* 减少内边距 */
    max-width: 280px;
    margin: 0 auto;
}

/* 卡片描述文字 */
.race-card .card-content p {
    color: #666;
    margin-bottom: 1rem; /* 减少底部边距 */
    min-height: 60px; /* 减少最小高度 */
    line-height: 1.5;
}

/* 卡片统计数据 */
.race-card .stats {
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-justify-content: space-between; /* Safari兼容 */
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* 单个统计数据项 */
.stat-item {
    text-align: center;
    flex: 1;
}

/* 统计数值 */
.stat-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 统计标签 */
.stat-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   特色内容区
   ======================================== */

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eaeaea;
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-flex-direction: column; /* Safari兼容 */
    flex-direction: column;
    height: 100%;
}

/* 内容卡片悬停效果 */
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(224, 219, 219, 0.1);
}

/* 内容卡片图片 */
.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

/* 内容卡片图片悬停效果 */
.content-card:hover img {
    transform: scale(1.05);
}

/* 内容卡片标题 */
.content-card h3 {
    padding: 0 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: var(--background-dark);
}

/* 内容卡片描述 */
.content-card p {
    padding: 0 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 60px;
    flex-grow: 1;
}

/* 阅读更多链接 */
.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin: 0 1.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    -webkit-align-self: flex-start; /* Safari兼容 */
    align-self: flex-start;
}

/* 阅读更多链接悬停效果 */
.read-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================
   种族详情页样式
   ======================================== */

/* 种族详情页头部 */
.race-detail-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
}

/* 种族详情页头部遮罩 */
.race-detail-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* 种族详情页容器 */
.race-detail-header .container {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

/* 种族详情页标题 */
.race-detail-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* 种族详情内容 */
.race-detail-content {
    padding: 3rem 0;
}

/* 种族详情章节 */
.race-section {
    margin-bottom: 3rem;
}

/* 种族详情章节标题 */
.race-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--background-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* 故事内容容器 */
.story-content {
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    gap: 2rem;
    -webkit-align-items: flex-start; /* Safari兼容 */
    align-items: flex-start;
    -webkit-flex-wrap: wrap; /* Safari兼容 */
    flex-wrap: wrap;
}

/* 故事文字内容 */
.story-text {
    flex: 1;
    min-width: 300px;
}

/* 故事图片容器 */
.story-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease;
}

/* 故事图片悬停效果 */
.story-image:hover {
    transform: scale(1.05);
}

/* 故事图片 */
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图片覆盖层 */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 图片覆盖层悬停效果 */
.story-image:hover .image-overlay {
    opacity: 1;
}

/* 故事引用 */
.story-quote {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    box-shadow: var(--box-shadow);
}

/* 故事引用段落 */
.story-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* 故事引用来源 */
.story-quote cite {
    font-weight: bold;
    color: var(--background-dark);
}

/* 故事详情 */
.story-details {
    margin-top: 1.5rem;
}

/* 故事详情标题 */
.story-details h3 {
    color: var(--background-dark);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* 故事详情列表 */
.story-details ul {
    list-style: none;
    padding: 0;
}

/* 故事详情列表项 */
.story-details li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    border-bottom: 1px dashed #eee;
}

/* 故事详情列表项标记 */
.story-details li:before {
    content: "✦";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* 单位表格 */
.units-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 14px;
    line-height: 1.6;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 单位表格单元格 */
.units-table th,
.units-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* 单位表格表头列宽比例 */
.units-table th:nth-child(1),
.units-table td:nth-child(1) {
    width: 15%;
    font-weight: 600;
}

/* 平民、军事单位、酋长表格的名称列宽度增加到20% */
.units-table-civilian th:nth-child(1),
.units-table-civilian td:nth-child(1),
.units-table-military th:nth-child(1),
.units-table-military td:nth-child(1),
.units-table-chief th:nth-child(1),
.units-table-chief td:nth-child(1) {
    width: 20%;
}

/* 调整属性面板列宽度，确保表格整体布局平衡 */
.units-table-civilian th:nth-child(3),
.units-table-civilian td:nth-child(3),
.units-table-military th:nth-child(3),
.units-table-military td:nth-child(3),
.units-table-chief th:nth-child(3),
.units-table-chief td:nth-child(3) {
    width: 320px;
    min-width: 320px;
}

.units-table th:nth-child(2),
.units-table td:nth-child(2) {
    width: 60px;
    min-width: 60px;
    text-align: center;
}

/* 军事单位特定列宽 */
.units-table th:nth-child(3):not(:last-child),
.units-table td:nth-child(3):not(:last-child) {
    width: 370px;
    min-width: 370px;
}

/* 初始价和增长价列宽度增加到180px */
.units-table th:nth-child(4):not(:last-child),
.units-table td:nth-child(4):not(:last-child) {
    width: 180px;
    min-width: 180px;
    font-weight: 600;
    color: var(--primary-color);
}

.units-table th:nth-child(5),
.units-table td:nth-child(5) {
    width: 180px;
    min-width: 180px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 酋长单位特定列宽 - 造价列 */
.units-table th:nth-child(4).chief-cost,
.units-table td:nth-child(4).chief-cost {
    width: 180px;
    min-width: 180px;
}

/* 平民单位特定列宽 - 冬季产能列 */
.units-table th:nth-child(4).civilian-winter,
.units-table td:nth-child(4).civilian-winter {
    width: 180px;
    min-width: 180px;
}

/* 同盟单位特定列宽 */
.units-table th:nth-child(3):last-child,
.units-table td:nth-child(3):last-child {
    width: 200px;
    min-width: 200px;
}

.units-table th:nth-child(4):last-child,
.units-table td:nth-child(4):last-child {
    width: auto;
    min-width: 300px;
    font-weight: normal;
    color: var(--text-dark);
}

/* 单位表格表头 */
.units-table th {
    background-color: #4a5568;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* 单位表格行 */
.units-table tr {
    transition: all 0.2s ease;
}

/* 单位表格交替行背景色 */
.units-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 单位表格行悬停效果 */
.units-table tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   单位表格资源图标样式
   ======================================== */

/* 放大表格中的所有资源图标 */
.units-table .inline-resource-icon {
    width: 24px;
    height: 24px;
    margin: 0 5px;
    vertical-align: middle;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

/* 资源图标悬停效果 */
.units-table .inline-resource-icon:hover {
    transform: scale(1.2);
}

/* 酋长图标保持特殊样式 */
.units-table .inline-resource-icon.hero-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* 单位表格中的图片样式 */
.units-table img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background-color: white;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

/* 单位图片悬停效果 */
.units-table img:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 表格中特定关键词加粗样式 */
.units-table .resource-text strong.keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* ========================================
   技能树样式
   ======================================== */

/* 技能树容器 */
.skill-tree {
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-justify-content: space-around; /* Safari兼容 */
    justify-content: space-around;
    -webkit-flex-wrap: wrap; /* Safari兼容 */
    flex-wrap: wrap;
    gap: 1rem;
}

/* 技能节点 */
.skill-node {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--background-light);
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-flex-direction: column; /* Safari兼容 */
    flex-direction: column;
    -webkit-align-items: center; /* Safari兼容 */
    align-items: center;
    -webkit-justify-content: center; /* Safari兼容 */
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

/* 技能节点悬停效果 */
.skill-node:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: white;
}

/* 技能节点图标 */
.skill-node i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   策略卡片样式
   ======================================== */

/* 策略网格 */
.strategy-grid {
    display: -ms-grid; /* IE兼容 */
    display: grid;
    -ms-grid-columns: repeat(auto-fill, minmax(300px, 1fr)); /* IE兼容 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* 策略卡片 */
.strategy-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* 策略卡片标题 */
.strategy-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* ========================================
   遗物容器样式
   ======================================== */

/* 遗物容器 */
.relics-container {
    display: -ms-grid; /* IE兼容 */
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(300px, 1fr)); /* IE兼容 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 遗物项目 */
.relic-item {
    background: linear-gradient(135deg, 
        var(--background-color-cold, rgba(227, 242, 253, 0.7)), 
        var(--background-color-warm, rgba(255, 248, 225, 0.7)));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    gap: 1.5rem;
    -webkit-align-items: center; /* Safari兼容 */
    align-items: center;
    -webkit-justify-content: space-between; /* Safari兼容 */
    justify-content: space-between;
}

/* 遗物内容 */
.relic-content {
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-flex-direction: column; /* Safari兼容 */
    flex-direction: column;
    gap: 1rem;
    -webkit-flex: 1; /* Safari兼容 */
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

/* 遗物项目悬停效果 */
.relic-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* 遗物项目顶部装饰线 */
.relic-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #2196f3), var(--secondary-color, #4caf50));
}

/* ========================================
   遗物模块样式
   ======================================== */

/* 独立模块样式 */
.relic-module {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-flex-direction: column; /* Safari兼容 */
    flex-direction: column;
    -webkit-align-items: center; /* Safari兼容 */
    align-items: center;
    -webkit-justify-content: center; /* Safari兼容 */
    justify-content: center;
    -webkit-backdrop-filter: blur(5px); /* Safari兼容 */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 支持主题切换 */
    background: linear-gradient(135deg, 
        var(--background-color-cold, rgba(227, 242, 253, 0.4)), 
        var(--background-color-warm, rgba(255, 248, 225, 0.4)));
}

/* 独立模块悬停效果 */
.relic-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, 
        var(--background-color-cold, rgba(227, 242, 253, 0.6)), 
        var(--background-color-warm, rgba(255, 248, 225, 0.6)));
}

/* 图片模块 */
.relic-image-module {
    flex: 0 0 150px;
    height: 175px;
    position: relative;
}

/* 图片容器 */
.relic-image-container {
    width: 100%;
    height: 100%;
    display: -webkit-flex; /* Safari兼容 */
    display: flex;
    -webkit-align-items: center; /* Safari兼容 */
    align-items: center;
    -webkit-justify-content: center; /* Safari兼容 */
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 图片容器边框 */
.relic-image-container::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(156, 39, 176, 0.2);
    border-radius: 8px;
    pointer-events: none;
}

/* 遗物图片 */
.relic-image {
    width: 150px;
    height: 175px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 遗物图片悬停效果 */
.relic-item:hover .relic-image {
    transform: scale(1.08);
}

/* ========================================
   遗物名称模块
   ======================================== */

/* 名称模块 */
.relic-name-module {
    flex: 0 0 auto;
    min-width: 140px;
    text-align: center;
}

/* 名称模块标题 */
.relic-name-module h3 {
    color: var(--text-color-cold, #1976d2);
    margin: 0;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 名称模块装饰线 */
.relic-name-module h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #2196f3), var(--secondary-color, #4caf50));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ========================================
   遗物描述模块
   ======================================== */

/* 描述模块 */
.relic-description-module {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

/* 描述模块段落 */
.relic-description-module p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-cold, #333);
    text-align: center;
    font-weight: 400;
}

/* 遗物星级标记 */
.relic-item::after {
    content: "★";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.8rem;
    color: gold;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================================
   媒体库样式
   ======================================== */

/* 媒体库网格 */
.media-gallery {
    display: -ms-grid; /* IE兼容 */
    display: grid;
    -ms-grid-columns: repeat(auto-fill, minmax(250px, 1fr)); /* IE兼容 */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* 媒体项目 */
.media-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    height: 200px;
}

/* 媒体项目图片 */
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* 媒体项目图片悬停效果 */
.media-item:hover img {
    transform: scale(1.1);
}

/* 播放图标 */
.media-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(230, 126, 34, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ========================================
   页脚区域
   ======================================== */

/* 主页脚 */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 5px solid var(--primary-color);
}

/* 页脚顶部装饰线 */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

/* 页脚章节标题 */
.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* 页脚章节标题装饰线 */
.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 页脚列表 */
.footer-section ul {
    list-style: none;
}

/* 页脚列表项 */
.footer-section ul li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

/* 页脚链接 */
.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

/* 页脚链接前缀图标 */
.footer-section ul li a::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
    top: 2px;
    transition: var(--transition);
}

/* 页脚链接悬停效果 */
.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 20px;
}

/* 页脚链接前缀图标悬停效果 */
.footer-section ul li a:hover::before {
    transform: translateX(2px);
}

/* 版权信息 */
.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}



/* ========================================
   移动端响应式样式 (最大宽度: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* 故事内容在移动端改为垂直布局 */
    .story-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 故事图片在移动端调整尺寸 */
    .story-image {
        flex: 0 0 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    /* 故事文字内容在移动端自适应 */
    .story-text {
        min-width: auto;
    }
    
    /* 种族标题在移动端调整字体大小 */
    .race-title {
        font-size: 2.5rem;
    }
    
    /* 种族副标题在移动端调整字体大小 */
    .race-subtitle {
        font-size: 1.2rem;
    }
    
    /* 种族头部操作按钮在移动端改为垂直布局 */
    .race-header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 单位表格容器在移动端添加横向滚动 */
    .units-table-container {
        overflow-x: auto;
        margin: 1.5rem 0;
        border-radius: var(--border-radius);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 单位表格在移动端调整样式 */
    .units-table {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    /* 单位表格单元格在移动端调整内边距和字体大小 */
    .units-table th,
    .units-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* 移动端表格列宽调整 */
    .units-table th:nth-child(1),
    .units-table td:nth-child(1) {
        width: auto;
        min-width: 80px;
    }

    .units-table th:nth-child(2),
    .units-table td:nth-child(2) {
        width: 50px;
        min-width: 50px;
    }

    .units-table th:nth-child(3),
    .units-table td:nth-child(3) {
        width: auto;
        min-width: 120px;
    }

    .units-table th:nth-child(4),
    .units-table td:nth-child(4) {
        width: auto;
        min-width: 100px;
    }

    .units-table th:nth-child(5),
    .units-table td:nth-child(5) {
        width: auto;
        min-width: 100px;
    }
    
    /* 技能树在移动端改为垂直布局 */
    .skill-tree {
        flex-direction: column;
        align-items: center;
    }
    
    /* 技能节点在移动端调整尺寸 */
    .skill-node {
        width: 100px;
        height: 100px;
    }
    
    /* 媒体库在移动端改为单列布局 */
    .media-gallery {
        grid-template-columns: 1fr;
    }
    
    /* 媒体项目在移动端调整高度 */
    .media-item {
        height: 150px;
    }
}

/* ========================================
   选项卡组件样式
   ======================================== */

/* 选项卡容器 */
.tabs {
    display: flex;
    margin: 2rem 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* 垂直选项卡按钮组 */
.tab-buttons.vertical {
    display: flex;
    flex-direction: column;
    width: 200px;
    border-right: 1px solid #eee;
}

/* 选项卡按钮 */
.tab-button {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

/* 选项卡按钮悬停效果 */
.tab-button:hover {
    background-color: #e9ecef;
}

/* 激活的选项卡按钮 */
.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 选项卡面板容器 */
.tab-panels {
    flex: 1;
    padding: 1.5rem;
}

/* 选项卡面板 */
.tab-panel {
    display: none;
}

/* 激活的选项卡面板 */
.tab-panel.active {
    display: block;
}

/* ========================================
   单选按钮组样式
   ======================================== */

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

/* 单选按钮 */
.radio-group input[type="radio"] {
    display: none;
}

/* 单选按钮标签 */
.radio-group label {
    padding: 0.5rem 1rem;
    background-color: #f1f1f1;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

/* 单选按钮标签悬停效果 */
.radio-group label:hover {
    background-color: #e2e6ea;
}

/* 选中的单选按钮标签 */
.radio-group input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-buttons.vertical {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .tab-button {
        flex: 1;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #eee;
    }
    
    .radio-group {
        gap: 0.5rem;
    }
    
    .radio-group label {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 针对更小屏幕的优化 */
@media (max-width: 480px) {
    .units-table th,
    .units-table td {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
}
