/* ============================================
   CSS Reset & Variables
   ============================================ */

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

/* ============================================
   CSS Custom Properties (日间模式)
   ============================================ */
:root {
  /* 主色调 */
  --bg-page:        #E8E7E7;
  --bg-card:        #D9D9D9;
  --bg-card-white:  #FFFFFF;
  --accent-mint:    #AEEEC7;
  --accent-teal:    #7CC6C3;
  --accent-teal-dark: #64A09E;
  --widget-dark:    #505050;

  /* 文字 */
  --text-primary:   #333333;
  --text-secondary: #666666;
  --text-light:     #999999;
  --text-on-dark:   #CCCCCC;

  /* 间距 */
  --gap-xs:  4px;
  --gap-sm:  8px;
  --gap-md:  16px;
  --gap-lg:  24px;
  --gap-xl:  32px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 阴影 */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* 字体 */
  --font-main: 'SimSun', '宋体', 'Songti SC', 'Noto Serif CJK SC', serif;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

/* ============================================
   深色模式
   ============================================ */
[data-theme="dark"] {
  --bg-page:        #1a1a2e;
  --bg-card:        #252540;
  --bg-card-white:  #2d2d4a;
  --accent-mint:    #2d5a3d;
  --accent-teal:    #3a6b68;
  --accent-teal-dark: #4a8a87;
  --widget-dark:    #12121f;
  --text-primary:   #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-light:     #808080;
  --text-on-dark:   #c0c0c0;
  --shadow-card:    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Base
   ============================================ */
body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color var(--transition-normal),
              color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-main);
}

input, textarea {
  font-family: var(--font-main);
}
