/* ========== 枢元堂 PageAdmin CMS - Base CSS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #3D3020;
    background: #FAF6F0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #C45A20; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
input, button, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ========== 容器系统 ========== */
.sy-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部导航样式 ========== */
.sy-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(44, 36, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sy-header--fixed {
    background: rgba(44, 36, 22, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.sy-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sy-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FAF6F0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}
.sy-logo img { height: 36px; width: auto; }
.sy-logo-text { background: linear-gradient(135deg, #D4A017, #C45A20); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sy-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sy-nav ul li { position: relative; }
.sy-nav ul li a {
    display: block;
    padding: 8px 18px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 6px;
}
.sy-nav ul li a:hover,
.sy-nav ul li.current a {
    color: #D4A017;
    background: rgba(212,160,23,0.08);
}
.sy-nav ul li.current a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #D4A017;
    border-radius: 1px;
}

/* 移动端菜单 */
.sy-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.sy-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.sy-mobile-toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sy-mobile-toggle--active span:nth-child(2) { opacity: 0; }
.sy-mobile-toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== 页脚样式 ========== */
.sy-footer {
    background: #2C2416;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.sy-footer-top {
    display: flex;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.sy-footer-brand { flex: 1; min-width: 280px; }
.sy-footer-brand h3 { font-size: 22px; color: #FAF6F0; margin-bottom: 8px; letter-spacing: 2px; }
.sy-footer-slogan { color: #D4A017; font-size: 14px; margin-bottom: 12px; letter-spacing: 3px; }
.sy-footer-desc { font-size: 13px; line-height: 1.7; max-width: 320px; }
.sy-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.sy-footer-col h4 { color: #FAF6F0; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.sy-footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.sy-footer-col ul li a { transition: color 0.3s; }
.sy-footer-col ul li a:hover { color: #D4A017; }
.sy-footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.sy-footer-bottom p { margin-bottom: 6px; }
.sy-footer-bottom a { color: rgba(255,255,255,0.5); }
.sy-footer-bottom a:hover { color: #D4A017; }

/* 移动端底部导航 */
.sy-mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(44,36,22,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.sy-mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    padding: 4px 0;
    flex: 1;
    text-align: center;
}
.sy-mobile-footer-item:hover { color: #D4A017; }

/* ========== 子页面Banner ========== */
.sy-page-banner {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #2C2416, #4A3520);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sy-page-banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(196,90,32,0.1) 0%, transparent 70%);
}
.sy-page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FAF6F0;
}
.sy-page-banner-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 3px;
}
.sy-page-banner-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 4px;
}

/* ========== 内容页通用样式 ========== */
.sy-content-page {
    padding: 60px 0;
    min-height: 60vh;
}
.sy-content-page .sy-container { max-width: 900px; }
.sy-content-page h1 {
    font-size: 28px;
    color: #2C2416;
    margin-bottom: 20px;
}
.sy-content-page .sy-meta {
    font-size: 13px;
    color: #7A6B5D;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8DDD0;
}
.sy-content-page .sy-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3D3020;
}
.sy-content-page .sy-content p { margin-bottom: 16px; }
.sy-content-page .sy-content img { border-radius: 8px; margin: 20px 0; }

/* 列表页 */
.sy-list-page { padding: 60px 0; min-height: 60vh; }
.sy-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sy-list-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8DDD0;
    transition: all 0.3s ease;
}
.sy-list-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(44,36,22,0.1); }
.sy-list-card img { width: 100%; height: 200px; object-fit: cover; }
.sy-list-card-body { padding: 20px; }
.sy-list-card-body h3 { font-size: 16px; color: #2C2416; margin-bottom: 8px; line-height: 1.5; }
.sy-list-card-body .date { font-size: 12px; color: #7A6B5D; }
.sy-list-card-body .intro { font-size: 13px; color: #7A6B5D; line-height: 1.6; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sy-list-card-body a:hover h3 { color: #C45A20; }

/* 分页 */
.sy-pagination { text-align: center; margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.sy-pagination a, .sy-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #3D3020;
    border: 1px solid #E8DDD0;
    transition: all 0.3s;
}
.sy-pagination a:hover { border-color: #C45A20; color: #C45A20; }
.sy-pagination .active { background: #C45A20; color: #fff; border-color: #C45A20; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .sy-mobile-toggle { display: flex; }
    .sy-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(44,36,22,0.98);
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .sy-nav--open { transform: translateX(0); }
    .sy-nav ul { flex-direction: column; gap: 0; }
    .sy-nav ul li a { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sy-footer-top { flex-direction: column; gap: 30px; }
    .sy-mobile-footer { display: flex; }
    body { padding-bottom: 60px; }
    .sy-page-banner { height: 200px; }
    .sy-page-banner-content h1 { font-size: 24px; }
    .sy-list-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .sy-list-grid { grid-template-columns: repeat(2, 1fr); }
}
