/* ============================================
   南亚塑胶工业（厦门）有限公司 官网样式
   主色：台塑蓝 #00529B
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00529B;
    --primary-dark: #003d73;
    --primary-light: #e8f0f8;
    --accent: #c8102e;
    --text-dark: #222;
    --text-main: #333;
    --text-sub: #666;
    --text-light: #999;
    --bg-gray: #f5f7fa;
    --bg-white: #fff;
    --border: #e5e5e5;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 82, 155, 0.15);
    --radius: 6px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: var(--primary-dark);
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ccc;
    margin-left: 20px;
}

.top-bar a:hover {
    color: #fff;
}

/* ========== 头部 Logo + 导航 ========== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-tel .tel-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.header-tel .tel-info p {
    font-size: 12px;
    color: var(--text-light);
}

.header-tel .tel-info strong {
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
}

/* ========== 导航菜单 ========== */
.nav {
    background: var(--primary);
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
}

.nav li {
    position: relative;
}

.nav li a {
    display: block;
    padding: 15px 26px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav li a:hover,
.nav li a.active {
    background: var(--primary-dark);
}

.nav li a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
}

/* ========== Banner 轮播 ========== */
.banner {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--primary-dark);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 20, 45, 0.88) 0%, rgba(0, 20, 45, 0.55) 60%, rgba(0, 20, 45, 0.35) 100%);
}

.banner-slide .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 28px;
    color: #ffffff;
    opacity: 0.95;
    max-width: 560px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dots span {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dots span.active {
    background: #fff;
}

/* ========== 通用按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 82, 155, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #a00d24;
    transform: translateY(-2px);
}

/* ========== 通用区块标题 ========== */
.section {
    padding: 70px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 30px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header .subtitle {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header .line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
}

/* ========== 企业精神标语 ========== */
.slogan-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.slogan-section h3 {
    font-size: 26px;
    letter-spacing: 8px;
    font-weight: 500;
    margin-bottom: 8px;
}

.slogan-section p {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* ========== 企业概况数据卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-white);
    padding: 36px 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.stat-card .num {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .num .unit {
    font-size: 16px;
    font-weight: 400;
    margin-left: 4px;
}

.stat-card p {
    font-size: 15px;
    color: var(--text-sub);
}

/* ========== 产品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 200px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img .placeholder-icon {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
}

.product-img .product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 14px;
}

.product-info .product-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.product-info .product-link:hover {
    color: var(--primary-dark);
}

/* ========== 关于我们简介 ========== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-text .feature-list {
    margin: 24px 0;
}

.about-text .feature-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-main);
}

.about-text .feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 380px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 新闻列表 ========== */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.news-item:hover {
    padding-left: 10px;
}

.news-date {
    min-width: 90px;
    text-align: center;
    padding-right: 24px;
    border-right: 2px solid var(--primary-light);
}

.news-date .day {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.news-date .month {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.news-content {
    flex: 1;
    padding-left: 24px;
}

.news-content h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.news-content h4 a:hover {
    color: var(--primary);
}

.news-content p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

.news-content .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary);
}

/* ========== CTA 区块 ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 表单样式 ========== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    padding: 14px 50px;
    font-size: 16px;
}

.form-tip {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
}

/* 表单提交成功提示 */
.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success .success-icon {
    width: 70px;
    height: 70px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-sub);
}

/* ========== 联系信息 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.contact-item .text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item .text p {
    color: var(--text-sub);
    font-size: 14px;
}

/* ========== 页面内页 Banner ========== */
.page-banner {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h2 {
    font-size: 34px;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-banner p {
    font-size: 15px;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* 面包屑 */
.breadcrumb {
    background: var(--bg-gray);
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-sub);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========== 文章内容页 ========== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-content h1 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 18px;
    line-height: 2;
    color: var(--text-main);
}

.article-body h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 30px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.article-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--text-sub);
}

/* 文章内嵌图片 */
.article-body .news-img {
    text-align: center;
    margin: 24px 0;
}

.article-body .news-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

/* 文章末尾二维码 */
.article-body .news-qrcode-box {
    margin-top: 40px;
    padding: 24px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.article-body .news-qrcode-box p {
    margin-bottom: 12px;
    color: var(--text-sub);
    line-height: 1.8;
}

.article-body .news-qrcode-box .news-qrcode-img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: inline-block;
}

.article-body .news-qrcode-box strong {
    color: var(--primary);
    font-size: 18px;
}

@media (max-width: 768px) {
    .article-body .news-qrcode-box .news-qrcode-img {
        width: 140px;
        height: 140px;
    }
}

/* ========== 产品详情/分类页 ========== */
.product-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.product-category-tabs a {
    padding: 8px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-sub);
    background: var(--bg-white);
}

.product-category-tabs a:hover,
.product-category-tabs a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 代理优势 ========== */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.advantage-card .adv-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
}

