/* Page decorations */
.tool-container {
    position: relative;
    overflow: hidden;
}

.sword-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #C0C0C0, #E0E0E0, #C0C0C0);
    border: 2px solid #808080;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    display: none; /* 在大屏幕上才显示 */
    border-radius: 4px;
}

.sword-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 60px;
    background: #654321;
    border-radius: 2px;
}

.shield-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 50px;
    background: linear-gradient(45deg, #8B4513, #A0522D, #8B4513);
    border: 2px solid #654321;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    display: none; /* 在大屏幕上才显示 */
    border-radius: 2px;
    animation: shield-glow 3s ease-in-out infinite alternate;
}

@keyframes shield-glow {
    from {
        box-shadow: 0 0 10px #A0522D;
    }
    to {
        box-shadow: 0 0 20px #A0522D, 0 0 30px #8B4513;
    }
}

/* CSS变量 - 与网站整体保持一致 */
:root {
    --minecraft-green: #44bd32;
    --minecraft-dark: #1D1C1A;
    --minecraft-gray: #666666;
    --minecraft-accent: #FF8C00;
    --minecraft-secondary: #3B8526;
    --minecraft-bg: #121212;
    --minecraft-panel: #1D1C1A;
    --minecraft-dirt: #8B4513;
    --minecraft-stone: #7D7D7D;
    --card-hover: rgba(59, 133, 38, 0.2);
    --minecraft-dark-green: #2F7D32;
    --minecraft-brown: #8B4513;
    --minecraft-dark-brown: #654321;
    --minecraft-light-gray: #CCCCCC;
    --minecraft-dark-gray: #2F2F2F;
    --minecraft-black: #1A1A1A;
    --minecraft-white: #FFFFFF;
    --minecraft-red: #E53E3E;
    --minecraft-blue: #3182CE;
    --minecraft-yellow: #D69E2E;
    --minecraft-border: #333;
}

