.material-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
}

.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    color: #fff;
}

.calc-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
}

.calc-section {
    display: none;
}

.calc-section.active {
    display: block;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

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

.input-item label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-item input {
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-item input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.input-item select {
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.input-item select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
}

.calc-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.calc-btn:hover {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.result-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.result-card.highlight {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}

.result-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
    display: block;
}

.result-card.highlight .result-value {
    color: #6366f1;
    font-size: 28px;
}

.result-unit {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 4px;
}

.tips-box {
    margin-top: 24px;
    background: #fef3c7;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #fde68a;
}

.tips-title {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
}

.tips-list li {
    font-size: 14px;
    color: #b45309;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .material-page {
        padding: 16px;
    }

    .calc-tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: center;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-wrap: wrap;
    }
}