﻿/* =================================
   通用与基础样式（适配中文站点）
   - LTR 布局
   - 中文字体栈与排版优化
   ================================= */
:root {
  --primary: #003366;
  --primary-600: #0056b3;
  --accent: #ffc107;
  --accent-600: #e0a800;
  --success: #28a745;
  --text: #333;
  --bg: #f8f9fa;
  --muted: #343a40;
  --border: #e7e7e7;
  --shadow: 0 4px 8px rgba(0,0,0,0.1);
  --radius: 8px;
}

html {
  /* 允许中英混排更自然的换行（现代浏览器支持） */
  text-size-adjust: 100%;
}

html, body {
  height: 100%;
}

body {
  font-family:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    "Source Han Sans SC", "Hiragino Sans GB", "WenQuanYi Micro Hei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;           /* 中文常用较大的行高 */
  text-align: left;           /* 中文网站默认左对齐 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  letter-spacing: 0.2px;      /* 微调字间距，增强可读性 */
}

/* 链接与可访问性 */
a {
  color: var(--primary-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.35);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-menu a {
  color: var(--primary);
  text-decoration: none;
  padding: 10px 12px;
  font-weight: 600;
  border-radius: 6px;
}
.nav-menu a:hover {
  color: var(--primary-600);
  background: rgba(0,0,0,0.03);
}

.btn-cta {
  background-color: var(--accent);
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.25s, transform 0.08s ease-in-out;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}
.btn-cta:hover {
  background-color: var(--accent-600);
  text-decoration: none;
}
.btn-cta:active {
  transform: translateY(1px);
}

footer {
  background: var(--muted);
  color: #fff;
  text-align: center;
  padding: 24px 12px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* =================================
   内页通用（关于、指南等）
   ================================= */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.4em;
  margin: 0;
  letter-spacing: 0.4px;
}

.content-section {
  background: #fff;
  padding: 40px;
  margin: 30px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
}
.content-section h2 {
  color: var(--primary-600);
  margin-top: 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

/* =================================
   首页（index.html）
   ================================= */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6em;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.12em;
  margin-bottom: 26px;
}

.section {
  padding: 50px 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 2.1em;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--primary-600);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-top: 0;
}

.card ul {
  list-style: none;      /* 使用自定义符号 */
  padding-left: 0;       /* LTR：用左侧内边距 */
  margin: 16px 0 0;
}
.card ul li {
  padding-left: 26px;    /* LTR：给左侧符号留位置 */
  position: relative;
  margin-bottom: 10px;
}
.card ul li::before {
  content: '✓';
  color: var(--success);
  position: absolute;
  left: 0;               /* LTR：符号在左 */
  top: 0;
  font-weight: 700;
  line-height: 1.2;
}

.faq-item {
  margin-bottom: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.faq-item h4 {
  margin: 0 0 10px 0;
  color: var(--primary-600);
  font-size: 1.08em;
}

.banners {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.banner img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =================================
   开户指南（sign.html）
   ================================= */
.step {
  margin-bottom: 35px;
}
.step h3 {
  font-size: 1.45em;
  color: var(--primary);
  margin: 0 0 8px;
}
.step-icon {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  margin-right: 12px;   /* LTR：数字圆点在左，右侧留距 */
  vertical-align: middle;
}

/* =================================
   存取款（fund.html）
   ================================= */
.sub-section { margin-bottom: 40px; }
.sub-section h3 {
  font-size: 1.45em;
  color: var(--primary);
  margin: 0 0 10px;
}

ol {
  padding-left: 20px;    /* LTR 有序列表左缩进 */
  margin: 10px 0 0;
}
ol li {
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}
.features-list li {
  padding-left: 30px;    /* LTR：左侧放勾选符号 */
  position: relative;
  margin-bottom: 10px;
  font-size: 1.06em;
}
.features-list li::before {
  content: '✓';
  color: var(--success);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.2;
}

/* =================================
   账户类型（account.html）
   ================================= */
.account-category { margin-bottom: 50px; }
.account-category h2 {
  font-size: 2em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 26px;
}
.account-card {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  background: #fff;
}
.account-card h3 {
  color: var(--primary-600);
  margin-top: 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}
.account-card ul {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
}
.account-card li { margin-bottom: 10px; }
.account-card li strong { color: #222; }

/* =================================
   联系我们（contact.html）
   ================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.contact-card {
  text-align: center;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  background: #fff;
}
.contact-card h3 {
  color: var(--primary-600);
  margin-top: 0;
}
.contact-card p a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}
.contact-card p a:hover { text-decoration: underline; }
.icon {
  font-size: 2.6em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* =================================
   响应式
   ================================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2em; }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-menu {
    justify-content: center;
  }
  .hero h1 { font-size: 1.9em; }
  .section { padding: 36px 0; }
}

/* =================================
   细节优化（可选）
   ================================= */
/* 中文标点挤压（部分浏览器支持） */
p, h1, h2, h3, h4, h5, h6 {
  hanging-punctuation: first allow-end; /* 非标准实现将被忽略 */
}

/* 长英文/链接在中文段落中自动换行 */
p, li, .faq-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
