/*
Theme Name: cwg-theme
Theme URI: https://example.com/cwg-theme
Author: Project Team
Description: A theme replicating the static HTML design for 首页、新闻中心、单位动态、采薇阁字体，新闻中心关联 WordPress 文章。
Version: 1.0.0
Text Domain: cwg-theme
*/

/* Basic resets and import base styles from assets once enqueued */

/* 背景：象牙黄色 + 牛皮纸纹理，突出古典美 */
body {
  background-color: #FFF8DC; /* cornsilk/ivory yellow tone */
  background-image: url('assets/images/牛皮纸.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #3b2f2f; /* dark brown for classical feel */
  font-family: 'Noto Serif SC', serif;
}

/* 基本布局容器 */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* 站点头部与导航 */
.site-header { background: rgba(255, 248, 220, 0.85); backdrop-filter: blur(2px); border-bottom: 1px solid rgba(139,69,19,.15); }
.branding .site-title { font-size: 28px; color: #4a3b2a; text-decoration: none; }
.branding .site-description { font-size: 12px; color: #6b5843; }
.primary-nav .menu, .primary-nav > div > ul { list-style:none; margin:0; padding:0; display:flex; gap:20px; align-items:center; }
.primary-nav a { position:relative; display:inline-block; padding:12px 4px; font-size:18px; color:#5a4330; text-decoration:none; transition: color .25s ease, transform .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .menu-item.current_page_item > a { color:#8B4513; transform: translateY(-1px); }
.primary-nav a::after { content:""; position:absolute; left:0; right:0; bottom:6px; height:2px; background:#8B4513; transform: scaleX(0); transform-origin:left; transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .menu-item.current_page_item > a::after { transform: scaleX(1); }

/* 走马灯（单位介绍） */
.cwg-marquee { position: relative; overflow: hidden; background: rgba(255,248,220,.7); border-top:1px solid rgba(139,69,19,.12); border-bottom:1px solid rgba(139,69,19,.12); }
.cwg-marquee .track { display:flex; gap:16px; will-change: transform; }
.cwg-marquee .slide { flex: 0 0 auto; }
.cwg-marquee .slide img { height: 140px; width: auto; display:block; border-radius:6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* 内容区基础排版 */
.entry-title, .page .entry-title { color:#4a3b2a; }
.entry-meta { color:#6b5843; font-size: 12px; }
.entry-content { line-height: 1.8; }

.site-footer { background: rgba(255,248,220,.85); border-top: 1px solid rgba(139,69,19,.15); color:#5a4330; }
