/**
 * 配色：优雅紫 purple
 * 由 blue.css 自动生成
 */

:root {
    --tpl-primary: #8e24aa;
    --tpl-accent: #6a1b9a;
    --tpl-primary-rgb: 142, 36, 170;
    --tpl-text: #2c3e50;
    --tpl-text-light: #5a6c7d;
    --tpl-bg: #ffffff;
    --tpl-bg-alt: #f5f8fb;
    --tpl-border: #e3e8ee;
    --tpl-footer-bg: #1f2933;
    --tpl-footer-text: #b6c2cf;
    --tpl-radius: 8px;
    --tpl-radius-sm: 4px;
    --tpl-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --tpl-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --tpl-transition: all 0.25s ease;
    --tpl-container: 1200px;
    --tpl-header-h: 64px;
}

/* ========== 基础重置 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--tpl-text);
    background: var(--tpl-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--tpl-primary); text-decoration: none; transition: var(--tpl-transition); }
a:hover { color: var(--tpl-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ========== 布局容器 ========== */
.tpl-container { width: 100%; max-width: var(--tpl-container); margin: 0 auto; padding: 0 20px; }

/* ========== 按钮 ========== */
.tpl-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--tpl-radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--tpl-transition);
    text-align: center;
}
.tpl-btn-primary { background: var(--tpl-primary); color: #fff; }
.tpl-btn-primary:hover { background: var(--tpl-accent); color: #fff; transform: translateY(-1px); }
.tpl-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.tpl-btn-ghost:hover { background: #fff; color: var(--tpl-primary); }
.tpl-btn-light { background: #fff; color: var(--tpl-primary); }
.tpl-btn-light:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.tpl-btn-block { display: block; width: 100%; }

/* ========== 顶部导航 ========== */
.tpl-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--tpl-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.tpl-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--tpl-header-h); }
.tpl-logo { display: flex; align-items: center; }
.tpl-logo-text { font-size: 20px; font-weight: 700; color: var(--tpl-primary); }
.tpl-nav { display: flex; gap: 8px; }
.tpl-nav-link {
    padding: 8px 16px; color: var(--tpl-text); font-size: 15px; border-radius: var(--tpl-radius-sm);
}
.tpl-nav-link:hover, .tpl-nav-link.tpl-active { color: var(--tpl-primary); background: rgba(var(--tpl-primary-rgb), 0.08); }
.tpl-nav-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 22px; background: transparent; border: none; cursor: pointer;
}
.tpl-nav-toggle span { display: block; height: 3px; background: var(--tpl-text); border-radius: 2px; transition: var(--tpl-transition); }

/* ========== Hero ========== */
.tpl-hero {
    background: linear-gradient(135deg, var(--tpl-primary) 0%, var(--tpl-accent) 100%);
    color: #fff; padding: 80px 0 90px; text-align: center;
}
.tpl-hero-title { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.tpl-hero-sub { font-size: 18px; opacity: 0.92; margin-bottom: 32px; max-width: 720px; margin-left: auto; margin-right: auto; }
.tpl-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== 通用 section ========== */
.tpl-section { padding: 64px 0; }
.tpl-section:nth-of-type(even) { background: var(--tpl-bg-alt); }
.tpl-section-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 12px; color: var(--tpl-text); }
.tpl-section-sub { text-align: center; color: var(--tpl-text-light); margin-bottom: 48px; }
.tpl-section-more { text-align: center; margin-top: 32px; }

/* ========== 特色卡片 ========== */
.tpl-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tpl-feature-card {
    background: #fff; padding: 32px 24px; border-radius: var(--tpl-radius);
    text-align: center; box-shadow: var(--tpl-shadow); transition: var(--tpl-transition);
}
.tpl-feature-card:hover { transform: translateY(-4px); box-shadow: var(--tpl-shadow-hover); }
.tpl-feature-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: rgba(var(--tpl-primary-rgb), 0.12); color: var(--tpl-primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.tpl-feature-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--tpl-text); }
.tpl-feature-card p { color: var(--tpl-text-light); font-size: 14px; }

