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

html {
    font-size: 16px;
    -webkit-text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #334155;
    background: #f0f4f8;
    background-image: radial-gradient(at 20% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                      radial-gradient(at 80% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4f46e5;
}

ul, ol, li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e293b;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

img {
    max-width: 100%;
    vertical-align: middle;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

.hide { display: none; }
.fl { float: left; }
.fr { float: right; }
.clear { clear: both; }

.header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.header .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header .logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header .logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.calculator {
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.ui-bar {
    display: none;
}

.switch-tabs {
    padding: 0;
    margin-bottom: 24px;
}

.switch-tabs ul {
    display: flex;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    height: auto;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.big-switch-tabs ul {
    height: auto;
}

.switch-tabs li {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border: none;
    position: relative;
    user-select: none;
}

.switch-tabs li:hover {
    color: #4f46e5;
}

.switch-tabs .select-tab {
    background: #fff;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2), 0 1px 2px rgba(0,0,0,0.06);
}

.switch-tabs .normal-tab {
    background: transparent;
}

.switch-tabs li a {
    color: inherit;
    font-size: inherit;
    display: block;
}

.switch-tabs .select-tab a {
    color: #4f46e5;
    font-weight: 600;
}

.input-fields {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.input-fields ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-wrap {
    display: flex;
    align-items: center;
    min-height: auto;
    gap: 12px;
    padding: 4px 0;
}

.field-wrap > label {
    display: flex;
    align-items: center;
    width: 90px;
    min-width: 90px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    flex-shrink: 0;
}

.field-wrap .field {
    flex: 1;
    min-width: 0;
}

.field-wrap .long-field {
    flex: 1.5;
}

.field-wrap .short-field {
    flex: 1;
    margin-left: 8px;
}

.field-wrap .mid-field {
    flex: 1;
}

.field .ui-text {
    position: relative;
    width: 100%;
    margin: 0;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    height: auto;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.field .ui-text:focus-within {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.field .ui-text input {
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 0 50px 0 14px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    -webkit-appearance: none;
}

.field .ui-text input::-webkit-input-placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.field .ui-text[data-tail]::after {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    content: attr(data-tail);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

.field .rate-text input {
    text-indent: 0;
    padding-left: 14px;
}

.field .rate-text::before {
    display: none;
}

.ui-select {
    position: relative;
    width: 100%;
}

.ui-select .value-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 36px 0 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select:hover .value-bar {
    border-color: #c7d2fe;
}

.ui-select .value-bar .text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select .value-bar .tail-icon,
.ui-select .value-bar .icon-sps {
    display: none;
}

.ui-select .value-bar::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    pointer-events: none;
    transition: border-top-color 0.2s ease;
}

.ui-select:hover .value-bar::after {
    border-top-color: #6366f1;
}

.ui-select select {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer;
    -webkit-appearance: none;
    font-size: 1rem;
}

.field .repay-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
    height: 42px;
}

.field .repay-method:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.field .repay-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
    flex-shrink: 0;
}

.calbtn-wrap {
    margin-top: 24px;
    padding: 0 20px;
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    font-weight: 600;
}

.ui-btn[skin~="blue"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.ui-btn[skin~="blue"]:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.ui-btn[skin~="blue"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.ui-btn[skin~="full"] {
    width: 100%;
    height: 52px;
    line-height: 52px;
    font-size: 1.1rem;
}

.ui-btn[skin~="mini"] {
    width: auto;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    font-size: 0.85rem;
}

.ui-btn[skin~="back"] {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    padding: 0 14px;
    height: 32px;
    line-height: 32px;
    font-size: 0.85rem;
    left: 0;
    border: 1px solid rgba(255,255,255,0.25);
}

.ui-btn[skin~="back"]:hover {
    background: rgba(255,255,255,0.25);
}

.ui-btn[skin~="back"]::before,
.ui-btn[skin~="back"]::after {
    display: none;
}

.use-help {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.use-help p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.8;
}

.mod-tit p {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 8px;
    position: relative;
}

.mod-tit p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.ui-list {
    display: block;
}

.ui-list .list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.ui-list .list-item:hover {
    background: #f8faff;
    border-color: #e0e7ff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
    transform: translateX(2px);
}

.ui-list .list-item .detail {
    flex: 1;
    min-width: 0;
}

.ui-list .list-item .detail .atc-title {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.ui-list .list-item i,
.ui-list .list-item [data-icon] {
    display: none;
}

.calc-result {
    padding-bottom: 20px;
}

.calc-result .switch-tabs {
    margin-top: 16px;
}

.result-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.result-list li {
    padding: 0 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    min-height: 52px;
    transition: background 0.15s ease;
}

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

.result-list li:hover {
    background: #f8faff;
}

.result-list .group-tit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 20px;
    min-height: auto;
}

.result-list li .item-name {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    width: 50%;
    float: none;
    line-height: 1.5;
}

.result-list li .item-value {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
    text-align: right;
    flex: 1;
    float: none;
    line-height: 1.5;
    padding-right: 0;
    font-variant-numeric: tabular-nums;
}

.result-list li p {
    clear: both;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    position: static;
    margin-top: 2px;
}

.data-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.data-container .group-tit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 20px;
    line-height: 1.5;
    height: auto;
    border-bottom: none;
}

.data-container div.group-tit {
    border-bottom: none;
    padding: 14px 20px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.data-table tbody tr td {
    padding: 10px 8px;
    font-size: 0.82rem;
    color: #475569;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover td {
    background: #f8faff;
}

.table-striped > tbody > tr:nth-child(odd) > td {
    color: #475569;
    background-color: transparent;
}

.table-striped > tbody > tr:nth-child(even) > td {
    color: #475569;
    background-color: #f8fafc;
}

.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid #f1f5f9;
    overflow: hidden;
}

.view-more:hover {
    background: #f8faff;
}

.view-more .detail {
    flex: 1;
    text-align: center;
}

.view-more .detail .txt {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6366f1;
    line-height: 1.5;
}

.view-more i,
.view-more [data-icon] {
    display: none;
}

.view-less {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid #f1f5f9;
    overflow: hidden;
    margin-top: 8px;
}

.view-less:hover {
    background: #f8faff;
}

.view-less .detail {
    flex: 1;
    text-align: center;
}

.view-less .detail .txt {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6366f1;
    line-height: 1.5;
}

.view-less i,
.view-less [data-icon] {
    display: none;
}

.recal-btn {
    margin-top: 20px;
    padding: 0;
}

.page-grid {
    max-width: 1264px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.header .header-container {
    max-width: 1264px;
    padding: 0 16px;
}

.page-grid > .calculator {
    grid-column: 1;
    grid-row: 1;
}

.page-grid > .guide-content {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
}

.page-grid > .side {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: -20px;
    position: sticky;
    top: 20px;
}

.side {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.side .title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
}

.side .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.side .links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side .links a {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.side .links a:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.side-block + .side-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.side .side-articles {
    display: flex;
    flex-direction: column;
}

.side .side-articles a {
    display: block;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.65;
    color: #475569;
    transition: all 0.2s ease;
}

.side .side-articles a:hover {
    background: #f8fafc;
    border-left-color: #6366f1;
    color: #4f46e5;
}

@media (max-width: 900px) {
    .page-grid {
        display: block;
    }

    .page-grid > .side {
        position: static;
        margin-top: 24px;
    }
}

.footer {
    text-align: center;
    padding: 32px 16px;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.82rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.footer a {
    color: #6366f1;
    font-weight: 500;
}

.footer a:hover {
    color: #4f46e5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.footer-note {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 10px;
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.78rem;
    margin: 0;
}

.guide-content {
    max-width: 100%;
    margin: 24px 0;
    padding: 32px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.guide-content h1 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #6366f1, #8b5cf6) 1;
}

.guide-content h2 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid #6366f1;
}

.guide-content h3 {
    font-size: 1rem;
    color: #334155;
    margin-top: 22px;
    margin-bottom: 10px;
}

.guide-content p,
.guide-content li {
    line-height: 1.9;
    color: #475569;
    font-size: 0.95rem;
}

.guide-content p {
    margin-bottom: 14px;
}

.guide-content ul,
.guide-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.guide-content ul li,
.guide-content ol li {
    margin-bottom: 8px;
}

.guide-content strong {
    color: #1e293b;
}

.guide-content em {
    display: block;
    background: #f8fafc;
    padding: 14px 16px;
    margin: 14px 0;
    border-left: 4px solid #6366f1;
    border-radius: 0 8px 8px 0;
    font-style: normal;
    color: #475569;
    line-height: 1.8;
}

.guide-content a {
    color: #4f46e5;
    font-weight: 600;
}

.comparison-table {
    margin: 20px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.comparison-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.article-meta {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.related-articles {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.related-articles .related-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.related-articles a {
    display: block;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-articles a:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.disclaimer {
    margin-top: 28px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.8;
}

.disclaimer p {
    margin: 0;
}

[wrap~="h5"] { padding-left: 5px; padding-right: 5px; }
[wrap~="h10"] { padding-left: 10px; padding-right: 10px; }
[wrap~="h15"] { padding-left: 15px; padding-right: 15px; }
[wrap~="h20"] { padding-left: 20px; padding-right: 20px; }
[wrap~="v5"] { padding-top: 5px; padding-bottom: 5px; }
[wrap~="v10"] { padding-top: 10px; padding-bottom: 10px; }
[wrap~="v15"] { padding-top: 15px; padding-bottom: 15px; }
[wrap~="v20"] { padding-top: 20px; padding-bottom: 20px; }
[wrap~="v30"] { padding-top: 30px; padding-bottom: 30px; }
[wrap~="r5"] { margin-right: 5px; }
[wrap~="r10"] { margin-right: 10px; }
[wrap~="l5"] { margin-left: 5px; }
[wrap~="l10"] { margin-left: 10px; }
[wrap~="l15"] { margin-left: 15px; }
[wrap~="l20"] { margin-left: 20px; }
[wrap~="l50"] { margin-left: 50px; }
[wrap~="t5"] { margin-top: 5px; }
[wrap~="t10"] { margin-top: 10px; }
[wrap~="t15"] { margin-top: 15px; }
[wrap~="b5"] { margin-bottom: 5px; }
[wrap~="b10"] { margin-bottom: 10px; }
[wrap~="b15"] { margin-bottom: 15px; }
[wrap~="b20"] { margin-bottom: 20px; }
[wrap~="hide"] { display: none; }

[view] {
    width: 100%;
    overflow: auto;
    position: relative;
    display: none;
}

[view]:first-child {
    display: block;
}

[data-icon]::after,
[data-icon]::before,
[skin*="i-"]::after,
[skin*="i-"]::before,
i {
    position: relative;
    vertical-align: middle;
    display: inline-block;
}

[data-icon=">"]::after {
    display: none;
}

.wid2 { padding: 0; }
.mtop5 { margin-top: 5px; }
.mtop10 { margin-top: 10px; }

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

.calculator > div[view="calc_input"],
.calculator > div[view="calc_result"] {
    animation: fadeIn 0.4s ease;
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 16px 0;
    }

    .header .logo img {
        height: 36px;
    }

    .switch-tabs ul {
        border-radius: 10px;
    }

    .switch-tabs li {
        padding: 8px 4px;
        font-size: 0.78rem;
    }

    .input-fields {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .field-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .field-wrap > label {
        width: 100%;
        min-width: auto;
        font-size: 0.82rem;
        margin-bottom: -2px;
    }

    .field-wrap .field {
        width: 100%;
    }

    .field-wrap .long-field,
    .field-wrap .short-field,
    .field-wrap .mid-field {
        margin-left: 0;
    }

    .result-list li {
        padding: 0 14px;
        min-height: 48px;
    }

    .result-list li .item-name {
        font-size: 0.82rem;
    }

    .result-list li .item-value {
        font-size: 0.95rem;
    }

    .data-table thead tr th {
        font-size: 0.72rem;
        padding: 10px 4px;
    }

    .data-table tbody tr td {
        font-size: 0.75rem;
        padding: 8px 4px;
    }

    .ui-btn[skin~="full"] {
        height: 48px;
        line-height: 48px;
    }
}