/* ============================================
   common.css - 全局公用样式
   品牌主色：#fe0c22
   新增：CTA 横幅区块样式
   ============================================ */

/* ---------- CSS变量 ---------- */
:root {
    --color-primary: #fe0c22;
    --color-primary-light: #ff3d4f;
    --color-primary-dark: #d40019;
    --color-primary-rgb: 254, 12, 34;
    --color-accent: #fe0c22;
    --color-accent-hover: #d40019;
    --color-bg: #f9f9f9;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-border: #e0e0e0;
    --color-success: #2e7d32;
    --font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --section-padding: 80px 0;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* 全局重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--color-text); background: var(--color-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-tag { display: inline-block; font-size: 0.875rem; color: var(--color-primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; background: rgba(var(--color-primary-rgb), 0.08); padding: 4px 16px; border-radius: 50px; }
.section-header h2 { font-size: 2rem; color: #222; font-weight: 700; margin-bottom: 16px; }
.section-header .section-desc { font-size: 1.05rem; color: var(--color-text-light); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* 顶部导航 */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--color-white); box-shadow: 0 1px 6px rgba(0,0,0,0.06); height: var(--header-height); transition: var(--transition); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: #222; }
.site-logo img { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.95rem; color: var(--color-text); font-weight: 500; padding: 8px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: var(--transition); }
.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: 10px 22px !important; border-radius: 50px; font-weight: 600; }
.nav-cta:hover { background: var(--color-primary-dark); }
.nav-cta::after { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #333; border-radius: 2px; transition: var(--transition); }

/* 按钮 */
.btn { display: inline-block; padding: 14px 36px; border-radius: 50px; font-size: 1rem; font-weight: 600; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(254,12,34,0.35); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }
.btn-white { background: #fff; color: var(--color-primary); border: 2px solid #fff; }
.btn-white:hover { background: #f5f5f5; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* 页脚 */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,0.75); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 0.9rem; line-height: 2; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-primary); }

/* 回到顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--color-primary); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 999; box-shadow: var(--shadow); transition: var(--transition); }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ---------- 新增：CTA 咨询横幅（全站通用）---------- */
.cta-section {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.cta-section .container {
    max-width: 700px;
}
.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.cta-section p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
}
.cta-section .btn {
    font-size: 1.1rem;
    padding: 16px 44px;
    background: #fff;
    color: var(--color-primary);
    border: none;
}
.cta-section .btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    :root { --header-height: 60px; --section-padding: 50px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 16px; }
    .main-nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-section h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}