
body {
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    background-image: url(./background.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    overflow-y: auto;
}


/* 标题上方LOGO样式 */
.title-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.title-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
    flex-shrink: 0;
}

.containerss-title{
    margin-top: 0;
    padding: 0;
    font-size: 32px;
    font-weight: 600;
    color: white;
    text-align: center;
    width: 100%;
}

/* Tab导航样式 */
.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 80px;
    padding: 0 180px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    background: transparent;
    z-index: 1;
}

.tab-btn {
    padding: 15px 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #cccccc;
    cursor: pointer;
    font-size: 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    text-align: center;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1772F6 0%, #0c6eff 100%);
    border-radius: 2px 2px 0 0;
}

.tab-btn:hover:not(.active) {
    color: #e0e0e0;
}

.tab-content {
    width: 100%;
}


.header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 45px 60px;
    position: relative;
    width: 100%;
    background-color: transparent;
    box-sizing: border-box;
}


.header img{
    width: 187px;
    display: block;
}
.header-text{
    margin-left: 0;
    font-size: 18px;
    position: relative;
    top: 3px;
    font-weight: bold;
}

.header-text a {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header-text a:hover {
    background: transparent;
    color: #f0f0f0;
    box-shadow: none;
    transform: none;
}
.container {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
}
.containers{
    width: 100%;
    min-height: 100%;
}
::-webkit-scrollbar { /* 滚动条整体样式 */
width: 4px;     /* 高宽分别对应横竖滚动条的尺寸 */
height: 4px;
}
::-webkit-scrollbar-thumb { /* 滚动条里面小方块 */
border-radius: 5px;
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background: rgba(0,0,0,0.2);
}
::-webkit-scrollbar-track { /* 滚动条里面轨道 */
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0);
box-shadow: inset 0 0 5px rgba(0,0,0,0);
border-radius: 0;
background: rgba(0,0,0,0);
}
.containerss{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px 0 25px;
}
.platforms-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}
table {
    border-collapse: collapse;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 180px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
th, td {
    border: 1px solid #ffffff;
    padding: 10px 10px;
    text-align: center;
}
.month-header2{
    font-size: 14px;
    text-align: center;
    background-color: #1772F6;
    color: white;
}
th.month-header {
    width: 60px;
    min-width: 30px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}
/* 表头样式 - 蓝色背景 */
tr:nth-of-type(1) th{
    background-color: #1772F6 !important;
    color: white !important;
}

/* 表格内容行 - 白灰色斑马纹，整行颜色一致 */
tr:nth-of-type(even) td,
tr:nth-of-type(even) th:not(.month-header2){
    background-color: #f8f9fa;
}
tr:nth-of-type(odd) td,
tr:nth-of-type(odd) th:not(.month-header2){
    background-color: white;
}
input {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    padding: 0 10px;
    -moz-appearance: textfield;
    box-sizing: border-box;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    border: 1px solid #DCE0E7;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}
/* 添加平台按钮容器 */
.add-platform-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 180px;
}

.btn-group {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 180px;
    margin-bottom: 20px;
}

.calc-reset-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.reset-btn, .calc-btn {
    border: 1px solid #1772F6;
    border-radius: 25px; /* 椭圆形 */
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.add-btn {
    border: 1px solid #1772F6;
    border-radius: 8px; /* 矩形带圆角 */
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.reset-btn {
    background-color: #ffffff;
    color: #1772F6;
    border: 1px solid #1772F6;
}

.reset-btn:hover {
    background-color: #f0f7ff;
    border-color: #1772F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23,114,246,0.2);
}

.add-btn {
    background-color: #ffffff;
    color: #1772F6;
}

.add-btn:hover {
    background-color: #f0f7ff;
    border-color: #1772F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23,114,246,0.2);
}

.calc-btn {
    background: #233A71;
    color: #ffffff;
    border: 1px solid #233A71;
}

.calc-btn:hover {
    background: linear-gradient(180deg, rgba(12,110,255,1) 0%, rgba(23,114,246,0.9) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23,114,246,0.3);
}
.platform-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 180px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    background-color: transparent;
    margin-bottom: 20px;
    box-shadow: none;
}

.platform-title {
    font-size: 18px;
    font-weight: 600;
    color: #1772F6;
    margin-bottom: 20px;
    text-align: center;
}

.month-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.month-input-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.month-input-row:hover {
    border-color: #1772F6;
    background: rgba(23, 114, 246, 0.05);
}

.month-input-row .month-label {
    color: #666;
    font-weight: 500;
    min-width: 60px;
    font-size: 14px;
}

.month-input-row .month-select {
    min-width: 120px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #DCE0E7;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
}

.month-input-row .income-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.month-input-row .income-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #DCE0E7;
    border-radius: 8px;
    font-size: 14px;
}

.month-input-row .remove-month-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.month-input-row .remove-month-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.add-month-container {
    text-align: center;
    margin-top: 15px;
}

.add-month-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-month-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.remove-platform {
    position: absolute;
    top: 20px;
    right: 200px;
    line-height: 42px;
    color: red;
    cursor: pointer;
    font-size: 13px;
    display: none;
}
.remove-platform.on{
    display: block;
}
#resultContainer {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 180px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    -ms-border-radius: 18px;
    -o-border-radius: 18px;
    border-radius: 18px;
    background-color: transparent;
    margin-top: 20px;
}
.result-header{
    margin: 30px 0;
    padding-left: 10px;
    position: relative;
    text-align: left;
    font-size: 16px;
}
.result-header::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #1772F6;
}
#resultTable {
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#resultTable th, #resultTable td {
    font-size: 14px;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* 结果表格表头样式 - 蓝色背景 */
