/* ── 语言切换：CSS 驱动，无闪烁 ── */
html.lang-zh [data-lang="ja"] { display: none !important; }
html.lang-ja [data-lang="zh"] { display: none !important; }

/* ── CSS 变量（全局共享） ── */
:root {
  --primary:    #1A3D6B;
  --primary-l:  #2C5F8A;
  --primary-d:  #0E2540;
  --accent:     #E8A838;
  --accent-l:   #F5C355;
  --green:      #1D8A4E;
  --green-bg:   #E6F7EE;
  --red:        #C92B2B;
  --blue:       #3A82C4;
  --bg:         #F0F2F5;
  --surface:    #FFFFFF;
  --surface2:   #F5F7FA;
  --border:     #DEE2E8;
  --text:       #111827;
  --text2:      #4B5563;
  --text3:      #9CA3AF;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow:     0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.14);
  --radius:     12px;
  --radius-sm:  8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html.lang-ja body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}
a { text-decoration: none; color: inherit; }

/* ── 语言下拉（各页顶栏位置不变） ── */
.lang-switch {
  position: relative;
  flex-shrink: 0;
}
.lang-switch::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  line-height: 1;
}
.lang-select {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 28px 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: 0.3px;
  transition: background 0.18s, border-color 0.18s;
}
.lang-select:hover,
.lang-select:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.lang-select option {
  color: var(--text);
  background: #fff;
}

/* ── 应用顶栏（/welcome、/client、/tasks 共用）────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
}
.app-header-inner--fluid {
  max-width: none;
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.app-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.app-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.app-logo-sub {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.4px;
}
