/* ===== 拼豆社区 公共样式 ===== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #F7F7F7; color: #333; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ===== 导航栏 ===== */
.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 20px; height: 60px; gap: 20px; }
.logo { font-size: 20px; font-weight: 700; color: #FF6B9D; white-space: nowrap; }
.nav-search { flex: 1; max-width: 400px; display: flex; gap: 0; }
.nav-search input { flex: 1; padding: 8px 14px; border: 1px solid #ddd; border-radius: 20px 0 0 20px; font-size: 14px; outline: none; }
.nav-search input:focus { border-color: #FF6B9D; }
.nav-search button { padding: 8px 18px; background: #FF6B9D; color: #fff; border: none; border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px; }
.nav-search button:hover { background: #e85a8a; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { font-size: 14px; color: #555; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: #FF6B9D; }
.btn-login { padding: 6px 18px; border-radius: 20px; border: 1px solid #FF6B9D; color: #FF6B9D; font-size: 13px; transition: all 0.2s; }
.btn-login:hover { background: #FF6B9D; color: #fff; }
.btn-register { padding: 6px 18px; border-radius: 20px; background: #FF6B9D; color: #fff; font-size: 13px; border: 1px solid #FF6B9D; transition: all 0.2s; }
.btn-register:hover { background: #e85a8a; }

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

/* ===== 底部页脚 ===== */
.footer { background: #fff; border-top: 1px solid #eee; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 20px 24px; }
.footer-col h4 { font-size: 15px; color: #333; margin-bottom: 10px; }
.footer-col p { font-size: 13px; color: #999; line-height: 1.6; }
.footer-col a { display: block; font-size: 13px; color: #999; line-height: 2; transition: color 0.2s; }
.footer-col a:hover { color: #FF6B9D; }
.footer-bottom { text-align: center; padding: 16px 0; font-size: 12px; color: #bbb; border-top: 1px solid #f0f0f0; max-width: 1200px; margin: 0 auto; }

/* ===== 通用工具 ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.text-center { text-align: center; }
.text-pink { color: #FF6B9D; }
.text-teal { color: #4ECDC4; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
    .nav-search { order: 3; max-width: 100%; width: 100%; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .dynamic-layout { grid-template-columns: 1fr; }
}