#resultTable thead th {
    background-color: #1772F6;
    color: white;
}

/* 结果表格内容行 - 白灰色斑马纹 */
#resultTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
#resultTable tbody tr:nth-child(odd) {
    background-color: white;
}


.thhidde{
    display:none;
}
.formula-explanation {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 180px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    -ms-border-radius: 18px;
    -o-border-radius: 18px;
    border-radius: 18px;
    background-color: transparent;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 计税公式区域 */
.formula-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    padding: 20px;
}

.formula-title {
    color: #666;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.formula-content {
    font-size: 14px;
    line-height: 1.6;
}

.formula-content p {
    margin-bottom: 10px;
    color: #333;
}

/* 国家税务总局规范性文件区域 */
.regulation-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    padding: 20px;
}

.regulation-title {
    color: #666;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.regulation-content {
    font-size: 14px;
    line-height: 1.6;
}

.regulation-content p {
    margin-bottom: 10px;
    color: #333;
}

.regulation-content a {
    color: #1772F6;
    text-decoration: none;
}

.regulation-content a:hover {
    color: #0c6eff;
    text-decoration: underline;
}

/* 保留原有的样式兼容 */
.formula-explanations{
    padding: 30px;
    background-color: #f5f5f5;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.formula-explanation h3 {
    margin-top: 0;
    color: #333;
}
.formula-explanation p {
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.result-tip{
    margin-top: 10px;
    font-size: 12px;
    color: #999999;
}

@media (max-width: 820px) {
    table {
        width: 100%;
        display: table;
    }
    #resultTable {
        display: table;
        font-size: 12px;
    }
    #resultTable th, #resultTable td {
        font-size: 11px;
        padding: 6px 4px;
    }
    .mobile-result {
        display: block !important;
        width: 100%;
    }
    
    .table-scroll-container {
        display: none !important;
    }
    .result-card {
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        background-color: #fff;
        border: 1px solid rgba(33, 150, 243, 0.15);
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
        font-size: 13px;
    }
    .result-card .result-card-title {
        margin-bottom: 14px;
        font-size: 16px;
        color: #2196F3;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 2px solid #2196F3;
        position: relative;
    }
    
    .result-card .result-card-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 25px;
        height: 2px;
        background: linear-gradient(90deg, #2196F3, #64B5F6);
    }
    .result-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 5px 0;
    }
    .result-label {
        color: #666;
        font-weight: 500;
    }
    .result-row span:last-child {
        color: #1976D2;
        font-weight: 600;
    }
    
    .title-logo-container {
        gap: 15px;
    }
    
    .title-logo {
        height: 60px;
        max-width: 200px;
    }

    .containerss {
        padding-top: 20px;
    }
    
    /* 移动端月份输入样式调整 */
    .month-input-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px;
        flex-wrap: nowrap;
    }
    
    .month-input-row .month-label {
        font-size: 12px;
        min-width: 40px;
        flex-shrink: 0;
    }
    
    .month-input-row .income-label {
        font-size: 12px;
        min-width: 35px;
        flex-shrink: 0;
    }
    
    .month-input-row .month-select {
        height: 32px;
        font-size: 12px;
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .month-input-row .income-input {
        height: 32px;
        font-size: 12px;
        flex: 1;
        min-width: 60px;
    }
    
    .month-input-row .remove-month-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 40px;
        flex-shrink: 0;
    }
    
    .add-month-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .platform-title {
        font-size: 16px;
    }
    
    .platform-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    /* 移动端公式说明区域响应式调整 */
    .formula-explanation {
        padding: 20px 0;
        gap: 15px;
    }
    
    .formula-section,
    .regulation-section {
        padding: 15px;
        margin: 0 10px;
    }
    
    .formula-title,
    .regulation-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .formula-content,
    .regulation-content {
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 10px 5px;
    }
    
    .add-platform-container {
        padding: 0 10px;
    }
    
    .btn-group {
        padding: 0 10px;
    }
    
    .calc-reset-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .reset-btn, .calc-btn {
        flex: 1;
        max-width: 150px;
        min-width: 100px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .add-btn {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .title-logo-container {
        gap: 12px;
    }
    
    .title-logo {
        height: 50px;
        max-width: 150px;
    }

    .containerss {
        padding-top: 20px;
    }
    
    /* 小屏幕公式说明区域响应式调整 */
    .formula-explanation {
        padding: 15px 0;
        gap: 12px;
    }
    
    .formula-section,
    .regulation-section {
        padding: 12px;
        margin: 0 5px;
    }
    
    .formula-title,
    .regulation-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .formula-content,
    .regulation-content {
        font-size: 12px;
    }
}

/* 桌面端隐藏移动端卡片 */
@media (min-width: 821px) {
    .mobile-result {
        display: none !important;
    }
    
    .table-scroll-container {
        display: block !important;
    }
}

@media (max-width: 360px) {
    .calc-reset-buttons {
        gap: 8px;
        width: 100%;
    }
    
    .reset-btn, .calc-btn {
        flex: 1;
        max-width: 120px;
        min-width: 80px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .add-btn {
        min-width: 90px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .title-logo-container {
        gap: 10px;
    }
    
    .title-logo {
        height: 45px;
        max-width: 120px;
    }
    
    /* 超小屏幕公式说明区域响应式调整 */
    .formula-explanation {
        padding: 10px 0;
        gap: 10px;
    }
    
    .formula-section,
    .regulation-section {
        padding: 10px;
        margin: 0 3px;
    }
    
    .formula-title,
    .regulation-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .formula-content,
    .regulation-content {
        font-size: 11px;
    }
}



#plc
{
    line-height:12px ;
}