/* ================================================
   关税试算 - PC端专属样式
   设计体系：紫色主题 #7B3FF2
   ================================================ */

/* ====== 数量控制 ====== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--p-border);
  border-radius: var(--r-md);
  background: var(--bg-white);
  color: var(--p);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--p);
  color: #fff;
}

.qty-input {
  width: 80px;
  height: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-md);
  outline: none;
  transition: all 0.2s;
}

.qty-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.1);
}

/* ====== 前缀输入框 ====== */
.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-md);
  background: var(--bg-white);
  overflow: hidden;
  transition: all 0.2s;
}

.input-with-prefix:focus-within {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.1);
}

.input-prefix {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--p);
  background: var(--p-lighter);
  border-right: 1px solid var(--p-border);
}

.form-input.no-border {
  border: none;
  border-radius: 0;
}

.form-input.no-border:focus {
  box-shadow: none;
}

/* ====== 必填标记 ====== */
.required {
  color: var(--danger);
  margin-left: 2px;
}

/* ====== 计算按钮 ====== */
.calc-btn {
  width: 100%;
  margin-top: var(--space-md);
  padding: 16px 32px;
  background: var(--gradient-p);
  color: var(--text-white);
  border: none;
  border-radius: var(--r-lg);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(123, 63, 242, 0.35);
  transition: all 0.2s;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(123, 63, 242, 0.45);
}

.calc-btn:active {
  transform: translateY(0);
}

/* ====== 初始提示区域 ====== */
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 400px;
  padding: var(--space-xl);
}

.result-placeholder i {
  font-size: 4rem;
  opacity: 0.4;
  margin-bottom: var(--space-md);
}

.result-placeholder p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.7;
}

/* ====== 结果内容区域 ====== */
.calc-result-content {
  height: 100%;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.result-main-info {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  text-align: center;
}

.result-amount-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-amount-label {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.result-amount-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

/* ====== 状态提示优化 ====== */
.result-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

.result-status.exempt {
  background: rgba(16, 185, 129, 0.25);
}

.result-status.taxable {
  background: rgba(245, 158, 11, 0.25);
}

.result-status i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.result-status.exempt i {
  color: #10B981;
}

.result-status.taxable i {
  color: #F59E0B;
}

.result-status .status-text {
  flex: 1;
}

.result-status .status-title {
  font-size: 0.9375rem;
  font-weight: 700;
  display: block;
}

.result-status.exempt .status-title {
  color: #10B981;
}

.result-status.taxable .status-title {
  color: #F59E0B;
}

.result-status .status-desc {
  font-size: 0.8125rem;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}

/* ====== 关税说明区域 ====== */
.tax-rules-section {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: var(--space-md);
}

.rules-header i {
  color: var(--p);
}

.rules-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.6;
}

.rule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ====== 税率速查表 ====== */
.rate-table-section {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.rate-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--p);
  margin-bottom: var(--space-md);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--p-border);
}

.rate-table th,
.rate-table td {
  padding: 14px 20px;
  text-align: left;
}

.rate-table th {
  background: var(--p-lighter);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text1);
  border-bottom: 2px solid var(--p-border);
}

.rate-table td {
  font-size: 0.9375rem;
  color: var(--text2);
  border-bottom: 1px solid var(--p-lighter);
}

.rate-table tr:last-child td {
  border-bottom: none;
}

.rate-val {
  font-weight: 700;
  color: var(--p);
  font-size: 1rem;
}

/* ====== 响应式 ====== */
@media (max-width: 992px) {
  .calculator-section {
    grid-template-columns: 1fr;
  }

  .calc-result {
    order: -1;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .calc-form,
  .calc-result,
  .tax-rules-section,
  .rate-table-section {
    padding: var(--space-md);
    border-radius: var(--r-lg);
  }

  .calc-form-title {
    font-size: 1.125rem;
  }

  .calc-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .result-amount-value {
    font-size: 2rem;
  }
}
