/* =========================================================
   GreenFuture 主题 - 全局基础样式（所有页面共享）
   设计令牌 / 重置 / 布局容器 / 按钮 / 通用区块
   ========================================================= */
:root {
    /* === Logo 色调系统：青蓝 → 翠绿 === */
    --primary: #06B6D4;        /* Logo 文字主色 Cyan-500 */
    --primary-dark: #0891B2;   /* Cyan-600 */
    --primary-light: #CFFAFE;  /* Cyan-100 */
    --accent: #34D399;         /* Logo 底部绿色 Emerald-400 */
    --accent-dark: #059669;    /* Emerald-600 */
    --secondary: #0F172A;      /* Slate-900 */
    --secondary-light: #334155; /* Slate-700 */
    --bg: #F0FDFA;             /* 极浅青绿背景 */
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow: 0 4px 24px rgba(6,182,212,0.08);
    --shadow-lg: 0 12px 40px rgba(6,182,212,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 10px 24px; border-radius: 24px;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(6,182,212,0.35);
    transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,182,212,0.45); }
.btn-outline {
    background: transparent; color: var(--primary); padding: 10px 24px;
    border-radius: 24px; font-size: 13px; font-weight: 700;
    border: 1.5px solid var(--primary); transition: var(--transition);
    display: inline-block;
}
.btn-outline:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.btn-sm { padding: 6px 16px; font-size: 12px; }

/* ===== 内页面包屑（产品详情 / 产品列表等内页共享） ===== */
.gf-breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.gf-breadcrumb .container { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.gf-breadcrumb a, .gf-breadcrumb .sep { font-size: 13px; color: var(--text-muted); }
.gf-breadcrumb a:hover { color: var(--primary); }
.gf-breadcrumb .sep { color: var(--border); font-weight: 700; }
.gf-breadcrumb .current {
    font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== 通用产品卡片（首页畅销产品 / 详情页相关产品等共用） ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card .img-wrap { display: block; height: 220px; background: var(--bg); position: relative; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.product-card .info { padding: 20px; }
.product-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.product-card .specs { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.product-card .action { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--primary); }

/* ===== Logo（页头/页脚共享，尺寸由各处定义） ===== */
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 22px; font-weight: 800; color: var(--secondary);
}
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; font-weight: 900;
    box-shadow: 0 4px 12px rgba(6,182,212,0.3);
}
.logo span { color: var(--primary); }

/* ===== 社交图标（顶栏/页脚共享） ===== */
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #A5F3FC;
}
.social-icons a:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; transform: translateY(-2px); }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--secondary); margin-bottom: 16px; line-height: 1.2; }
.section-header p { font-size: 17px; color: var(--text-muted); }
.section-header .line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 16px auto 0; }

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 26px; }
}

/* ===== 通用内页 Hero（联系页 / 关于我们等内页共享） ===== */
.gf-page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ECFEFF 0%, var(--bg) 45%, #ECFDF5 100%);
    padding: 72px 0 96px; text-align: center;
}
/* 装饰光斑 */
.gf-page-hero::before, .gf-page-hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
}
.gf-page-hero::before { width: 320px; height: 320px; background: #A5F3FC; top: -120px; left: -80px; }
.gf-page-hero::after  { width: 280px; height: 280px; background: #A7F3D0; bottom: -140px; right: -60px; }
.gf-page-hero .container { position: relative; z-index: 1; }
.gf-page-hero h1 { font-size: 40px; font-weight: 800; color: var(--secondary); line-height: 1.2; margin-bottom: 14px; }
.gf-page-sub { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ===== 眉标胶囊（Hero 标签 / 区块 eyebrow 共享） ===== */
.gf-page-tag {
    display: inline-block; padding: 6px 18px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), #D1FAE5);
    color: var(--primary-dark); font-size: 12px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
}

/* ===== 滚动渐入（.gf-reveal → .in，由 gf/common.js 驱动） ===== */
.gf-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.gf-reveal.in { opacity: 1; transform: none; }

/* ===== 通用新闻卡片（搜索结果 / 新闻列表共用；横向：左图右文） ===== */
.gf-news-list { display: flex; flex-direction: column; gap: 20px; }
.gf-news-card {
    display: grid; grid-template-columns: 260px 1fr;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition);
}
.gf-news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gf-news-img { display: block; height: 100%; min-height: 170px; background: var(--bg); overflow: hidden; }
.gf-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gf-news-card:hover .gf-news-img img { transform: scale(1.06); }
.gf-news-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
}
.gf-news-info { padding: 22px 26px; display: flex; flex-direction: column; }
.gf-news-type {
    align-self: flex-start; padding: 3px 12px; border-radius: 12px; margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-light), #D1FAE5);
    color: var(--primary-dark); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.gf-news-info h3 { font-size: 17px; font-weight: 700; color: var(--secondary); line-height: 1.4; margin-bottom: 8px; }
