* {
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    padding: 0;
    margin: 0;
}

html, body { width: 100%; }

body {
    background: #2c3e50;
    font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: 20px;
}

a { text-decoration: none; }
a:hover, a:focus { text-shadow: 0 1px 1px #555; }

.web-title {
    color: #fff;
    margin: 25px 0 30px 0;
}
.web-title h1 { font-size: 28px; }
.web-title p { font-size: 14px; color: #e7e7e7; margin-top: 5px; }

.main-footer, .main-footer a { color: #fff; }
.main-footer .row a { padding-left: 10px; }
.main-footer .row { margin-bottom: 50px; }
.copyright { margin-bottom: 10px; }

@media (min-width: 770px) { .navbar-brand { display: none; } }
@media (max-width: 770px) {
    .web-title { display: none; }
    .nav-main { padding: 0; }
}

.panel { margin-top: 20px; }
.panel-heading { font-weight: 700; font-size: 16px; }

.calc-form label {
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}
.calc-form .form-control {
    font-size: 15px;
    height: 42px;
    border-radius: 4px;
}
.calc-form .input-group-addon {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
    font-weight: 600;
}
.calc-form .btn-calc {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 4px;
    width: 100%;
}
.calc-form .btn-calc:hover {
    background: #34495e;
    border-color: #34495e;
}

.result-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 100px;
}
.result-card .result-number {
    font-size: 28px;
    font-weight: 700;
    color: #f1c40f;
    display: block;
    line-height: 1.3;
    word-break: break-all;
}
.result-card .result-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
    display: block;
}
.result-card.highlight .result-number { color: #2ecc71; }
.result-card.subtle .result-number { color: #ecf0f1; }

.result-detail {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}
.result-detail table { margin-bottom: 0; }
.result-detail td { border-top: 1px solid #e9ecef !important; padding: 10px 8px !important; font-size: 14px; }
.result-detail td:first-child { color: #555; font-weight: 600; }
.result-detail td:last-child { color: #2c3e50; font-weight: 700; text-align: right; }

.desc-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 25px 0 10px;
    border-left: 4px solid #2c3e50;
    padding-left: 12px;
}
.desc-section h4 {
    font-size: 15px;
    color: #333;
    margin: 15px 0 8px;
}
.desc-section p, .desc-section li {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}
.desc-section ul { padding-left: 20px; }
.desc-section li { margin-bottom: 5px; }
.desc-section blockquote {
    border-left: 3px solid #2c3e50;
    padding: 10px 18px;
    margin: 12px 0;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}
.desc-section .alert-info {
    background: #f0f4f8;
    border-color: #2c3e50;
    color: #2c3e50;
    font-size: 14px;
    border-radius: 4px;
}
.desc-section .alert-info strong { color: #2c3e50; }

#compoundingGroup { display: none; }

.switch-container {
    margin-top: 15px;
    text-align: center;
}
.switch-container .btn-group .btn {
    font-size: 13px;
    padding: 6px 16px;
}
.switch-container .btn-group .btn.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    box-shadow: none;
}
.switch-container .btn-group .btn:not(.active) {
    background: #fff;
    border-color: #ddd;
    color: #555;
}

@media (max-width: 768px) {
    .result-card { min-height: 80px; padding: 14px 10px; }
    .result-card .result-number { font-size: 22px; }
}

@media (max-width: 480px) {
    .result-card .result-number { font-size: 18px; }
}

.btn-reset {
    background: #95a5a6;
    border-color: #95a5a6;
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 4px;
    width: 100%;
}
.btn-reset:hover {
    background: #7f8c8d;
    border-color: #7f8c8d;
    color: #fff;
}
