/* ============================================================
   CG喷涂官网 - 主样式表
   喷漆行业现代企业官网风格
   ============================================================ */

/* ----- CSS 变量 ----- */
:root {
    --primary: #e8590c;        /* 主色-橙色（工业暖色调） */
    --primary-dark: #d1470a;
    --primary-light: #ffd8a8;
    --secondary: #1a1a2e;      /* 深色 */
    --accent: #0ea5e9;         /* 强调色-蓝 */
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --white: #fff;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --transition: all 0.3s ease;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--secondary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-sm {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    padding: 8px 20px;
    font-size: 0.9rem;
}
.btn-outline-sm:hover { background: var(--primary); color: var(--white); }

/* ----- Header ----- */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}
.logo i { color: var(--primary); font-size: 1.8rem; }
.logo:hover { color: var(--secondary); }
.mobile-menu-btn { display: none; }
.main-nav { display: flex; }
.main-nav ul { display: flex; list-style: none; gap: 8px; flex-wrap: wrap; justify-content: center; }
.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); background: var(--primary-light); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ----- Hero Banner ----- */
.hero-banner {
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), #2d2d5e);
}
.hero-title { font-size: 3rem; color: var(--white); margin-bottom: 16px; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- Page Banner ----- */
.page-banner {
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), #2d2d5e);
}
.page-banner h1 { color: var(--white); font-size: 2.2rem; }
.page-banner p { opacity: 0.85; margin-top: 8px; font-size: 1.1rem; }

/* ----- Sections ----- */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}
.section-cta { text-align: center; margin-top: 40px; }
.intro-text { max-width: 800px; margin: 0 auto 40px; text-align: center; color: var(--text-light); }

/* ----- About Preview ----- */
.about-preview { text-align: center; }
.about-preview-content { max-width: 800px; margin: 0 auto 24px; color: var(--text-light); }