/* ========== 统计数字 ========== */
.tpl-stats-section {
    background: linear-gradient(135deg, var(--tpl-primary), var(--tpl-accent));
    color: #fff;
}
.tpl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.tpl-stat-num { font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.tpl-stat-label { font-size: 14px; opacity: 0.9; }

/* ========== 产品卡片 ========== */
.tpl-products, .tpl-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-product-card {
    background: #fff; border-radius: var(--tpl-radius); overflow: hidden;
    box-shadow: var(--tpl-shadow); transition: var(--tpl-transition);
}
.tpl-product-card:hover { transform: translateY(-4px); box-shadow: var(--tpl-shadow-hover); }
.tpl-product-img { height: 180px; }
.tpl-product-body, .tpl-product-card h3, .tpl-product-card p { padding: 16px 20px 8px; }
.tpl-product-card p { padding-bottom: 20px; color: var(--tpl-text-light); font-size: 14px; }

/* ========== 新闻 ========== */
.tpl-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-news-item {
    background: #fff; padding: 24px; border-radius: var(--tpl-radius);
    box-shadow: var(--tpl-shadow); border-left: 3px solid var(--tpl-primary);
}
.tpl-news-date { color: var(--tpl-primary); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.tpl-news-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--tpl-text); }
.tpl-news-item p { color: var(--tpl-text-light); font-size: 14px; }
.tpl-news-more { display: inline-block; margin-top: 12px; font-size: 14px; }

.tpl-news-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.tpl-news-list .tpl-news-item { display: flex; gap: 24px; align-items: flex-start; }
.tpl-news-list .tpl-news-date { min-width: 100px; }
.tpl-news-body { flex: 1; }

/* ========== CTA ========== */
.tpl-cta {
    background: linear-gradient(135deg, var(--tpl-primary), var(--tpl-accent));
    color: #fff; padding: 64px 0; text-align: center;
}
.tpl-cta h2 { font-size: 28px; margin-bottom: 12px; }
.tpl-cta p { font-size: 16px; opacity: 0.92; margin-bottom: 28px; }

/* ========== 页脚 ========== */
.tpl-footer { background: var(--tpl-footer-bg); color: var(--tpl-footer-text); padding: 48px 0 0; }
.tpl-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.tpl-footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tpl-footer-desc { font-size: 14px; }
.tpl-footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.tpl-footer-col a { display: block; color: var(--tpl-footer-text); font-size: 14px; padding: 4px 0; }
.tpl-footer-col a:hover { color: #fff; }
.tpl-footer-col p { font-size: 14px; padding: 4px 0; }
.tpl-footer-copy {
    text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px;
}

/* ========== 内页 banner ========== */
.tpl-page-banner {
    background: linear-gradient(135deg, var(--tpl-primary), var(--tpl-accent));
    color: #fff; padding: 48px 0; text-align: center;
}
.tpl-page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.tpl-page-banner p { font-size: 16px; opacity: 0.92; }

/* ========== 关于页 ========== */
.tpl-content-block { margin-bottom: 48px; }
.tpl-content-block h2 { font-size: 24px; margin-bottom: 16px; color: var(--tpl-text); }
.tpl-content-block p { color: var(--tpl-text-light); margin-bottom: 12px; line-height: 1.8; }
.tpl-culture-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tpl-culture-card {
    background: #fff; padding: 28px; border-radius: var(--tpl-radius); box-shadow: var(--tpl-shadow);
    border-top: 3px solid var(--tpl-primary);
}
.tpl-culture-card h3 { color: var(--tpl-primary); margin-bottom: 8px; font-size: 17px; }
.tpl-culture-card p { color: var(--tpl-text-light); font-size: 14px; margin: 0; }
.tpl-timeline { position: relative; padding-left: 28px; }
.tpl-timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--tpl-border); }
.tpl-timeline-item { position: relative; margin-bottom: 28px; }
.tpl-timeline-dot { position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--tpl-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tpl-primary); }
.tpl-timeline-content h4 { font-size: 17px; color: var(--tpl-text); margin-bottom: 4px; }
.tpl-timeline-content p { color: var(--tpl-text-light); font-size: 14px; }

