/* index.css - WARFRAME 紫卡分析工具样式 */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-purple: #a371f7;
    --accent-gold: #d29922;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.3);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(ellipse at top, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(163, 113, 247, 0.1) 0%, transparent 50%);
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header p { 
    color: var(--text-secondary); 
    font-size: 1.1em; 
}

/* 搜索区域 */
.search-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.search-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-height: 280px;
    overflow-y: auto;
}

.search-suggestion-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(139, 148, 158, 0.2);
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}

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

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(88, 166, 255, 0.16);
}

.search-suggestion-title {
    font-weight: 600;
    line-height: 1.3;
}

.search-suggestion-column {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
}

.search-suggestion-column.is-right {
    justify-content: flex-start;
    text-align: left;
    border-left: 1px solid rgba(139, 148, 158, 0.28);
    padding-left: 0;
}

.search-suggestion-column .search-suggestion-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-name-badge {
    font-size: 0.78em;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

.search-name-badge.source-cn {
    color: #7ee787;
    border-color: rgba(126, 231, 135, 0.45);
    background: rgba(126, 231, 135, 0.12);
}

.search-name-badge.source-gj-cn {
    color: #79c0ff;
    border-color: rgba(121, 192, 255, 0.45);
    background: rgba(121, 192, 255, 0.12);
}

/* 提示框 */
.hint-box {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 通用区块样式 */
.weapon-info, .stats-section, .fluctuation-section, .ranking-section, .rating-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: none;
}

.weapon-info.active, .stats-section.active, .fluctuation-section.active, 
.ranking-section.active, .rating-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* 区块标题 */
.section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
}

.info-label { 
    color: var(--text-secondary); 
    font-size: 0.9em; 
    margin-bottom: 5px; 
}

.info-value { 
    font-size: 1.2em; 
    font-weight: bold; 
    color: var(--accent-blue); 
}

/* 词条选择区域 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    align-items: stretch;
}

.stat-label { 
    width: 100%;
    font-weight: bold; 
    color: var(--accent-blue);
    margin-bottom: 0px;
}

.stat-select, .stat-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.stat-input { 
    flex: none; 
}

.none-btn {
    width: 100%;
    padding: 12px 25px;
    font-size: 0.9em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
}

.none-btn:hover, .none-btn.active {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

/* 计算按钮 */
.calculate-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: var(--gradient-2);
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.4);
}

/* 浮动系数坐标轴 */
.axis-container {
    position: relative;
    padding: 40px 20px;
    margin: 30px 0;
}

.axis-line {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-red) 0%, 
        var(--accent-gold) 45%, 
        var(--accent-green) 50%, 
        var(--accent-gold) 55%, 
        var(--accent-red) 100%);
    border-radius: 2px;
}

.axis-marker {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 0.85em;
    color: var(--text-secondary);
}

.axis-marker.center {
    left: 50%;
    color: var(--accent-green);
    font-weight: bold;
}

.fluctuation-point {
    position: absolute;
    top: -45px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0); }
    70% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

.point-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid white;
    box-shadow: 0 0 15px var(--accent-blue);
}

.point-label {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-primary);
    white-space: nowrap;
}

.point-value {
    font-size: 0.75em;
    color: var(--text-secondary);
}

/* 浮动结果 */
.fluctuation-result {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.result-fluctuation {
    font-family: 'Consolas', monospace;
    padding: 5px 15px;
    border-radius: 6px;
}

.result-fluctuation.high { 
    background: rgba(63, 185, 80, 0.2); 
    color: var(--accent-green); 
}

.result-fluctuation.normal { 
    background: rgba(88, 166, 255, 0.2); 
    color: var(--accent-blue); 
}

.result-fluctuation.low { 
    background: rgba(248, 81, 73, 0.2); 
    color: var(--accent-red); 
}

/* 梯度排行 */
.tier-list { 
    display: grid; 
    gap: 15px; 
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 5px solid;
}

.tier-item.T1 { border-color: var(--accent-gold); }
.tier-item.T2 { border-color: var(--accent-blue); }
.tier-item.T3 { border-color: var(--accent-purple); }
.tier-item.T4 { border-color: var(--text-secondary); }

.tier-badge {
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    min-width: 50px;
    text-align: center;
}

.tier-item.T1 .tier-badge { 
    background: var(--accent-gold); 
    color: #000; 
}

.tier-item.T2 .tier-badge { 
    background: var(--accent-blue); 
    color: #000; 
}

.tier-item.T3 .tier-badge { 
    background: var(--accent-purple); 
    color: #fff; 
}

.tier-item.T4 .tier-badge { 
    background: var(--text-secondary); 
    color: #000; 
}

.tier-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-tag {
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.9em;
}

/* 负词条区域 */
.negative-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(248, 81, 73, 0.1);
    border-radius: 12px;
    border: 1px solid var(--accent-red);
}

