/* mirror_flow:p6_ai_generated */
/* themes/default/style.css - 云南朝棋政会议会展有限公司 */
@charset "utf-8";

:root {
  --primary: #1a3e72;
  --primary-light: #2d5fa0;
  --primary-dark: #0e2647;
  --accent: #c8a45c;
  --accent-hover: #b3934b;
  --text-dark: #222;
  --text: #444;
  --text-light: #666;
  --text-muted: #888;
  --bg: #fff;
  --bg-light: #f5f7fa;
  --bg-accent: #f9f6f1;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 6px;
  --radius-sm: 3px;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.2s ease;
  --font-main: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
}

article, aside, details, figcaption, figure, footer, header, main, nav, section {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 辅助类 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 头部 */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

/* 导航 */
.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover {
  color: var(--primary);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* 内容主区域 */
.site-main {
  padding: 2.5rem 0;
  min-height: 60vh;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* 标签列表页 - lists_tags.htm 风格 */
.tags-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.tags-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.tag-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag-item a {
  color: inherit;
  display: block;
}

.tag-item:hover a {
  color: #fff;
}

/* 侧边栏布局（如果有）*/
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-self: start;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-body {
  padding: 1.25rem;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* 页脚 */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 992px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tags-list {
    gap: 0.8rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .site-main {
    padding: 1.5rem 0;
  }

  .tags-section {
    padding: 1.2rem;
  }
}

/* 适配可能存在的旧版 wayback 工具栏，但不影响主体样式 */
#wm-ipp-base {
  height: 65px;
  background: transparent;
  z-index: 2147483647;
}
