* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', Arial, sans-serif;
}

body {
    background: #fff;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

/* 原.header → .site-head-wrap */
.site-head-wrap {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999;
}

/* 原.header-top → .head-top-row */
.head-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

/* 原.octive → .active-link */
.active-link {
    background: #2896F0;
    padding: 6px 10px;
    border-radius: 5px;
}

/* 原.menu-btn → .pop-menu-trigger；原#menuBtn → #popMenuSwitch */
.pop-menu-trigger {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    display: none;
}

/* 原.menu-btn span → .line-bar */
.line-bar {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* 原.header-title → .page-main-title */
.page-main-title {
    font-size: 22px;
    color: #333;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

/* 原.nav-bar → .nav-container */
.nav-container {
    background: #2175d9;
    padding: 14.5px 20px;
}

/* 原.nav-list → .nav-ul-items */
.nav-ul-items {
    list-style: none;
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    max-width: 939.9px;
    margin: 0 auto;
}

.nav-ul-items li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 10px;
}

.nav-ul-items li a:hover {
    background: #2896F0;
    padding: 6px 10px;
    border-radius: 5px;
}

/* 原.container → .page-wrap */
.page-wrap {
    width: 1000px;
    margin: 0 auto;
    padding: 30px;
}

/* 原.input-group → .input-box-wrap */
.input-box-wrap {
    margin-bottom: 20px;
}

/* 原.label-with-options → .label-select-row */
.label-select-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

textarea {
    width: 100%;
    height: 203px;
    min-height: 100px;
    max-height: 500px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 28px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

textarea::placeholder {
    font-size: 16px;
    color: #999;
    opacity: 1;
    line-height: 1.5;
}

/* 原.btn-group → .btn-row-group */
.btn-row-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 原.btn-primary → .btn-main-style */
.btn-main-style {
    background: #4361ee;
    color: white;
}

.btn-main-style:hover {
    background: #3a56d4;
}

/* 原.btn-secondary → .btn-sub-style */
.btn-sub-style {
    background: #f8f9fa;
    color: #333;
}

.btn-sub-style:hover {
    background: #e9ecef;
}

/* 原.result-group → .result-container-wrap；原#result-group → #result-main-box */
.result-container-wrap {
    background: #f8f9fa;
    padding: 1px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.result-container-wrap.show {
    display: block;
}

/* 原.result-table-wrapper → .table-scroll-outer */
.table-scroll-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 原.result-table → .data-table-style；原#number-result-table → #calc-result-table-dom */
.data-table-style {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    min-width: 600px;
}

.data-table-style th, .data-table-style td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table-style th {
    background: #f9f9fa;
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.data-table-style th:nth-child(1), .data-table-style td:nth-child(1) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table-style th:nth-child(2), .data-table-style td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table-style th:nth-child(3), .data-table-style td:nth-child(3) {
    text-align: center;
}

/* 原.amount-text → .origin-input-text */
.origin-input-text {
    font-size: 20px;
    color: #333;
}
/* 原.capital-text → .capital-out-text */
.capital-out-text {
    font-size: 26px;
    color: #222;
}
.error-text {
    color: #dc3545;
    font-weight: 600;
}

/* 原.copy-btn → .copy-action-btn-dom */
.copy-action-btn-dom {
    padding: 8px 12px;
    font-size: 14px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-action-btn-dom:hover {
    background: #3a56d4;
}

.copy-action-btn-dom.error {
    background: #dc3545;
    cursor: not-allowed;
}

.copy-action-btn-dom.error:hover {
    background: #dc3545;
    transform: none;
}

/* 原.unit-options → .unit-select-group */
.unit-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

/* 原.unit-option → .radio-item */
.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #4361ee;
    display: none;
}

/* 原.radio-custom → .radio-mark */
.radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid #4361ee;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

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

.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    margin-left: 5px;
}

/* 原.map-table-group → .ref-table-wrap-dom */
.ref-table-wrap-dom {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 原.map-table-title → .ref-table-head-text */
.ref-table-head-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
}

/* 原.char-grid → .grid-row-dom */
.grid-row-dom {
    display: flex;
    flex-wrap: wrap;
    gap: 110px;
    margin-bottom: 30px;
    margin-left: 30px;
    justify-content: flex-start;
}

/* 原.char-box → .grid-card-dom */
.grid-card-dom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

/* 原.char-big → .big-word-dom */
.big-word-dom {
    width: 130px;
    height: 130px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 500;
    margin-bottom: 8px;
    background: #fff;
}

/* 原.char-small → .small-word-dom */
.small-word-dom {
    font-size: 26px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 原.char-red → .red-font-mark */
.red-font-mark {
    color: #d32f2f;
    font-weight: 600;
    font-size: 26px;
}

/* 原.map-subtitle → .ref-subtitle-text */
.ref-subtitle-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* 原.common-amount-table → .demo-data-table-dom */
.demo-data-table-dom {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.demo-data-table-dom th,
.demo-data-table-dom td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.demo-data-table-dom th {
    background: #f9f9fa;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.demo-data-table-dom td {
    font-size: 15px;
    color: #555;
}

.demo-data-table-dom td:nth-child(2) {
    color: #2175d9;
    font-weight: 500;
}

.demo-data-table-dom tr:last-child td {
    border-bottom: none;
}

/* 原.knowledge-section → .article-info-block */
.article-info-block {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 原.knowledge-title → .article-title-text */
.article-title-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 原.knowledge-content → .article-content-text */
.article-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.article-content-text p {
    margin-bottom: 10px;
}

.article-content-text ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.article-content-text li {
    margin-bottom: 8px;
}

/* 原.history-conversion-section → .history-log-block-wrap */
.history-log-block-wrap {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.history-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 原.history-numbers → .log-text-display；原#history-numbers-container → #history-log-box */
.log-text-display {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    word-wrap: break-word;
    white-space: normal;
}

/* 原.history-number-link → .log-href-item-dom */
.log-href-item-dom {
    color: #2175d9;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.log-href-item-dom:hover {
    color: #ff0000;
    text-decoration: none;
}

.auto-convert-tip {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2175d9;
}

.auto-convert-tip h3 {
    font-size: 18px;
    color: #1756b8;
    margin-bottom: 10px;
}

.auto-convert-tip p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.auto-convert-result {
    color: #d32f2f;
    font-weight: 600;
    font-size: 18px;
}

/* 原.footer → .copyright-footer-dom */
.copyright-footer-dom {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    margin-top: 30px;
}
.copyright-footer-dom a {
    color: #666;
    text-decoration: none;
}
.copyright-footer-dom a:hover {
    color: #ff0000;
}

/* 原.copy-success → .copy-pop-tip；原#copy-alert → #copy-tip-pop */
.copy-pop-tip {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.copy-pop-tip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 原.mobile-menu → .slide-mobile-nav；原#mobileMenu → #slideMobileNav */
.slide-mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    padding-top: 70px;
    transition: left 0.3s ease;
    z-index: 9999;
}

.slide-mobile-nav.active {
    left: 0;
}

/* 原.mobile-nav-list → .mobile-nav-ul */
.mobile-nav-ul {
    list-style: none;
    padding: 0 20px;
}

.mobile-nav-ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-ul li a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

/* 原.overlay → .mask-bg；原#overlay → #mask-bg */
.mask-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mask-bg.active {
    opacity: 1;
    visibility: visible;
}

/* 原.back-to-top → .scroll-top-btn-dom；原#backToTop → #scroll-top-btn */
.scroll-top-btn-dom {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4361ee;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-top-btn-dom.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn-dom:hover {
    background: #3a56d4;
}

/* 媒体查询 全部同步替换选择器 */
@media (max-width: 1024px) {
    .page-wrap {
        width: 100%;
        padding: 20px;
    }

    .pop-menu-trigger {
        display: flex;
    }

    .nav-container {
        display: none;
    }
    
    .data-table-style th, .data-table-style td {
        padding: 12px;
    }
    
    .label-select-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    textarea {
        font-size: 22px;
        line-height: 1.5;
    }
    
    textarea::placeholder {
        font-size: 16px;
    }
    
    .origin-input-text, .capital-out-text {
        font-size: 18px;
    }
    
    .copy-action-btn-dom {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .copy-pop-tip {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .grid-row-dom {
        gap: 15px;
    }
    
    .grid-card-dom {
        width: 60px;
    }
    
    .big-word-dom {
        width: 55px;
        height: 55px;
        font-size: 32px;
    }
    
    .small-word-dom {
        font-size: 14px;
    }
    
    .red-font-mark {
        font-size: 16px;
    }
    
    .article-content-text {
        font-size: 14px;
    }

    .demo-data-table-dom th,
    .demo-data-table-dom td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .scroll-top-btn-dom {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .history-log-block-wrap {
        padding: 15px;
    }
    
    .history-title {
        font-size: 16px;
    }
    
    .log-text-display {
        font-size: 14px;
    }
    
    .auto-convert-tip {
        padding: 12px;
    }
    
    .auto-convert-tip h3 {
        font-size: 16px;
    }
    
    .auto-convert-tip p {
        font-size: 14px;
    }
    
    .auto-convert-result {
        font-size: 16px;
    }
}

.calc-title-block{
    display: none;
}
h1 {
    font-size: 36px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}
h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}