/* =============================================
   叨叨羊官网 - 国潮文化风 公共样式
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #0D0B0A;
    color: #F5F0E8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============ 导航栏 ============ */
.nav-container {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 70px;
    transition: all 0.4s ease;
}
.nav-container.scrolled {
    background: rgba(13,11,10,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200,164,90,0.15);
}
.nav-link {
    position: relative; color: #F5F0E8; font-size: 15px;
    font-weight: 400; padding: 8px 0; margin: 0 18px;
    text-decoration: none; transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0;
    height: 2px; background: #C8A45A; transition: width 0.3s;
}
.nav-link:hover { color: #C8A45A; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #C8A45A; }
.nav-link.active::after { width: 100%; }

/* ============ 移动端菜单 ============ */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1002; background: none; border: none; padding: 5px;
}
.hamburger span {
    width: 25px; height: 2px; background: #C8A45A;
    transition: all 0.3s;
}
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; background: rgba(13,11,10,0.98);
    z-index: 1001; transition: right 0.4s ease;
    padding: 80px 30px 30px;
    border-left: 1px solid rgba(200,164,90,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-link {
    display: block; color: #F5F0E8; font-size: 17px;
    padding: 16px 0; border-bottom: 1px solid rgba(200,164,90,0.1);
    text-decoration: none; transition: color 0.3s;
}
.mobile-nav-link:hover { color: #C8A45A; }

/* ============ 动画 ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards; opacity: 0;
}
.animate-fade-in {
    animation: fadeIn 1.2s ease forwards; opacity: 0;
}
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.5s; }
.animate-delay-3 { animation-delay: 0.8s; }
.animate-delay-4 { animation-delay: 1.1s; }

/* ============ 滚动揭示 ============ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 页面标题 ============ */
.page-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 48px; font-weight: 900; color: #C8A45A;
    text-align: center; letter-spacing: 8px;
}
.page-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: #C8A45A; margin: 16px auto 0;
}
.page-subtitle {
    text-align: center; color: #A89B8C; font-size: 16px;
    margin-top: 16px; letter-spacing: 2px;
}

/* ============ 节标题 ============ */
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px; font-weight: 700; color: #C8A45A;
    position: relative; display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; bottom: -8px; left: 0;
    width: 50px; height: 3px; background: #C8A45A;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* ============ 图片边框 ============ */
.img-frame {
    position: relative; border: 1px solid rgba(200,164,90,0.3); padding: 8px;
}
.img-frame::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 30px; height: 30px;
    border-top: 2px solid #C8A45A; border-left: 2px solid #C8A45A;
}
.img-frame::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 30px; height: 30px;
    border-bottom: 2px solid #C8A45A; border-right: 2px solid #C8A45A;
}

/* ============ 愿景边框 ============ */
.vision-border {
    border: 1px solid rgba(200,164,90,0.2); position: relative; padding: 32px;
}
.vision-border::before, .vision-border::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    border: 2px solid #C8A45A;
}
.vision-border::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.vision-border::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ============ 五行色条 ============ */
.wuxing-bar { height: 4px; display: flex; }
.wuxing-bar span { flex: 1; }
.wuxing-bar span:nth-child(1) { background: #C8A45A; }
.wuxing-bar span:nth-child(2) { background: #2D5A3D; }
.wuxing-bar span:nth-child(3) { background: #1E3A5F; }
.wuxing-bar span:nth-child(4) { background: #C73E1D; }
.wuxing-bar span:nth-child(5) { background: #8B6914; }

/* ============ 装饰分隔线 ============ */
.gold-line {
    width: 80px; height: 1px; background: rgba(200,164,90,0.4);
}
.gold-line-vert {
    width: 2px; height: 40px;
    background: linear-gradient(to bottom, transparent, #C8A45A, transparent);
}

/* ============ 通用卡片 ============ */
.glow-card {
    background: rgba(26,20,16,0.5);
    border: 1px solid rgba(200,164,90,0.12);
    border-radius: 8px; padding: 32px;
    transition: all 0.4s ease;
}
.glow-card:hover {
    border-color: rgba(200,164,90,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(200,164,90,0.08);
}

/* ============ 按钮 ============ */
.btn-gold {
    display: inline-block; padding: 12px 32px;
    background: #C8A45A; color: #0D0B0A;
    font-size: 14px; font-weight: 600;
    border-radius: 4px; border: none; cursor: pointer;
    transition: all 0.3s; letter-spacing: 1px;
}
.btn-gold:hover {
    background: #D4B76A; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200,164,90,0.3);
}
.btn-outline {
    display: inline-block; padding: 12px 32px;
    background: transparent; color: #C8A45A;
    font-size: 14px; font-weight: 500;
    border-radius: 4px; border: 1px solid rgba(200,164,90,0.4);
    cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover {
    background: rgba(200,164,90,0.1); border-color: #C8A45A;
}

/* ============ 页脚 ============ */
.footer-bar { height: 4px; display: flex; }
.footer-bar span { flex: 1; }
.footer-bar span:nth-child(1) { background: #C8A45A; }
.footer-bar span:nth-child(2) { background: #2D5A3D; }
.footer-bar span:nth-child(3) { background: #1E3A5F; }
.footer-bar span:nth-child(4) { background: #C73E1D; }
.footer-bar span:nth-child(5) { background: #8B6914; }

/* ============ 工具类 ============ */
.bg-ink { background-color: #0D0B0A; }
.bg-ink-light { background-color: #1A1410; }
.text-cream { color: #F5F0E8; }
.text-taupe { color: #A89B8C; }
.text-gold { color: #C8A45A; }
.text-fire { color: #C73E1D; }
.font-serif { font-family: 'Noto Serif SC', serif; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .page-title { font-size: 40px; letter-spacing: 4px; }
    .section-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .page-title { font-size: 32px; letter-spacing: 2px; }
    .page-subtitle { font-size: 14px; }
    .section-title { font-size: 24px; }
    .nav-links { display: none !important; }
    .hamburger { display: flex !important; }
    .vision-border { padding: 20px; }
}