/* Calculator Container */
.calculator-container {
    position: relative;
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.calculator-container:hover {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(68, 189, 50, 0.1);
    transform: translateY(-2px);
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.calculator-container h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Calculation Sections */
.calculation-section {
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 6px;
    position: relative;
    border-left: 4px solid #FF6B35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.section-description {
    color: #AAAAAA;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.4;
}

.calculation-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.advanced-section {
    border-left: 4px solid #4CAF50;
}

.advanced-section:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.calculation-section h3 {
    color: #E0E0E0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #E0E0E0;
    background-color: var(--minecraft-bg);
    background-image: 
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA7klEQVQ4y5WSPw4BURDGf28RnZWoXEDhBDo3UNFoFBSi0GkUWoXCCRQKrULjBK6gUAhfMpvZfX95yUt2Z+Z935/ZNdyd/6i+HJiZmdlURI5FLxSRjZktXsHMbAQcgWbRywM7YOCcu/8AmNkAOAFN4ApcgKFz7pQCmFkfOAMt4A7MnXPbDGA/ZVUVuAFj59wuBohsq8AZGDnnDjFAZFsFTsDQOXeMAaLYVoAzMHDOHWOAyLYKnIGec+4UA0S2VeAE9Jxz5xggGlsVOAJd59wlBohiq9g3b6fYZgBR2Srw/JxLLJsBRGWbA/xJL3LWdVl0AAAAAElFTkSuQmCC');
    background-repeat: repeat;
    background-size: 200px 200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 头部样式 - 与网站整体保持一致 */
header {
    background-color: var(--minecraft-panel);
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 0 var(--minecraft-secondary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 4px solid var(--minecraft-green);
    animation: header-slide-down 1s ease-out;
    margin-bottom: 2rem;
}

@keyframes header-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes title-bounce {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

header h1 {
    font-size: 3rem;
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    animation: title-bounce 0.5s ease-out;
}

.subtitle {
    color: var(--minecraft-gray);
    font-size: 1.1rem;
    animation: fade-in 1s ease-out;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.input-grid .calculate-btn {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 300px;
    width: 100%;
    margin-top: 1rem;
}

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

.input-group label {
    font-weight: bold;
    color: #E0E0E0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    font-family: 'Noto Sans Mono', monospace;
    border-radius: 2px;
    font-size: 1rem;
    height: 3rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group input:hover,
.input-group select:hover {
    border-color: var(--minecraft-green);
    background-color: rgba(0, 0, 0, 0.4);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.2);
}

.input-group small {
    color: #AAAAAA;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
    display: block;
}

/* Result Display */
.result-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 4px;
    margin-top: 1.5rem;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.result-display h4 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.damage-breakdown {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.damage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid var(--minecraft-secondary);
}

.damage-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--minecraft-green);
}

.total-damage {
    border: 2px solid var(--minecraft-green);
    background: rgba(68, 189, 50, 0.1);
    font-weight: bold;
    font-size: 1.1rem;
    border-left: 3px solid var(--minecraft-green);
}

.damage-label {
    color: #AAAAAA;
    font-weight: bold;
}

.damage-item span:not(.damage-label) {
    color: var(--minecraft-green);
    font-weight: bold;
    min-width: 120px;
    text-align: right;
}

.total-damage span:not(.damage-label) {
    color: #FFFFFF;
    font-size: 1.2rem;
}

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

/* Button Styles */
.calculate-btn {
    background: linear-gradient(135deg, var(--minecraft-green) 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'VT323', monospace;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #2d5a2d, 0 6px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #5cbf60 0%, var(--minecraft-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d5a2d, 0 8px 16px rgba(0, 0, 0, 0.4);
}

.calculate-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d5a2d, 0 4px 8px rgba(0, 0, 0, 0.3);
}

.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%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .damage-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .total-damage {
        font-size: 1rem;
    }
    
    .total-damage span:not(.damage-label) {
        font-size: 1.1rem;
    }
    
    .input-group label {
        font-size: 0.85rem;
        min-height: 2rem;
    }
    
    .input-group input,
    .input-group select {
        height: 2.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .calculator-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .damage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .damage-item span:not(.damage-label) {
        min-width: auto;
        text-align: left;
    }
}





/* 结果区域 - Minecraft风格 */
.results-section {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-green);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.results-section.show {
    opacity: 1;
    transform: translateY(0);
}

.results-section h3 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'VT323', monospace;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    border-left: 4px solid var(--minecraft-accent);
    transition: all 0.2s ease;
    border-radius: 2px;
}

.result-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--minecraft-green);
}

.result-item.total-damage {
    grid-column: 1 / -1;
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #e74c3c;
}

.result-label {
    color: var(--minecraft-gray);
    font-weight: 500;
    font-family: 'Noto Sans Mono', monospace;
}

.result-value {
    color: var(--minecraft-green);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-family: 'VT323', monospace;
}

.total-damage .result-value {
    color: #e74c3c;
    font-size: 1.3rem;
}

/* 信息区域 - 与网站风格保持一致 */
.info-section {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--minecraft-secondary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.info-section:hover {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(68, 189, 50, 0.1);
    transform: translateY(-2px);
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.info-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--minecraft-green);
    padding-bottom: 0.5rem;
    font-family: inherit;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    text-align: center;
}

.info-section h3 {
    color: var(--minecraft-green);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.info-content p {
    margin-bottom: 0.75rem;
    color: #E0E0E0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.info-content ul {
    margin: 1rem 0;
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.info-content li {
    margin-bottom: 0.5rem;
    color: #E0E0E0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.formula {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--minecraft-accent);
    font-family: 'Noto Sans Mono', monospace;
    text-align: center;
    border: 1px solid var(--minecraft-secondary);
    color: #E0E0E0;
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

/* 武器表格和示例部分 - 与网站风格保持一致 */
.examples-section {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.examples-section:hover {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(68, 189, 50, 0.1);
    transform: translateY(-2px);
}

.examples-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.examples-section h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--minecraft-green);
    padding-bottom: 0.5rem;
    font-family: inherit;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    text-align: center;
}

.examples-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.examples-table table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    border-radius: 2px;
    overflow: hidden;
    font-family: 'Noto Sans Mono', monospace;
}

.examples-table th {
    background: linear-gradient(135deg, var(--minecraft-green) 0%, #45a049 100%);
    color: white;
    font-weight: bold;
    padding: 15px 12px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

.examples-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.examples-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.examples-table tr:hover {
    background: rgba(68, 189, 50, 0.1);
    transform: scale(1.02);
}

.examples-table tr:hover td {
    color: var(--minecraft-green);
    text-shadow: 0 0 5px rgba(68, 189, 50, 0.5);
}

.examples-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

.examples-table tbody tr:last-child td {
    border-bottom: none;
}

/* 特殊样式用于武器类型列 */
.examples-table td:first-child {
    font-weight: bold;
    color: var(--minecraft-accent);
    background: rgba(0, 0, 0, 0.2);
}

/* 伤害值高亮 */
.examples-table td:last-child {
    font-weight: bold;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .sword-decoration,
    .shield-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .calculation-section {
        padding: 1.5rem;
    }
    
    .sword-decoration,
    .shield-decoration {
        display: none;
    }
    
    .examples-table {
        font-size: 0.8rem;
    }
    
    .examples-table th,
    .examples-table td {
        padding: 8px 6px;
    }
    
    .examples-table th {
        font-size: 0.9rem;
    }
    
    .examples-section {
        padding: 1.5rem;
    }
    
    .examples-section h2 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .formula {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 1rem;
    }
    
    .calculation-section {
        padding: 1rem;
    }
    
    .calculate-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .examples-section {
        padding: 1rem;
    }
    
    .examples-table {
        font-size: 0.7rem;
    }
    
    .examples-table th,
    .examples-table td {
        padding: 6px 4px;
    }
    
    .examples-table th {
        font-size: 0.8rem;
    }
    
    .examples-section h2 {
        font-size: 1.2rem;
    }
    
    /* 在小屏幕上使表格可水平滚动 */
    .examples-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .examples-table table {
        min-width: 600px;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-card h3::before {
        width: 16px;
        height: 16px;
    }
    
    .formula {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .formula strong {
        font-size: 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .weapon-table {
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-container,
.info-section {
    animation: fadeInUp 0.6s ease-out;
}



/* Information Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Information Cards - 与网站风格保持一致 */
.info-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    padding: 2rem;
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--minecraft-green) 0%, var(--minecraft-accent) 50%, #e74c3c 100%);
    z-index: 1;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(68, 189, 50, 0.1);
    border-color: var(--minecraft-green);
}

.info-card h3 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: inherit;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--minecraft-green);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.info-card p {
    color: #E0E0E0;
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.info-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    z-index: 2;
}

.info-card li {
    color: #E0E0E0;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    position: relative;
    transition: color 0.2s ease;
}

.info-card li::marker {
    color: var(--minecraft-green);
}

.info-card:hover li {
    color: #F0F0F0;
}

/* Enhanced Formula Styling - 与网站风格保持一致 */
.formula {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.8) 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid var(--minecraft-accent);
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    text-align: center;
    color: #FFD700;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.formula:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(255, 215, 0, 0.2),
                0 0 20px rgba(255, 215, 0, 0.1);
}

.formula strong {
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

/* Special styling for different card types */
.info-card:nth-child(1)::after {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%); /* Base Damage - Red */
}

.info-card:nth-child(2)::after {
    background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 100%); /* Enchantments - Purple */
}

.info-card:nth-child(3)::after {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%); /* Status Effects - Orange */
}

.info-card:nth-child(4)::after {
    background: linear-gradient(180deg, var(--minecraft-green) 0%, #27ae60 100%); /* Critical & Cooldown - Green */
}

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

::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 1);
}