/* 三角洲行动主题风格 - 页面模板版 */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #1e3a5f;
    --accent-color: #ffd700;
    --dark-bg: #0a0e1a;
    --card-bg: linear-gradient(135deg, #1e3a5f 0%, #0a0e1a 100%);
    --champion-glow: 0 0 30px rgba(255, 215, 0, 0.6);
    --recommend-glow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* 页面包装器 */
.dfr-page-wrapper {
    background: var(--dark-bg);
    padding: 40px 0;
    min-height: 600px;
    margin: -40px -20px;
    position: relative;
}

.dfr-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 确保与各种主题兼容 */
.site-content .dfr-container,
.entry-content .dfr-container,
.page-content .dfr-container,
.content-area .dfr-container {
    max-width: 1400px !important;
}

/* 重置主题的一些默认样式 */
.dfr-container * {
    box-sizing: border-box;
}

.dfr-container h1,
.dfr-container h2,
.dfr-container h3 {
    line-height: 1.2;
}

/* 头部设计 */
.dfr-header {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #ff6b35 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.dfr-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    opacity: 0.3;
}

.dfr-header-content {
    position: relative;
    text-align: center;
    color: white;
}

.dfr-title {
    font-size: 48px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
    border: none !important;
    padding: 0 !important;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.2); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.4); }
}

.title-icon {
    display: inline-block;
    animation: rotate 3s linear infinite;
    margin: 0 10px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dfr-subtitle {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
    color: white;
}

.dfr-header-stats {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.header-stat {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    color: white;
}

/* 标签切换 */
.dfr-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dfr-tab {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dfr-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.dfr-tab.active {
    background: var(--primary-color);
    box-shadow: 0 5px 30px rgba(255, 107, 53, 0.6);
}

.tab-icon {
    font-size: 24px;
}

.tab-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 14px;
    margin-left: 5px;
}

/* 考核说明 */
.dfr-standard-container {
    margin-bottom: 40px;
}

.dfr-standard {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease;
}

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

.dfr-standard h3 {
    color: var(--accent-color) !important;
    margin-top: 0 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.standard-content {
    line-height: 1.8;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    white-space: pre-wrap;
}

/* 排行榜 */
.dfr-ranking-board {
    background: rgba(30, 58, 95, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.ranking-header h2 {
    color: white !important;
    font-size: 32px !important;
    margin: 0 !important;
}

.champion-count {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

/* 冠军展示区 */
.champions-showcase {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,107,53,0.1) 100%);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

.champions-title {
    text-align: center;
    font-size: 28px !important;
    color: var(--accent-color) !important;
    margin-bottom: 30px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.champion-card {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: var(--champion-glow);
    animation: championFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes championFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.champion-card:hover {
    transform: scale(1.05);
}

.champion-crown-large {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.champion-rank {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.champion-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-separator {
    color: white;
    margin: 0 10px;
}

.champion-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.champion-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.champion-stat .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
}

.champion-stat .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-champion .champion-name {
    font-size: 20px;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
}

/* 排名项 */
.ranking-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.ranking-item[data-rank="1"] { animation-delay: 0.1s; }
.ranking-item[data-rank="2"] { animation-delay: 0.2s; }
.ranking-item[data-rank="3"] { animation-delay: 0.3s; }
.ranking-item[data-rank="4"] { animation-delay: 0.4s; }
.ranking-item[data-rank="5"] { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ranking-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.3);
}

/* 推荐样式 */
.ranking-item.recommended {
    border-color: var(--primary-color);
    box-shadow: var(--recommend-glow);
}

.recommend-star {
    color: var(--accent-color);
    font-size: 20px;
    margin-left: 10px;
    animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* 排名编号 */
.rank-number {
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.rank-medal {
    font-size: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.rank-text {
    font-size: 28px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
}

/* 选手信息 */
.player-info {
    flex: 1;
    margin-left: 20px;
}

.player-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.team-names {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.player-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.stat-icon {
    font-size: 18px;
}

.stat-item strong {
    color: var(--accent-color);
    font-size: 16px;
}

/* 击杀分数 */
.kill-score {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    min-width: 120px;
}

.score-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.score-value {
    color: var(--accent-color);
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-progress {
    margin-top: 10px;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

/* 页脚 */
.dfr-footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.update-time {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dfr-page-wrapper {
        margin: -20px -10px;
    }
    
    .dfr-title {
        font-size: 32px !important;
    }
    
    .dfr-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .dfr-tab {
        width: 100%;
        justify-content: center;
    }
    
    .champions-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .player-info {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .kill-score {
        margin-top: 15px;
        width: 100%;
    }
    
    .dfr-header-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .ranking-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dfr-container {
        padding: 10px;
    }
    
    .dfr-header {
        padding: 40px 20px;
    }
    
    .dfr-title {
        font-size: 24px !important;
    }
    
    .dfr-subtitle {
        font-size: 16px;
    }
    
    .player-name {
        font-size: 20px;
    }
    
    .score-value {
        font-size: 24px;
    }
    
    .champion-crown-large {
        font-size: 40px;
    }
}