.advantage-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ========== 底部 ========== */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 8px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #999;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-col .footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.footer-col .footer-logo h3 {
    color: #fff;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 82, 155, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
    }

    .logo-text h1 {
        font-size: 17px;
    }

    .header-tel .tel-info strong {
        font-size: 17px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav ul {
        display: none;
        flex-direction: column;
    }

    .nav ul.show {
        display: flex;
    }

    .nav li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .banner {
        height: 320px;
    }

    .banner-content h2 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .section {
        padding: 45px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .slogan-section h3 {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-card .num {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-img {
        height: 140px;
    }

    .about-wrap,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img {
        height: 240px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-container {
        padding: 24px;
    }

    .article-content {
        padding: 24px;
    }

    .article-content h1 {
        font-size: 20px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-banner {
        height: 160px;
    }

    .page-banner h2 {
        font-size: 24px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        display: flex;
        align-items: baseline;
        gap: 8px;
        border-right: none;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .news-content {
        padding-left: 0;
    }

    .cta-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== 智能聊天机器人 ========== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: "Microsoft YaHei", sans-serif;
}

.chat-toggle-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    border: 3px solid #00529B;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 82, 155, 0.35), inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    animation: chatPulse 2s infinite;
    padding: 0;
}

.chat-toggle-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(0, 82, 155, 0.45), inset 0 1px 0 rgba(255,255,255,0.8);
}

.chat-logo-img {
    width: 46px;
    height: auto;
    display: block;
    object-fit: contain;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 6px 24px rgba(0, 82, 155, 0.45), 0 0 0 0 rgba(0, 82, 155, 0.4);
    }
    70% {
        box-shadow: 0 6px 24px rgba(0, 82, 155, 0.45), 0 0 0 16px rgba(0, 82, 155, 0);
    }
    100% {
        box-shadow: 0 6px 24px rgba(0, 82, 155, 0.45), 0 0 0 0 rgba(0, 82, 155, 0);
    }
}

.chat-toggle-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff4757, #c8102e);
    color: #fff;
    font-size: 11px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(200, 16, 46, 0.4);
}

.chat-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}

.chat-panel.open {
    display: flex;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #00529B, #003d73);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .chat-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-header .chat-title-text h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

.chat-header .chat-title-text p {
    font-size: 11px;
    opacity: 0.8;
    margin: 2px 0 0;
}

.chat-header .chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    line-height: 1;
}

.chat-header .chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f7fa;
}

.chat-msg {
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.chat-msg.bot {
    justify-content: flex-start;
}

.chat-msg.user {
    justify-content: flex-end;
    margin-left: auto;
}

.chat-msg .msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-msg.bot .msg-avatar {
    background: #00529B;
    color: #fff;
}

.chat-msg.user .msg-avatar {
    background: #e8f0f8;
    color: #00529B;
}

.chat-msg .msg-bubble {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-msg.bot .msg-bubble {
    background: #fff;
    color: #333;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 联系信息卡片 */
.contact-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
    border: 1px solid #d4e4f3;
    border-radius: 10px;
    padding: 14px;
    margin-top: 8px;
    min-width: 220px;
}

.contact-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #d4e4f3;
}

.contact-card .card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00529B, #003d73);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.contact-card .card-info h5 {
    font-size: 15px;
    color: #003d73;
    margin: 0;
    font-weight: 600;
}

.contact-card .card-info p {
    font-size: 11px;
    color: #888;
    margin: 2px 0 0;
}

.contact-card .card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #444;
}

