* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
}

/* 顶部标题栏 */
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-size: 20px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  transition: background 0.3s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.35);
}

.page-title {
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 白色内容卡片 */
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card h2 {
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 链接列表 */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.link-item:hover {
  background: #e8f0fe;
  border-color: #c2d8fc;
  transform: translateX(4px);
}

.link-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.link-text {
  font-size: 16px;
  font-weight: 500;
}

.link-arrow {
  margin-left: auto;
  color: #999;
  font-size: 18px;
}

/* 内部工具卡片 */
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(90deg, #e8f5e9 0%, #d4edda 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #155724;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.tool-card:hover {
  border-color: #28a745;
  transform: translateX(4px);
}

.tool-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.tool-text {
  font-size: 16px;
  font-weight: 500;
}

.tool-arrow {
  margin-left: auto;
  font-size: 18px;
}

/* 税点计算 */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 140px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.calc-btn {
  width: 100%;
  padding: 14px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.calc-btn:hover {
  background: #5a67d8;
}

.result-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #d1fae5;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 14px;
  color: #666;
}

.result-value {
  font-size: 18px;
  font-weight: 700;
  color: #166534;
}

.result-value.highlight {
  color: #dc2626;
  font-size: 20px;
}

/* 响应式 */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  .page-title {
    font-size: 18px;
  }
}