.negative-title {
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 10px;
}

/* 评分区域 */
.rating-display { 
    text-align: center; 
    padding: 40px; 
}

.rating-grade {
    font-size: 5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.rating-grade.UR { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #d29922 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-grade.SR { 
    background: linear-gradient(135deg, #f5576c 0%, #d29922 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-grade.A { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-grade.B { 
    background: linear-gradient(135deg, #8b949e 0%, #6e7681 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-desc { 
    font-size: 1.3em; 
    color: var(--text-primary); 
    margin-bottom: 15px; 
}

.rating-detail { 
    color: var(--text-secondary); 
    line-height: 1.8; 
}

.rating-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.criteria-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.criteria-title { 
    font-weight: bold; 
    margin-bottom: 10px; 
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 词条类型标记（正/负） */
.stat-type-badge {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
}

.stat-type-badge.positive {
    background-color: var(--accent-green);
}

.stat-type-badge.negative {
    background-color: var(--accent-red);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .search-box { 
        flex-direction: column; 
    }
    .info-grid { 
        grid-template-columns: 1fr; 
    }
    .stats-grid { 
        grid-template-columns: 1fr; 
    }
    .stat-row { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .stat-input { 
        width: 100%; 
    }
    .header h1 {
        font-size: 1.8em;
    }
}
/* ========== 可搜索下拉框样式 ========== */

.stat-select-wrapper {
    position: relative;
    min-width: 200px;
    width: 100%;
}

.stat-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    cursor: text;
}

.stat-search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
    background: var(--bg-tertiary);
}

.stat-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.stat-select-wrapper.disabled .stat-search-input {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.stat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: dropdownSlide 0.15s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-dropdown-list {
    padding: 4px;
}

.stat-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.stat-dropdown-item:hover,
.stat-dropdown-item.highlighted {
    background: var(--accent-blue);
    color: white;
}

.stat-dropdown-item .stat-name {
    font-size: 14px;
    font-weight: 500;
}

.stat-dropdown-item .stat-type {
    font-size: 12px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 滚动条样式 */
.stat-dropdown::-webkit-scrollbar {
    width: 6px;
}

.stat-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.stat-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.stat-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stat-dropdown {
        max-height: 240px;
    }
    
    .stat-dropdown-item {
        padding: 12px;
    }
}

/* ========== 词条详情区域 ========== */
.stat-details-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: none;
}

.stat-details-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.stat-details-list {
    display: grid;
    gap: 15px;
}

.stat-detail-item {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
}

.stat-detail-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-detail-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-detail-toggle {
    border: 1px solid rgba(88, 166, 255, 0.35);
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent-blue);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-detail-toggle:hover:not(:disabled) {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.55);
}

.stat-detail-toggle:disabled {
    cursor: not-allowed;
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: rgba(139, 148, 158, 0.1);
}

.stat-detail-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stat-detail-tier {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
}

.stat-detail-tier.T1 {
    background: var(--accent-gold);
    color: #000;
}

.stat-detail-tier.T2 {
    background: var(--accent-blue);
    color: #fff;
}

.stat-detail-tier.T3 {
    background: var(--accent-purple);
    color: #fff;
}

.stat-detail-tier.T4 {
    background: var(--text-secondary);
    color: #000;
}

.stat-detail-tier.unknown {
    background: var(--border-color);
    color: var(--text-secondary);
}

.stat-detail-availability {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
}

.stat-detail-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

.stat-detail-collapsible {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(139, 148, 158, 0.35);
}

.stat-detail-desc strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 5px;
}

/* 负词条收益等级样式 */
.stat-detail-benefit {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
}

.stat-detail-benefit.benefit-positive {
    background: rgba(63, 185, 80, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.stat-detail-benefit.benefit-neutral {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.stat-detail-benefit.benefit-minor {
    background: rgba(210, 153, 34, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.stat-detail-benefit.benefit-small {
    background: rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.stat-detail-benefit.benefit-negative {
    background: rgba(248, 81, 73, 0.5);
    color: #fff;
    border: 1px solid var(--accent-red);
}

.stat-detail-benefit.benefit-unknown {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 正负词条卡片区分 */
.stat-detail-item.positive {
    border-left: 4px solid var(--accent-green);
}

.stat-detail-item.negative {
    border-left: 4px solid var(--accent-red);
}

.stat-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-detail-polarity {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
}

.stat-detail-polarity.positive {
    background: rgba(63, 185, 80, 0.2);
    color: var(--accent-green);
}

.stat-detail-polarity.negative {
    background: rgba(248, 81, 73, 0.2);
    color: var(--accent-red);
}

/* ========== 玩法说明区域 ========== */
.stat-detail-playstyle-section {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(139, 148, 158, 0.05) 100%);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-detail-playstyle-title {
    font-size: 1em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-detail-playstyle-content {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
    text-align: justify;
}

/* ========== 暗色高级主题 - 渐变色数轴 ========== */

.fluctuation-section {
    background: linear-gradient(180deg, #0d1117 0%, #0a0e17 100%);
    border: 1px solid rgba(88, 166, 255, 0.15);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的网格背景纹理 */
.fluctuation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 组合信息标签 - 霓虹风格 */
.modifier-info {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.modifier-tag, .tendency-tag, .coefficient-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.modifier-tag {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.1);
}

.tendency-tag {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.1);
}

.coefficient-tag {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

/* 数轴卡片容器 */
.fluctuation-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* 高级卡片设计 - 玻璃拟态 */
.fluctuation-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fluctuation-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 166, 255, 0.2);
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(88, 166, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 卡片顶部发光条 */
.fluctuation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(88, 166, 255, 0.5) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.fluctuation-card:hover::after {
    opacity: 1;
}

/* 卡片头部布局 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.stat-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #f0f6fc;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 标签组 */
.stat-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-type-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.stat-type-badge.percentage {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

.stat-type-badge.fixed {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.2);
}

.stat-type-badge.multiplier {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.stat-polarity {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.stat-polarity.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.stat-polarity.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* 右侧数值 */
.stat-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.input-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #8b949e;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fd-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2em;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid;
    text-shadow: 0 0 10px currentColor;
}

.fd-badge.high {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.fd-badge.normal {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.fd-badge.low {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
}

/* ========== 渐变色数轴核心样式 ========== */

.axis-wrapper {
    position: relative;
    margin: 30px 0;
    padding: 0 10px;
}

/* 渐变色数轴背景 - 从红到橙到绿到橙到红 */
.axis-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, 
        #ef4444 0%,     /* 红色 - 低浮动 */
        #f59e0b 20%,    /* 橙色 */
        #10b981 50%,    /* 绿色 - 标准 */
        #f59e0b 80%,    /* 橙色 */
        #ef4444 100%    /* 红色 - 高浮动 */
    );
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,0,0,0.3),
        0 0 20px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

/* 数轴上的刻度标记 */
.axis-ticks {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.tick {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.tick.center {
    background: rgba(255, 255, 255, 0.8);
    height: 20px;
    top: -2px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.tick::after {
    content: attr(data-value);
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #8b949e;
    font-family: 'JetBrains Mono', monospace;
}

.tick.center::after {
    color: #f0f6fc;
    font-weight: 700;
    top: 26px;
}

/* 浮动指示点 - 霓虹发光效果 */
.axis-pointer {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid;
    box-shadow: 
        0 0 0 4px rgba(0,0,0,0.5),
        0 0 20px currentColor,
        0 0 40px currentColor;
    z-index: 10;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* 指示点颜色根据位置自动调整 */
.fluctuation-card[data-level="high"] .axis-pointer {
    border-color: #4ade80;
    color: #4ade80;
    box-shadow: 
        0 0 0 4px rgba(0,0,0,0.5),
        0 0 20px #4ade80,
        0 0 40px #4ade80;
}

.fluctuation-card[data-level="normal"] .axis-pointer {
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 
        0 0 0 4px rgba(0,0,0,0.5),
        0 0 20px #60a5fa,
        0 0 40px #60a5fa;
}

.fluctuation-card[data-level="low"] .axis-pointer {
    border-color: #f87171;
    color: #f87171;
    box-shadow: 
        0 0 0 4px rgba(0,0,0,0.5),
        0 0 20px #f87171,
        0 0 40px #f87171;
}

/* 指示点内部脉冲动画 */
.axis-pointer::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* 数值标签 */
.pointer-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #f0f6fc;
    background: rgba(0,0,0,0.8);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 计算详情 - 代码风格 */
.calculation-detail {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.85em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.formula {
    color: #8b949e;
    font-size: 0.95em;
}

.result {
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.1em;
}

/* 详细结果容器 */
.fluctuation-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* 入场动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fluctuation-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fluctuation-card:nth-child(1) { animation-delay: 0.1s; }
.fluctuation-card:nth-child(2) { animation-delay: 0.2s; }
.fluctuation-card:nth-child(3) { animation-delay: 0.3s; }
.fluctuation-card:nth-child(4) { animation-delay: 0.4s; }

/* 响应式优化 */
@media (max-width: 768px) {
    .fluctuation-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-values {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .axis-track {
        height: 6px;
    }
    
    .axis-pointer {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .pointer-label {
        font-size: 10px;
        top: 24px;
    }
    
    .tick::after {
        font-size: 9px;
    }
}
/* 在文件末尾添加以下样式 */

/* ========== 武器标签优先级样式 ========== */
.weapon-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.weapon-tag.priority-5 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.weapon-tag.priority-4 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(238, 90, 111, 0.3);
}

.weapon-tag.priority-3 {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(68, 160, 141, 0.3);
}

.weapon-tag.priority-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 0 8px rgba(118, 75, 162, 0.3);
}

.weapon-tag.priority-1 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.weapon-tag.priority-0 {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tag-separator {
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 5px;
}

/* ========== 标签选择器样式 ========== */
.tag-selector-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-selector-container select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-selector-container select:hover,
.tag-selector-container select:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

/* ========== 词条分析卡片样式 ========== */
.stat-analysis-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-analysis-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-analysis-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-analysis-card:hover::before {
    opacity: 1;
}

/* ========== T度排行增强样式 ========== */
.tier-item {
    transition: all 0.3s ease;
}

.tier-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tier-stats .stat-tag {
    transition: all 0.2s ease;
    cursor: help;
}

.tier-stats .stat-tag:hover {
    transform: scale(1.05);
    background: var(--accent-blue) !important;
    color: #fff !important;
}

/* ========== 负词条区域样式 ========== */
.negative-section {
    position: relative;
    overflow: hidden;
}

.negative-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .tag-selector-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-analysis-card {
        padding: 15px;
    }
}

/* ========== 玩法切换器样式 ========== */
.build-switcher {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(163, 113, 247, 0.1) 100%);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.build-switcher-label {
    font-size: 1em;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.build-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.build-btn {
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.build-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.build-btn.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.build-description {
    font-size: 0.9em;
    color: var(--text-secondary);
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.build-description:empty {
    display: none;
}

/* 特殊标签高亮样式 */
.special-tag {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    border: 1px solid rgba(167, 139, 250, 0.5) !important;
    color: #a78bfa !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

.special-tag::before {
    content: '✨ ';
}

/* 多玩法武器标识 */
.multi-build-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 10px;
}

.multi-build-badge::before {
    content: '🔄';
}

/* 玩法标签样式 */
.build-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.3);
    margin-right: 8px;
    margin-bottom: 5px;
}

.build-tag.active {
    background: var(--accent-blue);
    color: white;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .build-switcher {
        padding: 15px;
    }
    
    .build-buttons {
        flex-direction: column;
    }
    
    .build-btn {
        width: 100%;
        text-align: center;
    }
    
    .multi-build-badge {
        margin-left: 0;
        margin-top: 8px;
    }
}
