/* ============================================================================
 * 前台样式表 assets/css/style.css
 * ----------------------------------------------------------------------------
 * 风格：大众点评商家店铺简约商用风格(干净、卡片式、层次分明、不浮夸)
 * 适配：电脑 / 平板 / 手机 全响应式(断点 1024 / 768 / 480)
 * 说明：纯原生 CSS，无框架无 CDN，所有颜色与间距统一变量管理
 * ============================================================================ */

/* ==================== 全局变量(主题色与间距) ==================== */
:root {
    --color-primary: #ff6633;        /* 主色：暖橙(大众点评风格) */
    --color-primary-dark: #e55a2b;   /* 主色加深(悬停态) */
    --color-text: #333;              /* 主文字色 */
    --color-text-light: #666;        /* 次要文字色 */
    --color-text-lighter: #999;      /* 更弱文字色 */
    --color-border: #eee;            /* 边框色 */
    --color-bg: #fff;                /* 页面背景 */
    --color-bg-gray: #f7f8fa;        /* 浅灰区块背景 */
    --color-link: #ff6633;           /* 链接色 */
    --radius: 8px;                   /* 卡片圆角 */
    --shadow: 0 2px 8px rgba(0,0,0,.06);   /* 卡片阴影(柔和) */
    --shadow-hover: 0 4px 16px rgba(0,0,0,.1); /* 悬停阴影 */
    --max-width: 1200px;             /* 内容最大宽度 */
    --header-h: 64px;                /* 主导航高度 */
}

/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ==================== 通用容器 ==================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== 顶部联系条 ==================== */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-light);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    flex-wrap: wrap;
}
.top-item { margin-right: 18px; }
.top-bar-right .top-item { margin-right: 0; margin-left: 18px; }
.top-bar a:hover { color: var(--color-primary); }

/* ==================== 主导航 ==================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}
.nav-menu { display: flex; align-items: center; }
.nav-link {
    padding: 0 18px;
    line-height: var(--header-h);
    color: var(--color-text);
    font-size: 15px;
    position: relative;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-primary); font-weight: 600; }
/* 导航激活下划线 */
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* 汉堡按钮(默认隐藏，移动端显示) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 20px;
    background: none; border: none; cursor: pointer;
}
.menu-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--color-text); border-radius: 2px;
    transition: .3s;
}