.contact-card .card-item .icon {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.contact-card .card-item .value {
    font-weight: 500;
    color: #00529B;
}

.contact-card .card-item a {
    color: #00529B;
    text-decoration: none;
    font-weight: 500;
}

.contact-card .card-item a:hover {
    text-decoration: underline;
}

.chat-msg.user .msg-bubble {
    background: #00529B;
    color: #fff;
    border-top-right-radius: 2px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-quick-btn {
    background: #fff;
    border: 1px solid #00529B;
    color: #00529B;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    background: #00529B;
    color: #fff;
}

.chat-input-area {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-phone-input {
    margin-bottom: 8px;
}

.chat-phone-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.chat-phone-input input:focus {
    border-color: #00529B;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.chat-input-row input:focus {
    border-color: #00529B;
}

.chat-send-btn {
    background: #00529B;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #003d73;
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    width: fit-content;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: #00529B;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 32px);
        right: -8px;
        height: 70vh;
    }
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }
}

/* ========== 点数工具页 ========== */
.tool-hero {
    background: linear-gradient(135deg, #0d2a5e 0%, #1a4a9e 55%, #2d6cc8 100%);
    padding: 70px 0;
    text-align: center;
    color: #fff;
}

.tool-hero h2 {
    font-size: 38px;
    margin-bottom: 16px;
    color: #ffd700;
}

.tool-hero .tool-hero-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 12px;
}

.tool-hero .tool-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}

.tool-hero .tool-hero-tag {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 32px;
    background: #ffd700;
    color: #0d2a5e;
    font-size: 18px;
    font-weight: 700;
    border-radius: 40px;
}

.tool-section {
    padding: 60px 0;
}

.tool-section-gray {
    background: #f5f7fb;
}

.tool-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tool-purpose-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-top: 4px solid #1a4a9e;
}

.tool-purpose-card .icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.tool-purpose-card h4 {
    font-size: 18px;
    color: #0d2a5e;
    margin-bottom: 10px;
}

.tool-purpose-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.tool-purpose-text {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    color: #444;
    line-height: 2.2;
}

.tool-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 26px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #eef1f6;
}

.tool-feature-card .num {
    font-size: 14px;
    color: #1a4a9e;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.tool-feature-card h4 {
    font-size: 18px;
    color: #0d2a5e;
    margin-bottom: 10px;
}

.tool-feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
}

.tool-scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-scene-card {
    background: #fff;
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    border: 1px solid #eef1f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tool-scene-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.tool-scene-card h4 {
    font-size: 16px;
    color: #0d2a5e;
    margin-bottom: 8px;
}

.tool-scene-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

.tool-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tool-qr-img {
    width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.tool-qr-info h3 {
    font-size: 24px;
    color: #0d2a5e;
    margin-bottom: 14px;
}

.tool-qr-info p {
    font-size: 15px;
    color: #666;
    line-height: 2;
}

.tool-qr-info .tool-qr-free {
    font-size: 18px;
    color: #e8a200;
    font-weight: 700;
    margin-top: 10px;
}

.tool-contact-bar {
    background: #0d2a5e;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.tool-contact-bar h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffd700;
}

.tool-contact-bar p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.9;
}

.tool-contact-bar .tel {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* 首页点数工具模块 */
.tool-home-section {
    background: linear-gradient(135deg, #0d2a5e 0%, #1a4a9e 60%, #2d6cc8 100%);
    padding: 60px 0;
    color: #fff;
}

.tool-home-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-home-info {
    flex: 1;
}

.tool-home-info h3 {
    font-size: 30px;
    color: #ffd700;
    margin-bottom: 16px;
}

.tool-home-info p {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 2;
    margin-bottom: 10px;
}

.tool-home-info .btn {
    margin-top: 16px;
}

.tool-home-qr {
    text-align: center;
    flex-shrink: 0;
}

.tool-home-qr img {
    width: 170px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.tool-home-qr p {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 992px) {
    .tool-purpose-grid, .tool-scene-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-qr-wrap {
        flex-direction: column;
        gap: 30px;
        padding: 36px 24px;
    }
    .tool-home-wrap {
        flex-direction: column-reverse;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .tool-purpose-grid, .tool-feature-grid, .tool-scene-grid {
        grid-template-columns: 1fr;
    }
    .tool-hero h2 {
        font-size: 28px;
    }
    .tool-hero .tool-hero-sub {
        font-size: 16px;
    }
    .tool-qr-img {
        width: 220px;
    }
}