/* ========== 联系页 ========== */
.tpl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tpl-contact-info h2, .tpl-contact-form h2 { font-size: 24px; margin-bottom: 24px; color: var(--tpl-text); }
.tpl-contact-item { padding: 16px 0; border-bottom: 1px solid var(--tpl-border); }
.tpl-contact-label { font-size: 13px; color: var(--tpl-text-light); margin-bottom: 4px; }
.tpl-contact-value { font-size: 16px; color: var(--tpl-text); }
.tpl-contact-phone { font-size: 20px; font-weight: 700; color: var(--tpl-primary); }
.tpl-form-row { margin-bottom: 16px; }
.tpl-form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--tpl-text); }
.tpl-form-row input, .tpl-form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--tpl-border); border-radius: var(--tpl-radius-sm);
    font-size: 14px; font-family: inherit; transition: var(--tpl-transition);
}
.tpl-form-row input:focus, .tpl-form-row textarea:focus { outline: none; border-color: var(--tpl-primary); box-shadow: 0 0 0 3px rgba(var(--tpl-primary-rgb), 0.1); }

/* ========== 响应式：平板 ========== */
@media (max-width: 992px) {
    .tpl-features, .tpl-products, .tpl-products-grid, .tpl-news { grid-template-columns: repeat(2, 1fr); }
    .tpl-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .tpl-footer-inner { grid-template-columns: 1fr 1fr; }
    .tpl-culture-grid { grid-template-columns: 1fr; }
    .tpl-hero-title { font-size: 32px; }
}

/* ========== 响应式：手机 ========== */
@media (max-width: 768px) {
    .tpl-nav {
        position: fixed; top: var(--tpl-header-h); right: -100%; width: 75%; max-width: 320px;
        height: calc(100vh - var(--tpl-header-h)); background: #fff;
        flex-direction: column; gap: 0; padding: 16px 0;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease; overflow-y: auto;
    }
    body.tpl-nav-open .tpl-nav { right: 0; }
    body.tpl-nav-open::after {
        content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99;
    }
    .tpl-nav-link { display: block; padding: 14px 24px; border-bottom: 1px solid var(--tpl-border); border-radius: 0; }
    .tpl-nav-toggle { display: flex; }
    body.tpl-nav-open .tpl-nav-toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    body.tpl-nav-open .tpl-nav-toggle span:nth-child(2) { opacity: 0; }
    body.tpl-nav-open .tpl-nav-toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    .tpl-features, .tpl-products, .tpl-products-grid, .tpl-news { grid-template-columns: 1fr; }
    .tpl-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .tpl-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .tpl-contact-grid { grid-template-columns: 1fr; gap: 32px; }

    .tpl-hero { padding: 56px 0 64px; }
    .tpl-hero-title { font-size: 26px; }
    .tpl-hero-sub { font-size: 15px; }
    .tpl-section { padding: 40px 0; }
    .tpl-section-title { font-size: 22px; }
    .tpl-cta h2 { font-size: 22px; }
    .tpl-page-banner h1 { font-size: 24px; }

    .tpl-stat-num { font-size: 30px; }
    .tpl-news-list .tpl-news-item { flex-direction: column; gap: 8px; }
    .tpl-news-list .tpl-news-date { min-width: 0; }
}

/* ========== 响应式：超小屏（<380px） ========== */
@media (max-width: 380px) {
    .tpl-container { padding: 0 12px; }
    .tpl-hero-title { font-size: 22px; }
    .tpl-hero-sub { font-size: 14px; }
    .tpl-hero-actions { flex-direction: column; gap: 8px; }
    .tpl-hero-actions .tpl-btn { width: 100%; }
    .tpl-btn { padding: 10px 18px; font-size: 14px; }
    .tpl-section-title { font-size: 20px; }
    .tpl-section-sub { font-size: 13px; margin-bottom: 28px; }
    .tpl-feature-card, .tpl-news-item, .tpl-product-card .tpl-product-body, .tpl-product-card p { padding: 16px; }
    .tpl-stats { grid-template-columns: 1fr; gap: 20px; }
    .tpl-stat-num { font-size: 26px; }
    .tpl-page-banner { padding: 32px 0; }
    .tpl-page-banner h1 { font-size: 20px; }
    .tpl-page-banner p { font-size: 13px; }
    .tpl-cta { padding: 40px 0; }
    .tpl-cta h2 { font-size: 18px; }
    .tpl-cta p { font-size: 13px; }
    .tpl-footer { padding: 32px 0 0; }
    .tpl-footer-brand { font-size: 17px; }
}
