* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container  *{
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
}


header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 18px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 109, 204, 0.1), rgba(13, 74, 158, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.tab:hover {
  background-color: #f9f9f9;
}

.tab:hover::after {
  opacity: 1;
}

.tab.active {
  border-bottom: 4px solid #1a6dcc;
  color: #1a6dcc;
  background-color: #f0f7ff;
}

/* 内容区域样式 */
.calculator-container {
  display: none;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  animation: fadeIn 0.5s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.calculator-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(26, 109, 204, 0.05) 0%, rgba(26, 109, 204, 0.01) 100%);
  border-radius: 0 0 0 100%;
}

.calculator-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calculator-header h2 {
  font-size: 1.5rem;
  color: #1a6dcc;
  display: flex;
  align-items: center;
  line-height: 1;
}

.calculator-header .calculator-icon{
  margin-right: 15px;
}

.intro-box {
  background-color: #f0f7ff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border-left: 4px solid #1a6dcc;
  position: relative;
}

.intro-box h3 {
  margin-bottom: 12px;
  color: #0d4a9e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-box ul {
  padding-left: 25px;
}

.intro-box li {
  margin-top: 8px;
  position: relative;
}

.intro-box li::before {
  content: "•";
  color: #1a6dcc;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* 计算器表单样式 */
.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #1a6dcc;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fafbfc;
  line-height: 1;
}
.form-group input[type="date"]{
    padding: 13.25px 14px;
}

.form-control:focus {
  border-color: #1a6dcc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 109, 204, 0.1);
  background: white;
}

.radio-group {
  display: flex;
  gap: 50px;
  margin-top: 10px;
  padding: 14.75px 0;
  line-height: 1;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  border-color: #1a6dcc;
  background: #f0f7ff;
}

.radio-option label {
  margin-bottom: 0;
  padding-left: 12px;
  cursor: pointer;
}

.radio-option input:checked+label {
  color: #1a6dcc;
  font-weight: 600;
}

.btn-calculate {
  background: linear-gradient(135deg, #1a6dcc, #0d4a9e);
  color: white;
  border: none;
  padding: 15px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px 0;
  margin-top: 0;
  width: 300px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-calculate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(26, 109, 204, 0.4);
}

.btn-calculate:hover::before {
  left: 100%;
}

/* 结果样式 */
.results {
  background: linear-gradient(135deg, #e6f2ff, #cce5ff);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
  border: 1px solid #b3d7ff;
  position: relative;
  overflow: hidden;
}

.results::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: #1a6dcc;
  border-radius: 50%;
  opacity: 0.1;
}

.results::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: #1a6dcc;
  border-radius: 50%;
  opacity: 0.1;
}

.results h3 {
  margin-bottom: 20px;
  color: #0d4a9e;
  position: relative;
  z-index: 2;
  text-align: left;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.result-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.result-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item h4 {
  color: #666;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.result-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a6dcc;
  background: linear-gradient(135deg, #1a6dcc, #0d4a9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.disclaimer {
  background-color: #fff8e6;
  border: 1px solid #ffd699;
  border-radius: 8px;
  padding: 15px;
  padding-left: 55px;
  font-size: 0.95rem;
  color: #996600;
  position: relative;
}

.disclaimer::before {
  content: "⚠️";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

/* 底部样式 */
footer {
  box-sizing: border-box;
  width: 100%;
  color: #333;
  background: linear-gradient(135deg, #2c3e50, #1a252f);
  color: #ecf0f1;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

footer *{
  box-sizing: border-box;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,100 0,100" fill="rgba(26,109,204,0.1)"/></svg>');
  background-size: 100% 100%;
  opacity: 0.2;
}

.footer-content {
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 20px auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #1a6dcc;
}

.footer-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.feature-item span {
  background: #1a6dcc;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.copyright {
  text-align: center;
  padding-top: 25px;
  margin-top: 10px;
  border-top: 1px solid #34495e;
  font-size: 0.95rem;
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* 动画效果 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* 标签样式 */
.form-tag {
  display: inline-block;
  background: #e6f7ff;
  color: #1890ff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85rem;
  margin-left: 8px;
}

.invalid {
  border: 1px solid red !important;
  background-color: #fff0f0 !important;
}

.invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1) !important;
}

/* 通知样式 */
.notice-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-size: 0.95rem;
  max-width: 90%;
  width: max-content;
}

.notice {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 10px;
  animation: fadeInOut 3s forwards;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}