body {
  font-family: Arial, sans-serif;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
  background-image: url(assets/bg.jpg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* 为手机端优化背景图显示 */
@media screen and (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
  }
}
.income-input:focus-visible{
	border: 1px solid #0c6ecc;
}

.title-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 0px;
  margin-bottom: 5px;
}

.title-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
}

.containerss-title {
  margin-top: -60px;
  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, #0c6eff 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: end;
  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: #fff;
  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: #0c6eff;
  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: #0c6eff !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 #0c6eff;
  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 #0c6eff;
  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: #0c6eff;
  border: 1px solid #0c6eff;
}

.reset-btn:hover {
  border-color: #0c6eff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(23, 114, 246, 0.2);
}

.add-btn {
  background-color: #ffffff;
  color: #0c6eff;
}

.add-btn:hover {
  border-color: #0c6eff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(23, 114, 246, 0.2);
}

.calc-btn {
  background: #0c6ecc;
  color: #ffffff;
  border: 1px solid #0c6ecc;
}

.calc-btn:hover {
  background: #0c6ecc;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 68, 71, 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: #0c6eff;
  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: #0c6eff;
  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: #0c6eff;
  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: #0c6eff;
  transform: translateY(-1px);
}

.add-month-container {
  text-align: center;
  margin-top: 15px;
}

.add-month-btn {
  background: linear-gradient(135deg, #0c6eff 0%, #0c6eff 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: #fff;
  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;
  color: #fff;
}
.result-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #0c6eff;
}
#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: #0c6eff;
  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: #0c6eff;
  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: 14px;
    min-width: 80px;
    flex-shrink: 0;
  }
  .month-select-option{
	  font-size: 14px;
	  width: 120px;
  }

  .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: 80px;
    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;
}