.gf-news-card:hover .gf-news-info h3 { color: var(--primary); }
.gf-news-info p {
    font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gf-news-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gf-news-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.gf-news-date svg { color: var(--primary); }

/* ===== 通用空状态（产品列表 / 搜索结果 / 新闻列表共用） ===== */
.gf-empty {
    text-align: center; padding: 72px 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.gf-empty-icon {
    width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #D1FAE5);
    color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.gf-empty h3 { font-size: 19px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.gf-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

/* ===== 通用分页（最多 5 个页码 + 首尾省略；产品列表 / 新闻列表共用） ===== */
.gf-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.gf-page-link {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    color: var(--secondary-light); transition: var(--transition);
}
.gf-page-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.gf-page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 12px rgba(6,182,212,0.3);
}
.gf-page-ellipsis { border: none; background: none; color: var(--text-muted); }
.gf-page-ellipsis:hover { transform: none; color: var(--text-muted); }

/* ===== 通用富文本排版（th:utext 富文本区域：产品描述 / 新闻正文等共用） ===== */
.gf-richtext { font-size: 15px; color: var(--secondary-light); line-height: 1.9; }
.gf-richtext p { margin-bottom: 16px; }
.gf-richtext h2, .gf-richtext h3, .gf-richtext h4 {
    font-size: 17px; font-weight: 800; color: var(--secondary);
    margin: 28px 0 14px; display: flex; align-items: center; gap: 10px;
}
.gf-richtext h2 { font-size: 20px; }
.gf-richtext h3 { font-size: 18px; }
.gf-richtext h2::before, .gf-richtext h3::before, .gf-richtext h4::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.gf-richtext ul { margin: 0 0 16px; }
.gf-richtext ul li { position: relative; padding: 6px 0 6px 28px; }
.gf-richtext ul li::before {
    content: '✓'; position: absolute; left: 0; top: 6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #D1FAE5);
    color: var(--accent-dark); font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.gf-richtext ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.gf-richtext ol li { padding: 4px 0; }
.gf-richtext img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px auto 20px; }
.gf-richtext a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.gf-richtext a:hover { color: var(--accent-dark); }
.gf-richtext blockquote {
    margin: 0 0 16px; padding: 14px 18px;
    background: linear-gradient(90deg, var(--bg), #ECFDF5);
    border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.gf-richtext table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.gf-richtext th, .gf-richtext td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.gf-richtext thead th {
    background: linear-gradient(90deg, var(--bg), #ECFDF5);
    color: var(--secondary); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.gf-richtext tbody tr:nth-child(even) { background: #FAFDFC; }
.gf-richtext tbody td:first-child { font-weight: 600; color: var(--secondary); }

@media (max-width: 768px) {
    .gf-page-hero { padding: 52px 0 84px; }
    .gf-page-hero h1 { font-size: 28px; }
    .gf-news-card { grid-template-columns: 1fr; }
    .gf-news-img { min-height: 180px; }
}