/* ==================== 轮播 Banner ==================== */
.banner-wrap { position: relative; overflow: hidden; background: #f0f0f0; }
.banner-slider { position: relative; height: 380px; }
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .8s;
    display: flex; align-items: center; justify-content: center;
}
.banner-slide.active { opacity: 1; position: relative; }
.banner-slide img { width: 100%; height: 380px; object-fit: cover; }
.banner-placeholder {
    width: 100%; height: 380px;
    background: linear-gradient(135deg, #ff6633, #ffa066);
}
.banner-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    color: #fff;
}
.banner-caption h2 { font-size: 24px; font-weight: 600; }
.banner-default {
    height: 320px;
    background: linear-gradient(135deg, #ff6633, #ffa066);
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.banner-default h2 { font-size: 30px; margin-bottom: 10px; }
.banner-dots {
    position: absolute; left: 0; right: 0; bottom: 16px;
    text-align: center;
}
.dot {
    display: inline-block;
    width: 8px; height: 8px; margin: 0 4px;
    background: rgba(255,255,255,.5);
    border-radius: 50%; cursor: pointer;
}
.dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ==================== 通用区块 ==================== */
.section { padding: 48px 0; }
.section-gray { background: var(--color-bg-gray); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { font-size: 24px; font-weight: 600; color: var(--color-text); }
.section-sub { font-size: 13px; color: var(--color-text-lighter); margin-top: 6px; letter-spacing: 2px; }
.section-foot { text-align: center; margin-top: 28px; }

.btn-more {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 13px;
    transition: .2s;
}
.btn-more:hover { background: var(--color-primary); color: #fff; }

.empty-tip { text-align: center; color: var(--color-text-lighter); padding: 40px 0; }

/* ==================== 企业简介 ==================== */
.intro-box { max-width: 900px; margin: 0 auto; text-align: center; }
.intro-text { color: var(--color-text-light); line-height: 2; margin-bottom: 20px; text-align: left; }

/* ==================== 产品网格 ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .2s;
    border: 1px solid var(--color-border);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-thumb { width: 100%; height: 200px; overflow: hidden; background: #f5f5f5; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-lighter); background: #f0f0f0; font-size: 13px;
}
.product-info { padding: 16px; }
.product-name {
    font-size: 16px; font-weight: 600; margin-bottom: 8px;
    color: var(--color-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-desc {
    font-size: 13px; color: var(--color-text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 新闻网格(首页) ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .2s;
    border: 1px solid var(--color-border);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-thumb { width: 100%; height: 160px; overflow: hidden; background: #f5f5f5; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-info { padding: 14px; }
.news-date { font-size: 12px; color: var(--color-text-lighter); }
.news-title {
    font-size: 15px; font-weight: 600; margin: 6px 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-desc {
    font-size: 13px; color: var(--color-text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 快捷联系 CTA ==================== */
.section-contact { background: var(--color-primary); color: #fff; }
.contact-cta { text-align: center; padding: 20px 0; }
.contact-cta h2 { font-size: 24px; margin-bottom: 10px; }
.contact-cta p { opacity: .9; margin-bottom: 20px; }
.btn-contact {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: .2s;
}
.btn-contact:hover { transform: scale(1.05); color: var(--color-primary-dark); }

/* ==================== 页面 Banner(内页) ==================== */
.page-banner {
    background: linear-gradient(135deg, #ff6633, #ffa066);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-banner-title { font-size: 28px; font-weight: 600; }
.page-banner-sub { font-size: 13px; opacity: .85; letter-spacing: 3px; margin-top: 8px; }

/* ==================== 富文本(详情/简介) ==================== */
.rich-text { line-height: 2; color: var(--color-text); font-size: 15px; }
.rich-text p { margin-bottom: 14px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 18px 0 10px; }
.rich-text ul, .rich-text ol { margin: 10px 0 10px 20px; }
.rich-text a { color: var(--color-primary); }

/* ==================== 关于我们 ==================== */
.about-content { max-width: 900px; margin: 0 auto; }
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.contact-info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: .2s;
}
.contact-info-card:hover { box-shadow: var(--shadow-hover); }
.ci-ico { font-size: 30px; margin-bottom: 10px; }
.ci-label { font-size: 13px; color: var(--color-text-lighter); margin-bottom: 6px; }
.ci-value { font-size: 16px; color: var(--color-text); font-weight: 500; word-break: break-all; }

/* ==================== 联系我们页 ==================== */
.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.contact-detail-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: .2s;
}
.contact-detail-card:hover { box-shadow: var(--shadow-hover); }
.contact-detail-card-wide { grid-column: span 2; }
.cd-ico { font-size: 28px; flex-shrink: 0; width: 50px; height: 50px;
    background: #fff5f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cd-label { font-size: 13px; color: var(--color-text-lighter); margin-bottom: 4px; }
.cd-value { font-size: 16px; color: var(--color-text); font-weight: 500; word-break: break-all; }
.cd-value a:hover { color: var(--color-primary); }
.btn-nav {
    display: inline-block; margin-top: 10px;
    padding: 6px 18px;
    background: var(--color-primary); color: #fff;
    border-radius: 16px; font-size: 13px;
}
.btn-nav:hover { background: var(--color-primary-dark); color: #fff; }

/* ==================== 面包屑 ==================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--color-text-lighter);
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--color-text-light); }

/* ==================== 详情页 ==================== */
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.detail-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
}
.detail-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.detail-meta {
    font-size: 13px; color: var(--color-text-lighter);
    padding-bottom: 16px; border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}
.detail-meta span { margin-right: 20px; }
.detail-cover { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.detail-cover img { width: 100%; }
.detail-content { margin-top: 16px; }
.detail-foot { text-align: center; margin-top: 30px; }
.btn-back {
    display: inline-block; padding: 8px 24px;
    border: 1px solid var(--color-border); border-radius: 20px;
    color: var(--color-text-light); font-size: 13px;
}
.btn-back:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 侧边栏 */
.detail-side { }
.side-box {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 20px;
}
.side-title {
    font-size: 16px; font-weight: 600; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--color-primary);
}
.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: 14px; }
.side-list li:last-child { border-bottom: none; }
.side-list a { color: var(--color-text-light); }
.side-list a:hover { color: var(--color-primary); }

/* ==================== 新闻列表(列表页) ==================== */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-list-item {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; transition: .2s;
}
.news-list-item:hover { box-shadow: var(--shadow-hover); }
.news-list-thumb { width: 220px; height: 150px; flex-shrink: 0; overflow: hidden; background: #f5f5f5; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.news-list-item:hover .news-list-thumb img { transform: scale(1.05); }
.news-list-info { padding: 18px 22px; flex: 1; }
.news-list-title {
    font-size: 17px; font-weight: 600; margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list-desc {
    font-size: 13px; color: var(--color-text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 10px;
}
.news-list-meta { font-size: 12px; color: var(--color-text-lighter); }
.news-list-meta span { margin-right: 16px; }

/* ==================== 分页 ==================== */
.pagination { text-align: center; margin-top: 32px; }
.page-btn {
    display: inline-block;
    min-width: 36px; height: 36px; line-height: 36px;
    padding: 0 12px; margin: 0 4px;
    border: 1px solid var(--color-border); border-radius: 4px;
    color: var(--color-text-light); font-size: 13px;
    background: #fff;
}
.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==================== 页脚 ==================== */
.site-footer { background: #2b2b2b; color: #b0b0b0; padding-top: 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-intro { font-size: 13px; line-height: 1.8; }
.footer-list li { padding: 5px 0; font-size: 13px; }
.footer-list a:hover { color: var(--color-primary); }
.footer-list .ico { margin-right: 6px; }
.footer-bottom {
    border-top: 1px solid #404040;
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: #808080;
}

/* ============================================================================
 * 响应式适配(平板 768 / 手机 480)
 * ============================================================================ */
/* 平板及以下 */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 32px 0; }
    /* 顶部联系条隐藏(移动端简化) */
    .top-bar { display: none; }
    /* 导航改为汉堡菜单 */
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s;
        box-shadow: 0 4px 8px rgba(0,0,0,.08);
    }
    .nav-menu.open { max-height: 320px; }
    .nav-link { line-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--color-border); }
    .nav-link.active::after { display: none; }

    /* Banner 高度自适应 */
    .banner-slider, .banner-slide img, .banner-placeholder { height: 240px; }
    .banner-default { height: 220px; }
    .banner-default h2 { font-size: 22px; }

    /* 网格单列 */
    .product-grid, .news-grid, .contact-info-grid { grid-template-columns: 1fr; }
    .news-list-item { flex-direction: column; }
    .news-list-thumb { width: 100%; height: 180px; }

    /* 详情页双栏改单栏 */
    .detail-layout { grid-template-columns: 1fr; }
    .detail-wrap { padding: 20px; }

    /* 联系卡片单列 */
    .contact-detail-grid { grid-template-columns: 1fr; }
    .contact-detail-card-wide { grid-column: span 1; }

    /* 页脚单列 */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .page-banner { padding: 36px 0; }
    .page-banner-title { font-size: 22px; }
    .section-title { font-size: 20px; }
}

/* 手机小屏 */
@media (max-width: 480px) {
    body { font-size: 13px; }
    .container { padding: 0 12px; }
    .logo-text { font-size: 17px; }
    .banner-slider, .banner-slide img, .banner-placeholder { height: 200px; }
    .banner-caption { padding: 14px; }
    .banner-caption h2 { font-size: 18px; }
    .detail-title { font-size: 20px; }
    .product-thumb { height: 180px; }
    .news-thumb { height: 140px; }
    .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .page-btn { margin: 2px; }
}
