/* ========== common.css - 华埔装饰全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1e2a3e; line-height: 1.5; background-color: #fff; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 顶部合作栏 */
.top-bar { background: #f8f8f8; padding: 8px 0; font-size: 14px; color: #666; text-align: center; border-bottom: 1px solid #edecec; }
.top-bar .highlight { color: #e61a33; font-weight: 500; }

/* 头部导航 */
.header { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav-item { position: relative; }
.nav-item > a { text-decoration: none; font-weight: 500; color: #1e2a3e; transition: color 0.2s; display: inline-block; padding: 8px 0; }
.nav-item > a:hover, .nav-item.active > a { color: #c49a6c; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-radius: 12px; padding: 8px 0; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 100; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown-menu a { display: block; padding: 10px 20px; color: #333; text-decoration: none; font-size: 0.9rem; transition: background 0.2s; }
.dropdown-menu a:hover { background: #f5f5f5; color: #c49a6c; }
.header-phone { font-weight: 700; font-size: 1.2rem; color: #c49a6c; }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 40px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: #c49a6c; color: #fff; }
.btn-primary:hover { background: #a87b4f; transform: translateY(-2px); }
.btn-outline { border: 1px solid #c49a6c; color: #c49a6c; background: transparent; }
.btn-outline:hover { background: #c49a6c; color: #fff; }

/* 轮播控件（通用） */
.slider-controls { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; z-index: 15; }
.slider-dots { display: inline-flex; gap: 12px; background: rgba(0,0,0,0.4); padding: 8px 16px; border-radius: 40px; backdrop-filter: blur(4px); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; cursor: pointer; transition: all 0.2s; }
.dot.active { background: #c49a6c; width: 24px; border-radius: 12px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; z-index: 15; transition: background 0.2s; }
.slider-arrow:hover { background: rgba(0,0,0,0.7); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* 通用标题区 */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.section-title .sub { color: #666; max-width: 700px; margin: 0 auto; }
.title-line { width: 60px; height: 3px; background: #c49a6c; margin: 16px auto 0; }

/* 底部 */
.footer { background: #1a2a1c; color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #c49a6c; }
.footer-contact .tel { font-size: 1.4rem; font-weight: 700; color: #c49a6c; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #2c3e2f; font-size: 0.85rem; }
.footer-bottom a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #c49a6c; }
.footer-links { text-align: center; margin-top: 20px; font-size: 0.85rem; }
.footer-links a { color: #ccc; text-decoration: none; margin: 0 8px; transition: color 0.2s; }
.footer-links a:hover { color: #c49a6c; }
.footer-links span { color: #666; margin: 0 4px; }

/* 弹框通用样式 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1001; justify-content: center; align-items: center; }
.modal-content { background: #fff; max-width: 500px; width: 90%; border-radius: 20px; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; transition: 0.2s; }
.close-modal:hover { color: #c49a6c; }
.modal h3 { font-size: 1.5rem; margin-bottom: 20px; text-align: center; color: #1e2a3e; }
.modal .form-group { margin-bottom: 20px; }
.modal .form-group input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 40px; font-size: 1rem; outline: none; }
.modal .form-group input:focus { border-color: #c49a6c; }
.modal button { width: 100%; background: #c49a6c; color: #fff; border: none; padding: 12px; border-radius: 40px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.modal button:hover { background: #a87b4f; }

/* 右侧悬浮窗 */
.fixed-sidebar { position: fixed; right: 20px; bottom: 20%; display: flex; flex-direction: column; gap: 12px; z-index: 99; }
.sidebar-item { background: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); color: #c49a6c; text-decoration: none; font-size: 11px; transition: 0.2s; cursor: pointer; }
.sidebar-item i { font-size: 22px; margin-bottom: 4px; }
.sidebar-item span { font-size: 10px; line-height: 1.2; }
.sidebar-item:hover { background: #c49a6c; color: #fff; }

/* 响应式全局 */
@media (max-width: 1024px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section-title h2 { font-size: 1.8rem; }
    .fixed-sidebar { right: 10px; }
    .sidebar-item { width: 48px; height: 48px; }
    .sidebar-item i { font-size: 20px; }
    .sidebar-item span { font-size: 9px; }
}