/* ===========================================
   三橋経済塾 - 公共样式表
   =========================================== */

/* CSS 变量 */
:root {
  --primary-color: #1e3a8a;
  --primary-dark: #111827;
  --accent-color: #facc15;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-dark: #111827;
  --border-light: #e9ecef;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 -2px 12px rgba(0, 0, 0, 0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --content-width: 800px;
}

/* 重置样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基础样式 */
body {
  font-family: "Hiragino Kaku Gothic Pro", "メイリオ", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3 {
  color: var(--primary-color);
}

ul {
  padding-left: 1.2rem;
}

/* ===========================================
   导航栏
   =========================================== */
.navbar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar h2 {
  margin: 0;
  font-size: 1.3rem;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 1.5rem;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* ===========================================
   内容页通用样式
   =========================================== */
.content-page {
  padding: 1.5rem 1rem;
}

.content-page .container {
  max-width: var(--content-width);
  margin: auto;
  background: var(--bg-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-page h1 {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-page section {
  margin-bottom: 2rem;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* 警告框 */
.warning-box {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===========================================
   页脚
   =========================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* ===========================================
   信任指标
   =========================================== */
.trust-indicators {
  display: flex;
  justify-content: space-around;
  padding: 15px 10px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  margin-bottom: 60px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.9;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.trust-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.trust-icon {
  width: 32px;
  height: 32px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.trust-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===========================================
   Cookie 横幅
   =========================================== */
#cookie-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: rgba(20, 30, 60, 0.98);
  color: #fff;
  padding: 14px 12px;
  font-size: 0.98rem;
  box-shadow: var(--shadow-lg);
}

#cookie-banner span {
  flex: 1;
  text-align: center;
}

#cookie-accept {
  margin-left: 18px;
  padding: 7px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #1ec6e6 0%, #3eeaff 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#cookie-accept:hover {
  transform: scale(1.05);
}

/* ===========================================
   响应式设计
   =========================================== */
@media only screen and (max-width: 600px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar h2 {
    font-size: 1.1rem;
  }

  .nav-link {
    margin-left: 0.8rem;
    font-size: 0.9rem;
  }

  .content-page .container {
    padding: 1.5rem;
  }

  .trust-indicators {
    flex-wrap: wrap;
    gap: 10px;
  }

  .trust-item {
    flex: 0 0 45%;
  }

  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }

  #cookie-accept {
    margin-left: 0;
    margin-top: 10px;
  }
}