/* ----- Card Grid ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); margin-bottom: 16px; }
.card-link { font-weight: 600; color: var(--primary); }
.card-img img { border-radius: var(--radius); margin-bottom: 16px; width: 100%; }

/* ----- Case Grid ----- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; margin-top: 40px; }
.case-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.case-card-img {
    height: 220px;
    background: var(--bg-light) center/cover no-repeat;
}
.case-card-img.placeholder { background: linear-gradient(135deg, #e0e0e0, #d0d0d0); }
.case-card-body { padding: 20px 24px; }
.case-card-body h3 { margin-bottom: 6px; }
.case-client { display: inline-block; color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.case-date { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.case-card-body p { color: var(--text-light); margin-bottom: 12px; }

/* ----- Full-Width Image ----- */
.full-width-image {
    text-align: center;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.full-width-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.full-width-image figcaption {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ----- Case Meta ----- */
.case-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px; background: var(--bg-light); border-radius: var(--radius); }
.case-meta span { font-size: 0.95rem; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.before-after-item { text-align: center; }
.before-after-item .label {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.before-after .caption { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ----- News List ----- */
.news-list { margin-top: 40px; }
.news-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-hover); }
.news-item-content { flex: 1; }
.news-date { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.news-item-content h3 { margin-bottom: 8px; font-size: 1.2rem; }
.news-item-content h3 a { color: var(--secondary); }
.news-item-content h3 a:hover { color: var(--primary); }
.news-item-content p { color: var(--text-light); margin-bottom: 8px; }
.news-author { color: var(--text-muted); font-size: 0.85rem; }
.news-item-img {
    width: 200px;
    min-height: 140px;
    border-radius: var(--radius);
    background: var(--bg-light) center/cover no-repeat;
    flex-shrink: 0;
}

/* ----- News Detail ----- */
.news-detail { max-width: 800px; }
.news-header { margin-bottom: 32px; text-align: center; }
.news-header h1 { font-size: 2rem; margin-bottom: 12px; }
.news-meta { color: var(--text-muted); display: flex; gap: 20px; justify-content: center; }
.news-meta i { margin-right: 4px; color: var(--primary); }
.news-summary {
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}
.news-body { line-height: 1.9; }

/* ----- Content Page ----- */
.content-page { max-width: 860px; }
.content-page h2 { margin: 40px 0 16px; }
.content-page h3 { margin: 28px 0 12px; }
.content-page p { margin-bottom: 16px; color: var(--text-light); }

/* ----- Image-Text Row ----- */
.image-text-row {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 32px 0;
}
.image-text-row.image-right { flex-direction: row-reverse; }
.image-text-img { flex: 0 0 45%; }
.image-text-content { flex: 1; }

/* ----- Features Grid ----- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.feature-item {
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.feature-item:hover { background: var(--white); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }

/* ----- Timeline ----- */
.timeline { position: relative; padding: 20px 0; margin: 32px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}
.timeline-item { display: flex; gap: 20px; margin-bottom: 32px; position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 94px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
    flex: 0 0 100px;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    padding-top: 4px;
    padding-right: 24px;
}
.timeline-content { flex: 1; padding-left: 12px; }

/* ----- FAQ ----- */
.faq-question {
    color: var(--primary);
    margin: 28px 0 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 1.1rem;
}
.faq-answer { padding: 0 16px 16px; }

/* ----- Blockquote ----- */
blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
blockquote cite { display: block; margin-top: 8px; color: var(--text-muted); font-style: normal; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-details { margin-top: 24px; }
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}
.contact-item:hover { background: var(--primary-light); }
.contact-item i { font-size: 1.4rem; color: var(--primary); margin-top: 2px; }
.contact-item strong { display: block; margin-bottom: 2px; color: var(--secondary); }
.contact-item p { color: var(--text-light); }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 400px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: var(--bg-light);
    color: var(--text-muted);
    border-radius: var(--radius);
}
.map-placeholder i { font-size: 3rem; margin-bottom: 12px; }

/* ----- Featured Image ----- */
.featured-image { margin: 24px 0; text-align: center; }
.featured-image img { border-radius: var(--radius); }

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.page-current { color: var(--text-muted); font-size: 0.95rem; }

/* ----- Client Logos ----- */
.client-logos {
    background: #fff;
    padding: 36px 0 28px;
    border-bottom: 1px solid #e8e8e8;
}
.client-logos-heading {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 3px;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}
.client-logos-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 8px;
}
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 12px;
}
.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .client-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Footer ----- */
.site-footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 60px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; }
.footer-col h4 i { color: var(--primary); margin-right: 6px; }
.footer-col p { margin-bottom: 8px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #aaa; }
.footer-col ul a:hover { color: var(--primary); }
.footer-col i { margin-right: 6px; color: var(--primary); width: 16px; text-align: center; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ----- Empty State ----- */
.empty-text { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 1.1rem; }

/* ============================================================
   Responsive
   ============================================================ */
/* ----- Lightbox ----- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 4px 40px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-caption {
    color: #ccc;
    font-size: 1rem;
    margin-top: 14px;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
}
.lightbox-close:hover { color: var(--primary); }

/* ----- Feature Card (About Page) ----- */
.feature-card { cursor: pointer; }
.feature-card:hover {
    box-shadow: 0 6px 24px rgba(232,89,12,0.2);
    transform: translateY(-3px);
}
.feature-card:hover::after {
    content: "\f00e  \70B9\51FB\653E\5927";
    font-family: "Font Awesome 6 Free", var(--font);
    font-weight: 900;
    display: block;
    font-size: 0.78rem;
    color: var(--primary);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .lightbox-close { top: 10px; right: 20px; font-size: 30px; }

    .main-nav a { padding: 8px 12px; font-size: 0.85rem; }

    .hero-title { font-size: 2rem; }
    .hero-banner { padding: 80px 0; }

    .footer-grid { grid-template-columns: 1fr; }
    .case-grid, .card-grid { grid-template-columns: 1fr; }
    .image-text-row, .image-text-row.image-right { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-item-img { width: 100%; height: 180px; }
    .before-after { grid-template-columns: 1fr; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-banner { padding: 60px 0; }
    .section { padding: 50px 0; }
}