/* ==========================================
   火炬计算器 - 统一样式规范
   ========================================== */

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

/* 确保所有元素在界面范围内 */
.app-container {
    min-width: 320px;
    overflow-x: hidden;
}

/* 防止内容溢出 */
.tab-content {
    overflow-x: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* ========== 统一颜色变量 ========== */
:root {
    --primary-gradient: linear-gradient(135deg, #ff6b6b, #ffa500);
    --accent-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --card-border-gradient: linear-gradient(90deg, #ff6b6b, #ffa500, #4ecdc4, #45b7d1);
    
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    --text-placeholder: rgba(255, 255, 255, 0.5);
    
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-bg-focus: rgba(255, 255, 255, 0.15);
    --input-border: rgba(255, 255, 255, 0.2);
    --input-border-focus: #ff6b6b;
    
    --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    --result-bg: rgba(255, 255, 255, 0.05);
    
    --shadow-small: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 统一选择框样式 ========== */
select, input[type="text"], input[type="number"] {
    box-sizing: border-box;
    max-width: 100%;
}

/* 统一选择框基础样式 - 所有模块通用 */
.base-select {
    padding: 0.6rem 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.base-select:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.base-select option {
    background: #2a2a2a;
    color: var(--text-primary);
}

/* 统一选择框样式 - 所有选择框使用相同的基础样式 */
.affix-select,
.dream-select,
.focus-select,
select {
    padding: 0.6rem 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.affix-select:focus,
.dream-select:focus,
.focus-select:focus,
select:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.affix-select option,
.dream-select option,
.focus-select option,
select option {
    background: #2a2a2a;
    color: var(--text-primary);
}

/* ========== 统一输入框样式 ========== */
/* 所有输入框使用相同的基础样式 */
.material-input,
.number-input,
.number-input-small,
input[type="text"],
input[type="number"] {
    padding: 0.6rem 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    text-align: center;
}

.material-input:focus,
.number-input:focus,
.number-input-small:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.material-input::placeholder,
.number-input::placeholder,
.number-input-small::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder {
    color: var(--text-placeholder);
}

/* 输入框尺寸变体 */
.material-input { width: 120px; }
.number-input { width: 140px; }
.number-input-small { 
    width: 100%; 
    padding: 6px 8px;
    font-size: 13px;
}


/* ========== 统一结果显示样式 ========== */
.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.result-item span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========== 统一模块卡片样式 ========== */
.module-card {
    min-height: 280px;
}

/* ========== 统一按钮样式 ========== */
/* 基础按钮样式已存在，保持原样 */

.app-container {
    display: flex;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0 0 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 折叠状态 */
.sidebar.collapsed {
    width: 70px;
}

/* 底部控制区域 */
.sidebar-controls {
    margin-top: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* 折叠按钮 */
.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sidebar-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* 折叠状态下的底部控制区域 */
.sidebar.collapsed .sidebar-controls {
    padding: 0.5rem;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo i {
    margin-right: 0.75rem;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: margin 0.3s ease;
}

.sidebar.collapsed .logo {
    flex-direction: column;
    font-size: 0.8rem;
}

.sidebar.collapsed .logo i {
    margin-right: 0;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

/* 折叠时隐藏文本 */
.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-text,
.logo-text {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
    flex: 1;
    margin-bottom: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

/* 主题切换容器折叠状态 */
.sidebar.collapsed .theme-toggle-container {
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .theme-toggle {
    margin-bottom: 0.25rem;
}

/* 底部控制区域中的主题切换容器 */
.sidebar-controls .theme-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sidebar.collapsed .sidebar-controls .theme-toggle-container {
    gap: 0.25rem;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

/* 主内容区域 - 优化布局 */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 1rem 1rem 1rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 侧边栏折叠时调整主内容区域 */
.sidebar.collapsed ~ .main-content {
    margin-left: 90px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.content-header {
    margin-bottom: 2rem;
    text-align: center;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.content-header h1 i {
    margin-right: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 模块网格 - 固定布局 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0;
}

/* 封印系统专用布局 - 居中对齐 */
#seal .modules-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0;
}

#seal .module-card {
    width: 100%;
    max-width: 700px;
}

/* 技能系统专用布局 */
#skill .modules-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0;
}

#skill .module-card {
    width: 100%;
    max-width: 700px;
    min-width: 0;
}

@media (max-width: 768px) {
    #skill .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* 模块卡片 - 固定尺寸 */
.module-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-height: 300px;
    max-width: 100%;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #4ecdc4, #45b7d1);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.module-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.module-card h3 i {
    margin-right: 0.75rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #ff6b6b;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span:last-child {
    color: #ff6b6b;
    font-weight: 600;
}

/* 词缀网格 */
.affix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.affix-category h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.affix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.affix-row label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 0;
    flex: 1;
}

.affix-select {
    width: 140px;
}

/* 材料网格 */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.material-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.8rem;
}

.material-item label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: left;
    font-weight: 500;
}

.material-input {
    width: 120px;
    justify-self: end;
}

/* 统一数字输入框样式 */
.number-input {
    width: 140px;
}

/* 封印系统中辅助技能等级输入框特殊样式 */
.seal-support-skills .quantity-input-container .number-input {
    width: 60px;
    padding: 0.4rem 24px 0.4rem 0.6rem;
    font-size: 0.85rem;
}

/* 封印系统中辅助技能form-group布局 */
.seal-support-skills .form-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seal-support-skills .form-group label {
    margin-bottom: 0;
    min-width: 80px;
    flex-shrink: 0;
}

.seal-support-skills .form-group .dream-select {
    flex: 1;
    min-width: 120px;
}

/* 计算按钮 */
.calculate-section {
    margin: 1.5rem 0 1rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 成本选项勾选框样式 */
.cost-options {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-color);
}

.cost-checkbox {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cost-checkbox:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    transform: scale(1.05);
}

.cost-checkbox:checked + .checkbox-custom::after {
    opacity: 1;
}

.checkbox-option:hover .checkbox-custom {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.checkbox-label {
    font-weight: 500;
    transition: color 0.3s ease;
}

.cost-checkbox:checked ~ .checkbox-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 成本明细样式 */
.cost-breakdown {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.cost-label {
    color: #4a9eff;
    font-weight: 500;
}

.cost-value {
    color: var(--text-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cost-options {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .checkbox-option {
        font-size: 13px;
    }
    
    .cost-item {
        font-size: 13px;
    }
}

.calculate-btn {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.calculate-btn i {
    margin-right: 0.5rem;
}

/* 按钮横向布局 */
.buttons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.buttons-row .calculate-btn {
    flex: 1;
    max-width: 200px;
}



/* 伤害类型切换按钮组 */
.damage-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-btn i {
    font-size: 0.8rem;
}

/* 元素伤害输入区域 */
.elemental-damage-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.elemental-compact-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.elemental-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.elemental-row:last-child {
    margin-bottom: 0;
}

.elemental-type-label {
    min-width: 120px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.elemental-type-label i.fa-bolt {
    color: #ffd700;
}

.elemental-type-label i.fa-snowflake {
    color: #87ceeb;
}

.elemental-type-label i.fa-fire {
    color: #ff6b35;
}

.elemental-inputs-row {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.form-group-inline label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    white-space: nowrap;
    text-align: center;
}



.elemental-damage-grid .form-group:last-child {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 20px auto 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .elemental-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .elemental-type-label {
        min-width: auto;
        justify-content: center;
    }
    
    .elemental-inputs-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .form-group-inline {
        min-width: calc(50% - 4px);
    }
}

/* 结果显示 */
.result-display {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 技能系统结果显示区域缩小 */
#skill .result-display {
    width: 50%;
    margin: 0 auto;
}

.result-display h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}



.dr-detail {
    font-size: 1.1rem;
    font-weight: 500;
}

.result-card {
    grid-column: 1 / -1;
}

/* 伤害系统特殊样式 */
/* 功能选择按钮 */
.crafting-function-buttons,
.damage-function-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.function-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    min-width: 140px;
    justify-content: center;
}

.function-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.function-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.function-btn i {
    font-size: 1rem;
}

/* 伤害模块容器 */
.damage-module {
    width: 100%;
}

.damage-reduction-grid {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

/* 武器伤害计算网格 */
.weapon-damage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 物理伤害布局 */
.physical-damage-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.physical-inputs-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.physical-inputs-row .form-group-inline {
    flex: 1;
    min-width: 0;
}

/* 攻击速度区域样式 */
.attack-speed-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.attack-speed-section .form-group {
    margin-bottom: 0;
}

/* 麻痹计算网格 */
.paralysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 锐痛和钝痛同行显示 */
.pain-checkbox-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pain-checkbox-row .checkbox-group {
    margin: 0;
}

.paralysis-explanation {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.paralysis-explanation h4 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 16px;
}

.explanation-item {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
}

.explanation-item strong {
    color: #ffd700;
}

/* 贯注计算网格 */
.focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.focus-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.focus-main-row .form-group {
    margin-bottom: 0;
}

.focus-select {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.focus-select:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.focus-select option {
    background: #2a2a2a;
    color: white;
}

.focus-explanation {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.focus-explanation h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 16px;
}

.focus-explanation .explanation-item {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* 结果详情 */
.result-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}



.dr-number {
    text-align: center;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.6rem 0.4rem;
}

/* 移除材料价格输入框的数字箭头 */
input[type="number"].material-price {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="number"].material-price::-webkit-outer-spin-button,
input[type="number"].material-price::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* 伤害系统网格布局 */
.damage-system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 装备参数行布局 */
.equipment-params-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.equipment-params-row .form-group {
    flex: 1;
    min-width: 200px;
}

.dr-header {
    display: contents;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

/* 增伤和提升计算模块组 */
.damage-calc-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.compact-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.dr-header span {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}

.dr-row {
    display: contents;
}

.dr-source {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-align: center;
    cursor: default;
    user-select: none;
}

.dr-method, .dr-layers, .dr-percent {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dr-method {
    width: 100%;
    min-width: 0;
}

.dr-layers {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.dr-percent {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.dr-source:focus, .dr-method:focus, .dr-layers:focus, .dr-percent:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.dr-method option {
    background: #2a2a2a;
    color: white;
}

.dr-source::placeholder, .dr-percent::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 - 优化间隙 */
@media (max-width: 1200px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .module-card {
        padding: 1.2rem;
        min-height: auto;
    }
    
    .damage-reduction-grid {
        grid-template-columns: 50px 1fr 80px 1fr;
        gap: 6px;
        font-size: 0.85rem;
    }
    
    .dr-header {
        display: contents;
    }
    
    .dr-header span {
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem;
    }
    
    .dr-row {
        display: contents;
    }
    
    .dr-number {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
    }
    
    .dr-method, .dr-layers, .dr-percent {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 0.8rem 0;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 0.8rem;
        gap: 0.3rem;
    }
    
    .nav-item {
        min-width: 100px;
        margin-bottom: 0;
        text-align: center;
        padding: 0.6rem 0.4rem;
    }
    
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 0.8rem;
    }
    
    .content-header {
        margin-bottom: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .modules-grid {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .module-card {
        padding: 1.2rem;
        min-height: auto;
    }
    
    .affix-grid, .material-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    /* 减伤计算网格移动端优化 */
    .damage-reduction-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dr-header {
        display: none;
    }
    
    .dr-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        align-items: center;
    }
    
    .dr-number {
        grid-column: 1 / -1;
        text-align: center;
        font-weight: bold;
        margin-bottom: 0.5rem;
        padding: 0.4rem;
        background: rgba(255, 107, 107, 0.2);
        border-radius: 4px;
    }
    
    .dr-method {
        grid-column: 1 / -1;
        margin-bottom: 0.3rem;
    }
    
    .dr-layers, .dr-percent {
        width: 100%;
    }
    
    /* 统一移动端输入框宽度 */
    .material-input, .number-input, .affix-select {
        width: 100%;
        max-width: 200px;
    }
    
    .dream-select {
        min-width: auto;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #ff9800);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 解梦系统样式 */
.seal-global-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seal-global-params h4 {
    grid-column: 1 / -1;
    margin: 0 0 1rem 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seal-global-params h4 i {
    font-size: 1rem;
}

/* 基础参数行样式 */
.seal-basic-params {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.seal-basic-params .form-group {
    flex: 1;
    margin-bottom: 0;
}

.seal-basic-params .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: white;
}

.seal-basic-params .number-input,
.seal-basic-params .dream-select {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0.75rem;
    font-size: 1rem;
}

.dream-select {
    width: 100%;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 需求词缀下拉窗口与装备类型窗口宽度一致 */
#dream-affix {
    width: 100%;
    max-width: none;
}

.dream-select:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.dream-select:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.dream-select option {
    background: #2a2a2a;
    color: white;
}

.dream-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.dream-price {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: #ffd700;
}

.dream-price:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

@media (max-width: 768px) {
    .dream-selection-grid,
    .dream-material-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

/* 技能系统样式 */
.skill-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-material-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-material-grid .material-item {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.skill-material-grid .material-item:first-child {
    grid-template-columns: 120px 1fr;
}

/* 技能系统样式 */
.skill-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-material-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.material-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.material-row:first-child {
    grid-template-columns: 120px 1fr;
}

.material-row label {
    font-weight: 500;
    color: white;
    font-size: 14px;
}

/* 数量输入框容器 */
.quantity-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 60px;
    margin-left: 8px;
}

.quantity-input-container .material-quantity {
    padding-right: 30px;
}

/* 上下点击按钮 */
.quantity-buttons {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    height: calc(100% - 4px);
}

.quantity-btn {
    width: 24px;
    height: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    border-radius: 0;
}

.quantity-btn:first-child {
    border-top-right-radius: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-btn:last-child {
    border-bottom-right-radius: 4px;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quantity-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 隐藏数字输入框的上下箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.skill-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.skill-result-item label {
    font-weight: 500;
    color: #333;
}

.skill-result-item .value {
    font-weight: bold;
    color: #007bff;
}

.skill-result-item.warning .value {
    color: #dc3545;
}

.skill-calculate-btn {
    width: 50%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 20px auto;
    display: block;
}

.skill-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 系统提醒样式 */
.system-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 500;
}

.system-notice i {
    color: #ffc107;
    font-size: 1rem;
}

.system-notice span {
    color: rgba(255, 255, 255, 0.9);
}

/* 封印系统样式 */
.seal-global-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.seal-halo-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.seal-halo-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px 8px 0 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.seal-halo-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.seal-halo-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.seal-halo-content {
    position: relative;
    min-height: 400px;
}

.seal-halo-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.seal-halo-panel.active {
    display: block;
}

.seal-halo-config {
    display: grid;
    gap: 1rem;
}

.seal-support-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-group {
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.conversion-group label {
    color: #ffd700;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.conversion-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.conversion-controls .dream-select {
    flex: 1;
    min-width: 200px;
}

.conversion-controls .quantity-input-container {
    flex-shrink: 0;
}

.seal-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.seal-result .result-label {
    font-weight: 600;
    color: white;
}

.seal-result .result-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6b6b;
}

.seal-total-results {
    display: grid;
    gap: 1rem;
}

.seal-total-results .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seal-total-results .result-label {
    font-weight: 600;
    color: white;
}

.seal-total-results .result-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff6b6b;
}

/* 响应式设计 - 技能系统 */
@media (max-width: 768px) {
    .skill-info-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .skill-material-grid {
        gap: 0.6rem;
    }
    
    .skill-material-grid .material-item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .skill-material-grid .material-item:first-child {
        grid-template-columns: 1fr;
    }
    
    .skill-result-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .skill-calculate-btn {
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    #skill .result-display {
        width: 100%;
    }
}

/* 高塔系统样式 */
.tower-layout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    margin: 0 auto 2rem auto;
    max-width: 1400px;
}

.tower-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.tower-left-column,
.tower-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tower-config-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-height: 300px;
    max-width: 100%;
}

.tower-config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #4ecdc4, #45b7d1);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

.tower-config-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tower-config-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tower-config-section h4 i {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-unit {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: normal;
}

.tower-weapon-config,
.tower-price-config,
.tower-research-config {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tower-select,
.tower-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tower-select:focus,
.tower-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.tower-select option {
    background: #2c3e50;
    color: white;
}

/* 武器分组标题样式 */
.weapon-group-header {
    background: #2c3e50 !important;
    color: #00bfff !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-align: center !important;
    font-style: italic !important;
}

/* 确保分组标题在所有浏览器中可见 */
#weapon-type .weapon-group-header {
    background: #2c3e50 !important;
    color: #00bfff !important;
    font-weight: bold !important;
}

.tower-select option.weapon-group-header {
    background: #2c3e50 !important;
    color: #00bfff !important;
    font-weight: bold !important;
    text-align: center !important;
}

.tower-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sequence-input-group {
    grid-column: 1 / -1;
}

.sequence-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sequence-help {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sequence-rule {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tower-materials-display {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.materials-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    height: 100%;
    min-height: 80px;
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.material-item {
    text-align: left;
}

.material-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.material-amount {
    font-size: 1.2rem;
    color: #ffa500;
    font-weight: bold;
}

.material-quantity {
    font-size: 1.2rem;
    color: #ffa500;
}

.tower-calculate-section {
    text-align: center;
    margin: 1rem 0;
}

.tower-calculate-btn {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tower-calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tower-calculate-btn:hover::before {
    left: 100%;
}

.tower-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.tower-calculate-btn:active {
    transform: translateY(-1px);
}

.tower-results-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-height: 300px;
    max-width: 100%;
}

.tower-results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #4ecdc4, #45b7d1);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

.tower-results-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tower-results-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.tower-results-section h4 i {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tower-results-display {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-label {
    display: block;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
}

/* 武器伤害计算模块结果项样式修复 */
#weapon-damage-result .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

#weapon-damage-result .result-label {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
    vertical-align: middle;
}

#weapon-damage-result .result-value {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    vertical-align: middle;
}

/* 内联结果项样式 - 用于在同一行显示多个结果 */
.result-item-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.result-item-inline .result-label {
    display: inline;
    margin-bottom: 0;
    margin-right: 8px;
}

.result-item-inline .result-value {
    display: inline;
    margin-right: 15px;
}

/* 左对齐结果项样式 - 用于分行显示并左对齐 */
.result-item-left {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.result-item-left .result-label {
    display: inline;
    margin-bottom: 0;
    min-width: 80px;
}

.result-item-left .result-value {
    display: inline;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tower-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tower-layout {
        padding: 1rem;
    }
    
    .materials-list {
        grid-template-columns: 1fr;
    }
    
    .sequence-help {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 主题切换开关样式 */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 1rem 2rem 1rem;
    gap: 0.75rem;
}

.theme-toggle {
    position: relative;
}

.theme-switch {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.theme-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch:checked + .theme-label {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-switch:checked + .theme-label .toggle-slider {
    transform: translateX(30px);
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.theme-switch:checked + .theme-label .light-icon {
    color: rgba(255, 255, 255, 0.4);
}

.theme-switch:checked + .theme-label .dark-icon {
    color: rgba(255, 255, 255, 0.9);
}

.theme-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 黑暗主题样式 */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-card: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .app-container {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-item {
    background: transparent;
}

[data-theme="dark"] .nav-item:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .module-card:hover {
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .form-group label {
    color: var(--text-secondary);
}

[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] select:focus,
[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="number"]:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* select-input 样式 */
select.select-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

select.select-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

select.select-input option {
    background: white;
    color: #333;
    padding: 8px;
}

/* 深色主题下的 select-input */
[data-theme="dark"] select.select-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] select.select-input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] select.select-input option {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-color: #357abd;
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #5ba0f2, #4a8acd);
    transform: translateY(-2px);
}

[data-theme="dark"] .result-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .result-item {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .result-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .result-value {
    color: var(--text-primary);
}

[data-theme="dark"] .radio-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .radio-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .radio-option.active {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-color: #357abd;
}

[data-theme="dark"] .theme-text {
    color: var(--text-secondary);
}

/* 深色模式 - 高塔系统样式 */
[data-theme="dark"] .tower-layout {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .tower-config-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .tower-config-section:hover {
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .tower-select,
[data-theme="dark"] .tower-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .tower-select:focus,
[data-theme="dark"] .tower-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tower-materials-display {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border-color);
}

[data-theme="dark"] .tower-results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* 深色模式 - 元素伤害区域样式 */
[data-theme="dark"] .elemental-compact-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .elemental-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .elemental-type-label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group-inline label {
    color: var(--text-secondary);
}

[data-theme="dark"] .number-input-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .number-input-small:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .number-input-small::placeholder {
    color: var(--text-muted);
}

/* 元素伤害结果行样式 */
.elemental-result-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.elemental-result-row .result-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
}

.elemental-result-row .result-label,
.elemental-result-row .result-value {
    line-height: 1.2;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.elemental-icon {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.lightning-icon {
    color: #ffd700;
}

.cold-icon {
    color: #87ceeb;
}

.fire-icon {
    color: #ff6b35;
}

.elemental-title {
    font-weight: bold;
    font-size: 14px;
    min-width: 80px;
}

.lightning-title {
    color: white;
}

.cold-title {
    color: white;
}

.fire-title {
    color: white;
}

.orange-text {
    color: #ff8c00;
}

.blue-text {
    color: #4a90e2;
}

.orange-text .result-label,
.orange-text .result-value {
    color: #ff8c00 !important;
}

.blue-text .result-label,
.blue-text .result-value {
    color: #4a90e2 !important;
}

/* 总伤害样式 */
.total-damage {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.total-damage .result-label,
.total-damage .result-value {
    font-weight: bold;
    color: #ffffff !important;
}

/* 深色模式下的元素伤害样式调整 */
[data-theme="dark"] .elemental-result-row {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .lightning-icon {
    color: #ffeb3b;
}

[data-theme="dark"] .cold-icon {
    color: #87ceeb;
}

[data-theme="dark"] .fire-icon {
    color: #ff6b35;
}

[data-theme="dark"] .lightning-title {
    color: white;
}

[data-theme="dark"] .cold-title {
    color: white;
}

[data-theme="dark"] .fire-title {
    color: white;
}

[data-theme="dark"] .orange-text,
[data-theme="dark"] .orange-text .result-label,
[data-theme="dark"] .orange-text .result-value {
    color: #ffa500 !important;
}

[data-theme="dark"] .blue-text,
[data-theme="dark"] .blue-text .result-label,
[data-theme="dark"] .blue-text .result-value {
    color: #2196f3 !important;
}

[data-theme="dark"] .total-damage {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .total-damage .result-label,
[data-theme="dark"] .total-damage .result-value {
    color: #ffa500 !important;
}

/* 元素伤害攻击速度输入样式 */
.elemental-attack-speed-section {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .elemental-attack-speed-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}





/* 总成本样式 */
.cost-item.total-cost {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
    font-weight: bold;
}

.cost-item.total-cost .cost-name {
    color: #ffd700;
}

.cost-item.total-cost .cost-value {
    color: #ffd700;
    font-size: 16px;
}



.equipment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equipment-selection-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.equipment-selection-row-single {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    align-items: end;
}



/* 材料消耗显示 */
.material-cost-display {
    margin-top: 15px;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.material-name {
    font-weight: 500;
    color: var(--text-color);
}

.material-count {
    font-weight: 600;
    color: var(--accent-color);
}

/* 累计成本显示 */
.total-cost-display {
    margin-top: 15px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.cost-name {
    font-weight: 500;
    color: var(--text-color);
}

.cost-value {
    font-weight: 600;
    color: var(--accent-color);
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

/* 装备显示区域 */
.equipment-display {
    text-align: center;
    margin-top: 15px;
}

.equipment-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.equipment-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-equipment-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.no-equipment-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

.equipment-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.equipment-level-display {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 词缀显示 */
.affixes-display {
    margin-top: 15px;
}

.no-affixes-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px;
}

.no-affixes-placeholder i {
    font-size: 24px;
    opacity: 0.5;
}

.affix-item {
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-color);
}

/* 侵蚀词缀样式 - 炫彩烫金紫色 */
.affix-item.erosion-purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid #a855f7;
    color: #e879f9;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
    animation: erosion-glow 2s ease-in-out infinite;
}

.affix-item.erosion-gold {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 88, 12, 0.15) 100%);
    border: 1px solid #eab308;
    color: #facc15;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5), 0 0 20px rgba(234, 179, 8, 0.3);
    animation: gold-glow 2s ease-in-out infinite;
}

.affix-item.erosion-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 1px solid #f97316;
    color: #fb923c;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5), 0 0 20px rgba(249, 115, 22, 0.3);
    animation: orange-glow 2s ease-in-out infinite;
}

@keyframes erosion-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 25px rgba(168, 85, 247, 0.4);
    }
}

@keyframes gold-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(234, 179, 8, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(234, 179, 8, 0.6), 0 0 25px rgba(234, 179, 8, 0.4);
    }
}

@keyframes orange-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.6), 0 0 25px rgba(249, 115, 22, 0.4);
    }
}



/* 功能说明 */
.help-content {
    margin-top: 15px;
}

.help-item {
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.help-item strong {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .equipment-selection-row {
        grid-template-columns: 1fr;
    }
}

/* 深色主题适配 */
[data-theme="dark"] .material-item,
[data-theme="dark"] .cost-item,
[data-theme="dark"] .affix-item,
[data-theme="dark"] .help-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .equipment-icon {
    border-color: var(--border-color);
    background: var(--card-bg);
}

/* 侵蚀模拟模块样式 */
.erosion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.equipment-selection-area {
    width: 100%;
}

.equipment-selection-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.erosion-simulation-area {
    width: 100%;
}

.erosion-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.erosion-left-panel {
    flex: 1;
    min-width: 0;
}

.erosion-right-panel {
    flex: 1;
    min-width: 0;
}

.erosion-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

/* 侵蚀结果区域样式 */
.erosion-result-area {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.erosion-result-area .result-header {
    margin-bottom: 10px;
}

.erosion-result-area .result-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.erosion-result-area .result-content {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.equipment-select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-select:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.equipment-select option {
    background: #2a2a2a;
    color: white;
}

.price-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.erosion-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.erosion-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dark-erosion {
    background: linear-gradient(135deg, #2c1810, #4a2c1a);
    color: #ffd700;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

.dark-erosion:hover {
    background: linear-gradient(135deg, #3d2318, #5d3621);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.4);
}

.deepest-erosion {
    background: linear-gradient(135deg, #1a0d1a, #2d1a2d);
    color: #e6ccff;
    box-shadow: 0 4px 15px rgba(26, 13, 26, 0.3);
}

.deepest-erosion:hover {
    background: linear-gradient(135deg, #261326, #3d2a3d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 13, 26, 0.4);
}

.erosion-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.stat-row {
    display: flex;
    gap: 15px;
}

.stat-row .stat-item {
    flex: 1;
}

.stat-item label {
    font-weight: bold;
    color: var(--text-color);
}

.stat-item span {
    color: var(--primary-color);
    font-weight: bold;
}

.total-cost {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.total-cost label,
.total-cost span {
    color: white;
}

.erosion-controls .reset-btn {
    width: 100%;
    padding: 12px;
    background: var(--danger-color, #dc3545);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.erosion-controls .reset-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.equipment-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.equipment-display .equipment-icon {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.equipment-display .equipment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder-icon {
    font-size: 32px;
    color: var(--text-secondary);
}

.equipment-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 18px;
}

.equipment-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.affix-section {
    margin-bottom: 15px;
}

.affix-section h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.affix-list {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--border-color);
    min-height: 40px;
}

.affix-list p {
    margin: 5px 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

.no-affixes {
    color: var(--text-secondary) !important;
    font-style: italic;
}

.equipment-status {
    margin-top: 15px;
    padding: 10px;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.erosion-result-area {
    grid-column: 1 / -1;
}

.result-content {
    padding: 20px;
    background: var(--input-bg);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* 蓝紫色流光效果 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.corrupted-affix {
    background: linear-gradient(
        90deg,
        #6a5acd 0%,
        #9370db 25%,
        #ba55d3 50%,
        #9370db 75%,
        #6a5acd 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.bound-status {
    color: #6a5acd;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(106, 90, 205, 0.5);
    animation: shimmer 2s infinite;
}

.mutation-affix {
    background: linear-gradient(
        90deg,
        #ff6b6b 0%,
        #ff8e53 25%,
        #ff6b6b 50%,
        #ff8e53 75%,
        #ff6b6b 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.profane-affix {
    background: linear-gradient(
        90deg,
        #ff6b6b 0%,
        #ff8e53 25%,
        #ff6b6b 50%,
        #ff8e53 75%,
        #ff6b6b 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* 模拟N次功能样式 */
.simulation-controls {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulation-input-group {
    margin-bottom: 15px;
}

.simulation-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.number-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.number-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.number-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.simulation-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.simulation-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.simulation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.simulation-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.dark-simulation {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.dark-simulation:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.deepest-simulation {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.deepest-simulation:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

/* 侵蚀结果统计样式 */
.erosion-results-stats {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.erosion-results-stats h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.result-stat-item label {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

.result-stat-item span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* 侵蚀成本计算样式 */
.erosion-cost-calculation {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.erosion-cost-calculation h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.erosion-type-selection {
    margin-bottom: 20px;
}

.erosion-type-selection label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.erosion-type-buttons {
    display: flex;
    gap: 10px;
}

.erosion-type-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.erosion-type-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.erosion-type-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.target-affixes-selection {
    margin-bottom: 20px;
}

.target-affix-group {
    margin-bottom: 15px;
}

.target-affix-group label {
    display: block;
}

/* ============================================
   浅色主题完整样式系统
   WCAG AA级对比度标准：
   - 正常文本对比度 ≥ 4.5:1
   - 大文本对比度 ≥ 3:1
   ============================================ */

/* ========== 浅色主题基础变量 - 优化版 ========== */
[data-theme="light"] {
    /* 背景颜色 - 柔和的浅色系，减轻雪盲症 */
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-secondary: rgba(0, 0, 0, 0.02);
    --bg-card: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: rgba(0, 0, 0, 0.03);
    --bg-input-focus: rgba(0, 0, 0, 0.05);
    --bg-result: rgba(0, 0, 0, 0.015);
    
    /* 文本颜色 - 高对比度 */
    --text-primary: #1a1a2e;          /* 对比度 ~15:1 */
    --text-secondary: #2d3748;        /* 对比度 ~12:1 */
    --text-muted: #4a5568;            /* 对比度 ~8:1 */
    --text-placeholder: #718096;       /* 对比度 ~5.5:1 (WCAG AA) */
    --text-accent: #667eea;            /* 对比度 ~7:1 */
    --text-danger: #e53e3e;            /* 对比度 ~6:1 */
    --text-success: #38a169;           /* 对比度 ~7:1 */
    --text-warning: #dd6b20;           /* 对比度 ~6.5:1 */
    
    /* 边框颜色 */
    --border-color: rgba(0, 0, 0, 0.12);
    --border-color-hover: rgba(0, 0, 0, 0.2);
    --border-color-focus: #667eea;
    
    /* 阴影 */
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 12px 48px rgba(0, 0, 0, 0.16);
}

/* ========== 浅色主题全局样式 ========== */
[data-theme="light"] body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .app-container {
    background: rgba(0, 0, 0, 0.015) !important;
}

/* 专门覆盖硬编码的白色背景 */
[data-theme="light"] body,
[data-theme="light"] html {
    background: var(--bg-primary) !important;
}

/* 全面覆盖所有硬编码白色背景的元素 */
[data-theme="light"] select.select-input,
[data-theme="light"] select.select-input option,
[data-theme="light"] .base-select option,
[data-theme="light"] .affix-select option,
[data-theme="light"] .dream-select option,
[data-theme="light"] .focus-select option,
[data-theme="light"] select option {
    background: white !important;
    color: var(--text-primary) !important;
}

/* 覆盖所有直接设置 color: white 的元素 */
[data-theme="light"] .result-display h3,
[data-theme="light"] .content-header p,
[data-theme="light"] .material-item label,
[data-theme="light"] .system-notice span,
[data-theme="light"] .affix-category h4,
[data-theme="light"] .affix-row label,
[data-theme="light"] .module-title,
[data-theme="light"] .card-title,
[data-theme="light"] .panel-title,
[data-theme="light"] .section-title,
[data-theme="light"] .app-title,
[data-theme="light"] .page-title,
[data-theme="light"] .badge,
[data-theme="light"] .icon-label,
[data-theme="light"] .sidebar .logo-text,
[data-theme="light"] .sidebar .nav-text,
[data-theme="light"] .theme-text,
[data-theme="light"] .tooltip,
[data-theme="light"] .help-text,
[data-theme="light"] .hint-text,
[data-theme="light"] li,
[data-theme="light"] .list-item,
[data-theme="light"] .highlight,
[data-theme="light"] .emphasis,
[data-theme="light"] th:not([data-theme="dark"] th),
[data-theme="light"] td:not([data-theme="dark"] td) {
    color: var(--text-primary) !important;
}

/* 覆盖所有直接设置 color: rgba(255,255,255,...) 的元素 */
[data-theme="light"] .form-group label,
[data-theme="light"] .result-label,
[data-theme="light"] .tier-label,
[data-theme="light"] .material-name,
[data-theme="light"] .cost-name,
[data-theme="light"] .equipment-name,
[data-theme="light"] .elemental-type-label,
[data-theme="light"] .harvest-query-section label,
[data-theme="light"] .seal-support-skills label {
    color: var(--text-secondary) !important;
}

/* 确保单选按钮的小圆点在浅色模式下可见 */
[data-theme="light"] .radio-option input[type="radio"] ~ span:first-child::after {
    background: var(--text-primary) !important;
}

/* ============================================
   彻底修复浅色主题白色背景问题
   ============================================ */

/* 覆盖所有直接设置白色背景的模块卡片 */
[data-theme="light"] .module-card,
[data-theme="light"] .result-section,
[data-theme="light"] .elemental-compact-section,
[data-theme="light"] .tower-config-section,
[data-theme="light"] .tower-results-section,
[data-theme="light"] .harvest-tier-card,
[data-theme="light"] .seal-support-skills,
[data-theme="light"] .conversion-group,
[data-theme="light"] .affix-category,
[data-theme="light"] .seal-halo-panel,
[data-theme="light"] .skill-result-item {
    background: var(--bg-card) !important;
}

/* 覆盖任何直接设置 #f8f9fa 的元素 */
[data-theme="light"] .skill-result-item {
    background: var(--bg-card) !important;
    border-left-color: #667eea !important;
}

[data-theme="light"] .skill-result-item label,
[data-theme="light"] .skill-result-item .value {
    color: var(--text-primary) !important;
}

/* ============================================
   重新设计计算按钮样式 - 通用版本
   ============================================ */

/* 计算按钮 - 全新设计，确保两种主题都清晰 */
.calculate-btn {
    background: linear-gradient(135deg, #ff6b6b, #ffa500) !important;
    border: none !important;
    padding: 0.8rem 1.6rem !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.calculate-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

.calculate-btn:hover::before {
    left: 100% !important;
}

.calculate-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

.calculate-btn:active {
    transform: translateY(-1px) !important;
}

.calculate-btn i {
    margin-right: 0.5rem !important;
}

/* 侵蚀计算按钮 - 确保两种主题下都清晰 */
.calculate-erosion-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.calculate-erosion-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

/* 通用主按钮样式 - 确保两种主题下都清晰 */
[data-theme="light"] .btn-primary,
[data-theme="dark"] .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
    color: white !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #7a8ff0, #865bb2) !important;
    transform: translateY(-2px) !important;
}

/* 确保所有按钮在两种主题下都有合适的阴影 */
.btn,
.calculate-btn,
.calculate-erosion-btn,
.function-btn,
.toggle-btn,
.seal-halo-tab,
.radio-option,
.erosion-type-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   最终版 - 彻底解决浅色模式白色背景问题
   ============================================ */

/* 专门覆盖 app-container 的白色背景 */
[data-theme="light"] .app-container {
    background: var(--bg-primary) !important;
    backdrop-filter: none !important;
}

/* 全面覆盖所有可能设置白色背景的元素 */
[data-theme="light"] .module-card,
[data-theme="light"] .result-section,
[data-theme="light"] .elemental-compact-section,
[data-theme="light"] .tower-config-section,
[data-theme="light"] .tower-results-section,
[data-theme="light"] .harvest-tier-card,
[data-theme="light"] .seal-support-skills,
[data-theme="light"] .conversion-group,
[data-theme="light"] .affix-category,
[data-theme="light"] .seal-halo-panel,
[data-theme="light"] .skill-result-item,
[data-theme="light"] .harvest-result-section,
[data-theme="light"] .erosion-cost-result,
[data-theme="light"] .equipment-display,
[data-theme="light"] .affixes-display {
    background: var(--bg-card) !important;
}

/* 覆盖任何直接设置白色或浅灰背景的元素 */
[data-theme="light"] *:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.calculate-erosion-btn):not(.calculate-btn):not(.toggle-btn.active):not(.seal-halo-tab.active):not(.nav-item.active):not(.radio-option.active):not(.function-btn.active):not(.erosion-type-btn.active):not(th):not(thead):not(.toggle-slider):not(.theme-label) {
    background-color: transparent !important;
}

/* ============================================
   结果文字样式优化 - 浅色模式更立体
   ============================================ */

/* 浅色模式下的结果值 - 更立体的样式 */
[data-theme="light"] .result-value,
[data-theme="light"] .result-item span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08)) !important;
    font-size: 1.4rem !important;
}

/* 深色模式保持原样 */
[data-theme="dark"] .result-value,
[data-theme="dark"] .result-item span {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   收割档位结果文字 - 字号加大
   ============================================ */

/* 收割档位卡片标题 */
[data-theme="light"] .harvest-tier-card h5,
[data-theme="dark"] .harvest-tier-card h5 {
    font-size: 18px !important;
}

/* 收割档位详情 */
[data-theme="light"] .tier-details,
[data-theme="dark"] .tier-details {
    font-size: 15px !important;
}

/* 收割档位标签 */
[data-theme="light"] .tier-label,
[data-theme="dark"] .tier-label {
    font-size: 15px !important;
}

/* 收割档位数值 */
[data-theme="light"] .tier-value,
[data-theme="dark"] .tier-value {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* 收割档位表格 */
[data-theme="light"] #harvest-tier-table td,
[data-theme="dark"] #harvest-tier-table td {
    font-size: 14px !important;
}

[data-theme="light"] #harvest-tier-table th,
[data-theme="dark"] #harvest-tier-table th {
    font-size: 15px !important;
}

/* ============================================
   收割档位表格 - 独立背景和边框样式
   ============================================ */

/* 表格容器 */
.harvest-data-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.harvest-data-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 表格容器 */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* 表格基础样式 */
#harvest-tier-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
}

/* 表头样式 */
#harvest-tier-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#harvest-tier-table thead th {
    padding: 12px 16px;
    color: white !important;
    font-weight: 600;
    text-align: center;
    border: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    font-size: 0.9rem;
}

#harvest-tier-table thead th:first-child {
    border-top-left-radius: 8px;
}

#harvest-tier-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* 表体样式 */
#harvest-tier-table tbody tr {
    background: transparent;
    transition: all 0.2s ease;
}

#harvest-tier-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

#harvest-tier-table tbody td {
    padding: 10px 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* 表格斑马线效果 */
#harvest-tier-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] #harvest-tier-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* 表格边框 */
#harvest-tier-table {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
}

/* ============================================
   维护中标签样式
   ============================================ */
.maintenance-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: maintenance-pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

@keyframes maintenance-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ============================================
   确保模块卡片背景渐变效果
   ============================================ */
[data-theme="light"] .module-card,
[data-theme="dark"] .module-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-light) !important;
}

/* ========== 浅色主题侧边栏样式 ========== */
[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-item {
    background: transparent;
    color: var(--text-primary);
}

[data-theme="light"] .nav-item:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-medium);
}

[data-theme="light"] .nav-icon {
    filter: brightness(0) saturate(100%);
}

/* ========== 浅色主题模块卡片样式 ========== */
[data-theme="light"] .module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .module-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--border-color-hover);
}

/* ========== 浅色主题表单元素样式 ========== */
[data-theme="light"] .form-group label {
    color: var(--text-secondary);
}

[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"] {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] select:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus {
    border-color: var(--border-color-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] select::placeholder,
[data-theme="light"] input[type="text"]::placeholder,
[data-theme="light"] input[type="number"]::placeholder {
    color: var(--text-placeholder);
}

[data-theme="light"] select option {
    background: white;
    color: var(--text-primary);
}

/* 基础选择框样式 */
[data-theme="light"] .base-select,
[data-theme="light"] .affix-select,
[data-theme="light"] .dream-select,
[data-theme="light"] .focus-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .base-select:focus,
[data-theme="light"] .affix-select:focus,
[data-theme="light"] .dream-select:focus,
[data-theme="light"] .focus-select:focus {
    background: var(--bg-input-focus);
}

[data-theme="light"] .base-select option,
[data-theme="light"] .affix-select option,
[data-theme="light"] .dream-select option,
[data-theme="light"] .focus-select option {
    background: white;
    color: var(--text-primary);
}

/* 输入框样式 */
[data-theme="light"] .material-input,
[data-theme="light"] .number-input,
[data-theme="light"] .number-input-small {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .material-input:focus,
[data-theme="light"] .number-input:focus,
[data-theme="light"] .number-input-small:focus {
    background: var(--bg-input-focus);
}

[data-theme="light"] .material-input::placeholder,
[data-theme="light"] .number-input::placeholder,
[data-theme="light"] .number-input-small::placeholder {
    color: var(--text-placeholder);
}

/* select-input 样式 */
[data-theme="light"] select.select-input {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] select.select-input:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] select.select-input option {
    background: white;
    color: var(--text-primary);
}

/* ========== 浅色主题按钮样式 ========== */
[data-theme="light"] .btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.95));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 1));
    border-color: var(--border-color-hover);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #7a8ff0, #865bb2);
    transform: translateY(-2px);
}

/* ========== 浅色主题结果显示样式 ========== */
[data-theme="light"] .result-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .result-item {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .result-label {
    color: var(--text-secondary);
}

[data-theme="light"] .result-value {
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

[data-theme="light"] .result-item span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 浅色主题数据类文本样式（高可读性） ========== */
[data-theme="light"] .tier-value,
[data-theme="light"] .cost-value,
[data-theme="light"] .material-count,
[data-theme="light"] .stat-value,
[data-theme="light"] .number-display {
    color: #1a1a2e !important;          /* 深色主色调，高对比度 */
    font-weight: 700;
}

/* ========== 浅色主题单选按钮样式 ========== */
[data-theme="light"] .radio-option {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .radio-option:hover {
    background: var(--bg-input-focus);
    border-color: var(--border-color-hover);
}

[data-theme="light"] .radio-option.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

/* ========== 浅色主题收割档位样式 ========== */
[data-theme="light"] .harvest-tier-card {
    background: white;
    border-left-color: #38a169;
}

[data-theme="light"] .harvest-tier-card h5 {
    color: #2f855a;
}

[data-theme="light"] .tier-label {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .tier-value {
    color: var(--text-primary) !important;
    font-weight: 700;
}

[data-theme="light"] .harvest-data-section h4 {
    color: #2f855a;
}

[data-theme="light"] #harvest-tier-table {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #harvest-tier-table thead {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

[data-theme="light"] #harvest-tier-table thead th {
    color: white;
}

[data-theme="light"] #harvest-tier-table tbody tr:hover {
    background: rgba(56, 161, 105, 0.08);
}

[data-theme="light"] #harvest-tier-table tbody td {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] #harvest-tier-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* ========== 浅色主题高塔系统样式 ========== */
[data-theme="light"] .tower-layout {
    background: var(--bg-primary);
}

[data-theme="light"] .tower-config-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .tower-config-section:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--border-color-hover);
}

[data-theme="light"] .tower-select,
[data-theme="light"] .tower-input {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .tower-select:focus,
[data-theme="light"] .tower-input:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .tower-materials-display {
    background: rgba(0, 0, 0, 0.02);
    border: 2px dashed var(--border-color);
}

[data-theme="light"] .tower-results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* ========== 浅色主题元素伤害样式 ========== */
[data-theme="light"] .elemental-compact-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .elemental-row {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .elemental-type-label {
    color: var(--text-primary);
}

[data-theme="light"] .form-group-inline label {
    color: var(--text-secondary);
}

[data-theme="light"] .elemental-result-row {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .lightning-icon {
    color: #d69e2e;
}

[data-theme="light"] .cold-icon {
    color: #3182ce;
}

[data-theme="light"] .fire-icon {
    color: #c53030;
}

[data-theme="light"] .lightning-title,
[data-theme="light"] .cold-title,
[data-theme="light"] .fire-title {
    color: var(--text-primary);
}

/* ========== 浅色主题装备显示样式 ========== */
[data-theme="light"] .equipment-name {
    color: var(--text-primary);
}

[data-theme="light"] .equipment-level-display {
    color: var(--text-secondary);
}

[data-theme="light"] .no-equipment-placeholder,
[data-theme="light"] .no-affixes-placeholder {
    color: var(--text-muted);
}

[data-theme="light"] .affix-item {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* ========== 浅色主题材料和成本显示 ========== */
[data-theme="light"] .material-item,
[data-theme="light"] .cost-item {
    background: white;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .material-name,
[data-theme="light"] .cost-name {
    color: var(--text-secondary);
}

[data-theme="light"] .material-count,
[data-theme="light"] .cost-value {
    color: var(--text-accent);
    font-weight: 700;
}

[data-theme="light"] .cost-item.total-cost .cost-name,
[data-theme="light"] .cost-item.total-cost .cost-value {
    color: #d69e2e !important;
}

/* ========== 浅色主题侵蚀系统样式 ========== */
[data-theme="light"] .erosion-type-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .erosion-type-btn:hover {
    background: var(--bg-input-focus);
    border-color: var(--border-color-hover);
}

[data-theme="light"] .erosion-type-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

/* ========== 浅色主题主题切换文本 ========== */
[data-theme="light"] .theme-text {
    color: var(--text-secondary);
}

/* ========== 浅色主题主题切换开关 ========== */
[data-theme="light"] .theme-label {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-icon {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .theme-switch:checked + .theme-label .light-icon {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-switch:checked + .theme-label .dark-icon {
    color: rgba(0, 0, 0, 0.8);
}

/* ========== 浅色主题价格管理器样式 ========== */
[data-theme="light"] .input-error {
    border-color: #e53e3e !important;
    background-color: rgba(229, 62, 62, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

[data-theme="light"] .input-success {
    border-color: #38a169 !important;
    background-color: rgba(56, 161, 105, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15) !important;
}

/* ============================================
   浅色主题设计规范文档
   ============================================

   ## 颜色系统（HEX格式）
   
   ### 背景颜色
   - 主背景: #f5f7fa → #e4e8ec (渐变)
   - 卡片背景: rgba(255, 255, 255, 0.95) → rgba(248, 249, 250, 0.9)
   - 输入框背景: rgba(0, 0, 0, 0.04)
   - 结果区域背景: rgba(0, 0, 0, 0.02)
   
   ### 文本颜色（对比度对比白色背景）
   - 主要文本: #1a1a2e (对比度 ~15:1) - 标题、重要数据
   - 次要文本: #2d3748 (对比度 ~12:1) - 标签、说明
   - 辅助文本: #4a5568 (对比度 ~8:1) - 次要信息
   - 占位符: #718096 (对比度 ~5.5:1) - 输入框提示（满足WCAG AA）
   - 强调文本: #667eea (对比度 ~7:1) - 链接、强调
   - 危险文本: #e53e3e (对比度 ~6:1) - 错误提示
   - 成功文本: #38a169 (对比度 ~7:1) - 成功提示
   - 警告文本: #dd6b20 (对比度 ~6.5:1) - 警告提示
   
   ### 边框颜色
   - 默认边框: rgba(0, 0, 0, 0.12)
   - 悬停边框: rgba(0, 0, 0, 0.2)
   - 聚焦边框: #667eea
   
   ### 阴影
   - 轻阴影: 0 4px 16px rgba(0, 0, 0, 0.08)
   - 中阴影: 0 8px 32px rgba(0, 0, 0, 0.12)
   - 重阴影: 0 12px 48px rgba(0, 0, 0, 0.16)
   
   ## 字体大小系统
   - 超大标题: 24px (700 weight)
   - 大标题: 20px (600 weight)
   - 中标题: 18px (600 weight)
   - 小标题: 16px (600 weight)
   - 正文: 14px (500 weight)
   - 小字: 13px (400 weight)
   - 数据: 14-16px (700 weight - 高对比度深色)
   
   ## 使用场景
   1. 数据类文本（数字、统计信息）：使用 #1a1a2e，700 weight，最高对比度
   2. 标签和说明：使用 #2d3748，500 weight
   3. 次要信息：使用 #4a5568，400-500 weight
   4. 输入框提示：使用 #718096，400 weight
   5. 强调和链接：使用 #667eea，500-600 weight
   
   ## WCAG AA级对比度保证
   - 所有正常文本（≥14px）对比度 ≥ 4.5:1
   - 所有大文本（≥18px或粗体≥14px）对比度 ≥ 3:1
   - 所有交互元素（按钮、链接）有明显的状态变化
   ============================================ */

/* ============================================
   浅色主题全面覆盖 - 修复硬编码白色
   ============================================ */

/* 功能按钮样式修复 */
[data-theme="light"] .function-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary) !important;
}

[data-theme="light"] .function-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .function-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white !important;
}

/* 伤害系统标题修复 */
[data-theme="light"] .result-display h3,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary) !important;
}

/* 导航和标签栏修复 */
[data-theme="light"] .nav-item,
[data-theme="light"] .tab-button,
[data-theme="light"] .skill-tab,
[data-theme="light"] .damage-nav button {
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-item.active,
[data-theme="light"] .tab-button.active,
[data-theme="light"] .skill-tab.active {
    color: white !important;
}

/* 各种硬编码白色文本修复 */
[data-theme="light"] .result-display,
[data-theme="light"] .module-title,
[data-theme="light"] .form-group label,
[data-theme="light"] .result-label,
[data-theme="light"] .tier-label,
[data-theme="light"] .material-name,
[data-theme="light"] .cost-name,
[data-theme="light"] .equipment-name,
[data-theme="light"] .elemental-type-label,
[data-theme="light"] .harvest-query-section label {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .result-value,
[data-theme="light"] .tier-value,
[data-theme="light"] .material-count,
[data-theme="light"] .cost-value,
[data-theme="light"] .equipment-level-display,
[data-theme="light"] .stat-value {
    color: var(--text-primary) !important;
}

/* 主标题修复 */
[data-theme="light"] .app-title,
[data-theme="light"] .page-title {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

/* 徽章和图标修复 */
[data-theme="light"] .badge,
[data-theme="light"] .icon-label {
    color: var(--text-primary) !important;
}

/* 侧边栏文本修复 */
[data-theme="light"] .sidebar .logo-text,
[data-theme="light"] .sidebar .nav-text,
[data-theme="light"] .theme-text {
    color: var(--text-primary) !important;
}

/* 输入框内的文本修复 */
[data-theme="light"] input::placeholder,
[data-theme="light"] select option,
[data-theme="light"] textarea::placeholder {
    color: var(--text-placeholder) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    color: var(--text-primary) !important;
}

/* 按钮文本修复 - 保持白色按钮文字 */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-success,
[data-theme="light"] .btn-danger,
[data-theme="light"] .btn-warning,
[data-theme="light"] .calculate-erosion-btn {
    color: white !important;
}

/* 卡片和面板标题修复 */
[data-theme="light"] .card-title,
[data-theme="light"] .panel-title,
[data-theme="light"] .section-title {
    color: var(--text-primary) !important;
}

/* 工具提示和说明文本修复 */
[data-theme="light"] .tooltip,
[data-theme="light"] .help-text,
[data-theme="light"] .hint-text {
    color: var(--text-muted) !important;
}

/* 列表项修复 */
[data-theme="light"] li,
[data-theme="light"] .list-item {
    color: var(--text-primary) !important;
}

/* 链接文本修复 */
[data-theme="light"] a {
    color: var(--text-accent) !important;
}

[data-theme="light"] a:hover {
    color: #764ba2 !important;
}

/* 表格修复 */
[data-theme="light"] th,
[data-theme="light"] td {
    color: var(--text-primary) !important;
}

[data-theme="light"] th {
    color: white !important;
}

/* 特殊文本样式修复 */
[data-theme="light"] .highlight,
[data-theme="light"] .emphasis {
    color: var(--text-accent) !important;
}

[data-theme="light"] .error-text {
    color: var(--text-danger) !important;
}

[data-theme="light"] .success-text {
    color: var(--text-success) !important;
}

[data-theme="light"] .warning-text {
    color: var(--text-warning) !important;
}

/* ============================================
   浅色主题按钮系统全面修复
   ============================================ */

/* 切换按钮组容器修复 */
[data-theme="light"] .damage-type-toggle {
    background: rgba(0, 0, 0, 0.05);
}

/* 切换按钮修复（伤害类型、光环等） */
[data-theme="light"] .toggle-btn {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .toggle-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .toggle-btn.active {
    color: white !important;
}

/* 封印系统光环标签修复 */
[data-theme="light"] .seal-halo-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .seal-halo-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary) !important;
}

[data-theme="light"] .seal-halo-tab:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-primary) !important;
}

[data-theme="light"] .seal-halo-tab.active {
    color: white !important;
}

/* 封印系统辅助技能区域修复 */
[data-theme="light"] .seal-support-skills {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .seal-support-skills label {
    color: var(--text-secondary) !important;
}

/* 转换组修复 */
[data-theme="light"] .conversion-group {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

[data-theme="light"] .conversion-group label {
    color: #b7791f !important;
}

/* 内容头部修复 */
[data-theme="light"] .content-header p {
    color: var(--text-muted) !important;
}

/* 系统通知修复 */
[data-theme="light"] .system-notice span {
    color: var(--text-secondary) !important;
}

/* 材料标签修复 */
[data-theme="light"] .material-item label {
    color: var(--text-secondary) !important;
}

/* 各种硬编码白色容器背景修复 */
[data-theme="light"] .elemental-compact-section,
[data-theme="light"] .seal-halo-panel,
[data-theme="light"] .result-section,
[data-theme="light"] .module-card,
[data-theme="light"] .tower-config-section,
[data-theme="light"] .tower-results-section {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* 元素伤害行修复 */
[data-theme="light"] .elemental-row {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
}

/* 确保所有按钮组容器在浅色模式下有合适的背景 */
[data-theme="light"] .crafting-function-buttons,
[data-theme="light"] .damage-function-buttons {
    gap: 1rem;
}

/* 额外的按钮类型修复 */
[data-theme="light"] .btn,
[data-theme="light"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.calculate-erosion-btn) {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn:hover,
[data-theme="light"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.calculate-erosion-btn):hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 单选按钮修复 */
[data-theme="light"] .radio-option:not(.active) {
    color: var(--text-primary) !important;
}

/* 侵蚀类型按钮修复 */
[data-theme="light"] .erosion-type-btn:not(.active) {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .erosion-type-btn:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ============================================
   浅色主题按钮边框优化 - 最终版
   ============================================ */

/* 增强边框对比度，确保按钮边框清晰可见 */
[data-theme="light"] .btn,
[data-theme="light"] .function-btn,
[data-theme="light"] .toggle-btn,
[data-theme="light"] .seal-halo-tab,
[data-theme="light"] .radio-option,
[data-theme="light"] .erosion-type-btn,
[data-theme="light"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.calculate-erosion-btn) {
    border-width: 1.5px !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

/* 按钮悬停时边框更加明显 */
[data-theme="light"] .btn:hover,
[data-theme="light"] .function-btn:hover,
[data-theme="light"] .toggle-btn:hover,
[data-theme="light"] .seal-halo-tab:hover,
[data-theme="light"] .radio-option:hover,
[data-theme="light"] .erosion-type-btn:hover,
[data-theme="light"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.calculate-erosion-btn):hover {
    border-color: rgba(102, 126, 234, 0.45) !important;
}

/* 确保输入框边框清晰可见 */
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea,
[data-theme="light"] .base-select,
[data-theme="light"] .affix-select,
[data-theme="light"] .dream-select,
[data-theme="light"] .focus-select,
[data-theme="light"] .material-input,
[data-theme="light"] .number-input,
[data-theme="light"] .number-input-small,
[data-theme="light"] select.select-input {
    border-width: 1.5px !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

/* 输入框聚焦时边框更明显 */
[data-theme="light"] select:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .base-select:focus,
[data-theme="light"] .affix-select:focus,
[data-theme="light"] .dream-select:focus,
[data-theme="light"] .focus-select:focus,
[data-theme="light"] .material-input:focus,
[data-theme="light"] .number-input:focus,
[data-theme="light"] .number-input-small:focus,
[data-theme="light"] select.select-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18) !important;
}

/* 模块卡片边框增强 */
[data-theme="light"] .module-card,
[data-theme="light"] .result-section,
[data-theme="light"] .elemental-compact-section,
[data-theme="light"] .tower-config-section,
[data-theme="light"] .tower-results-section,
[data-theme="light"] .harvest-tier-card {
    border-width: 1.5px !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
}

/* 标签栏边框增强 */
[data-theme="light"] .seal-halo-tabs,
[data-theme="light"] .damage-type-toggle {
    border-width: 1.5px !important;
}

[data-theme="light"] .seal-halo-tabs {
    border-bottom-width: 2px !important;
    border-bottom-color: rgba(0, 0, 0, 0.14) !important;
}

/* 全局边框透明度优化 */
[data-theme="light"] {
    --border-color: rgba(0, 0, 0, 0.16) !important;
    --border-color-hover: rgba(0, 0, 0, 0.22) !important;
}

/* ============================================
   词缀分类文字修复 - 装备打造模块
   ============================================ */

[data-theme="light"] .affix-category h4,
[data-theme="light"] .affix-category h3,
[data-theme="light"] .affix-category h2,
[data-theme="light"] .affix-category h1 {
    color: var(--text-primary) !important;
    border-bottom-color: rgba(0, 0, 0, 0.14) !important;
}

[data-theme="light"] .affix-row label,
[data-theme="light"] .affix-row span,
[data-theme="light"] .affix-option label,
[data-theme="light"] .affix-option span {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .affix-grid,
[data-theme="light"] .material-grid {
    background: transparent !important;
}

[data-theme="light"] .radio-option input[type="radio"]:checked ~ span:last-child {
    color: var(--text-accent) !important;
}

/* 确保没有任何元素硬编码白色背景 */
[data-theme="light"] .module-card,
[data-theme="light"] .result-section,
[data-theme="light"] .elemental-compact-section,
[data-theme="light"] .tower-config-section,
[data-theme="light"] .tower-results-section,
[data-theme="light"] .harvest-tier-card,
[data-theme="light"] .seal-support-skills,
[data-theme="light"] .conversion-group,
[data-theme="light"] .affix-category,
[data-theme="light"] .seal-halo-panel {
    background: var(--bg-card) !important;
}



.calculate-erosion-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.calculate-erosion-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.erosion-cost-result {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-result-header h5 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cost-result-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-result-content .cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cost-result-content .cost-item label {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

.cost-result-content .cost-item span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.cost-result-content .total-expected-cost {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-color);
}

.cost-result-content .total-expected-cost span {
    color: var(--accent-color);
    font-size: 16px;
}

/* 侵蚀模拟响应式设计 */
@media (max-width: 1200px) {
    .erosion-main-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .erosion-container {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .erosion-buttons {
        grid-template-columns: 1fr;
    }
    
    .simulation-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-row {
        flex-direction: column;
    }
    
    .erosion-type-buttons {
        flex-direction: column;
    }
    
    .erosion-cost-calculation {
        padding: 15px;
    }
}

/* ==================== 追忆打造模块样式 ==================== */

.memory-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.memory-params-area,
.memory-calculate-area,
.memory-result-area {
    width: 100%;
}

.memory-params-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.memory-params-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}

.memory-params-row .form-group {
    display: flex;
    flex-direction: column;
}

.memory-params-row .form-group label {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.memory-params-row select,
.memory-params-row input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.memory-params-row select:focus,
.memory-params-row input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.memory-params-row select:disabled,
.memory-params-row input:disabled {
    background-color: #1a1a1a;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

#affix-search {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

#affix-search:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

#affix-search::placeholder {
    color: #888;
}

.result-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.result-item {
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.result-item label {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cost-breakdown {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.cost-breakdown span {
    color: var(--primary-color);
    font-weight: 600;
}

.total-cost {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.total-cost span {
    color: var(--accent-color);
    font-weight: 700;
}

.total-result {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
}

.total-result label {
    color: white;
    font-size: 16px;
}

.grand-total {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
}

.calculate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.reset-btn {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .memory-container {
        padding: 15px;
        gap: 15px;
    }
    
    .enhancement-grid,
    .reconstruction-grid,
    .price-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .calculate-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .calculate-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
    
    .grand-total {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .memory-container {
        padding: 10px;
    }
    
    .result-item {
        padding: 12px;
    }
    
    .grand-total {
        font-size: 18px;
    }
}

/* 收割档位结果显示样式 */
.harvest-result-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.harvest-tier-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.harvest-tier-card h5 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 16px;
    font-weight: 600;
}

.tier-details {
    font-size: 14px;
    line-height: 1.5;
}

.tier-details .tier-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-details .tier-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.tier-details .tier-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* 收割档位数据表样式 */
.harvest-data-section {
    margin-top: 30px;
}

.harvest-data-section h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

#harvest-tier-table {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#harvest-tier-table thead {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

#harvest-tier-table thead th {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border: none;
    font-size: 14px;
}

#harvest-tier-table tbody tr {
    transition: background-color 0.2s ease;
}

#harvest-tier-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.1);
}

#harvest-tier-table tbody td {
    text-align: center;
    padding: 10px 8px;
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

#harvest-tier-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* 深色模式下的收割档位样式 */
[data-theme="dark"] .harvest-tier-card {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #66BB6A;
}

[data-theme="dark"] .harvest-tier-card h5 {
    color: #66BB6A;
}

[data-theme="dark"] .harvest-data-section h4 {
    color: #66BB6A;
}

[data-theme="dark"] #harvest-tier-table thead {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
}

[data-theme="dark"] #harvest-tier-table tbody tr:hover {
    background: rgba(102, 187, 106, 0.15);
}

/* 收割档位查询区域样式调整 */
.harvest-query-section {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.harvest-query-section .form-group {
    flex: 1;
    margin-bottom: 0;
}

.harvest-query-section .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
}

.harvest-query-section .number-input,
.harvest-query-section .tower-select {
    width: 100%;
    height: 48px;
    padding: 0.75rem;
    font-size: 1rem;
    box-sizing: border-box;
}


        padding: 8px 12px;
        font-size: 12px;
    }
}

/* bilibili跳转链接样式 */
.bilibili-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    gap: 0.75rem;
}

.bilibili-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
}

.bilibili-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    text-decoration: none;
    color: white;
}

.bilibili-icon {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bilibili-icon:hover {
    transform: scale(3);
    z-index: 1000;
}

.bilibili-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: none;
}

/* 折叠状态下的bilibili链接样式 */
.sidebar.collapsed .bilibili-link-container {
    margin: 0.5rem;
    gap: 0;
}

.sidebar.collapsed .bilibili-link {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
}

.sidebar.collapsed .bilibili-icon {
    width: 40px;
    height: 40px;
}

.sidebar.collapsed .bilibili-text {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
    display: block;
}

/* ============================================
   材料价格管理器 - 输入验证样式
   ============================================ */

/* 输入框错误状态样式 */
.input-error {
    border: 2px solid #ff4757 !important;
    background-color: rgba(255, 71, 87, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15) !important;
    animation: inputErrorShake 0.4s ease-in-out;
}

@keyframes inputErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 深色主题下的错误状态 */
.dark-theme .input-error {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

/* 输入框成功状态（可选） */
.input-success {
    border: 2px solid #2ed573 !important;
    background-color: rgba(46, 213, 115, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.15) !important;
}

.dark-theme .input-success {
    border-color: #00d869 !important;
    background-color: rgba(0, 216, 105, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(0, 216, 105, 0.2) !important;
}
