/* 佟掌柜H5官网 - 融通金风格深色金融模板 */
/* 移动端优先，适配微信内打开 */

:root {
  --bg-primary: #000000;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-red: #c41e3a;        /* 佟掌柜红 */
  --accent-green: #00d068;      /* 中国涨绿 */
  --accent-gold: #f5a623;       /* 暖橙金（融通金风格品类名颜色） */
  --accent-blue: #2196f3;       /* 融通金风格蓝色按钮 */
  --border-color: #1f1f1f;
  --text-na: #555555;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  /* 给底部Tab栏留出空间 */
  padding-bottom: 70px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 估价页面 */
.estimate-container {
  padding: 20px 15px;
  padding-bottom: 80px;
}

.page-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.input-group {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.input-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.input-field {
  width: 100%;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 15px;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.result-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--accent-gold);
  margin-top: 20px;
  display: none;
}

.result-card.show {
  display: block;
}

.result-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.result-value {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-red);
  font-family: "Courier New", monospace;
}

.result-unit {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.btn-primary:active {
  opacity: 0.8;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  padding: 30px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 375px) {
  .rtj-brand-cn { font-size: 20px; }
  .rtj-brand-en { font-size: 11px; }
}
