/* ========================================
   自考通企业官网 - 全站样式
   响应式断点：768px
   ======================================== */

/* === 重置与基础 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { color: #333; text-decoration: none; transition: color 0.3s; }
a:hover { color: #4facfe; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* === 容器 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 公共标题 === */
.section-title { text-align: center; font-size: 2rem; color: #333; margin-bottom: 10px; }
.section-subtitle { text-align: center; font-size: 1rem; color: #888; margin-bottom: 40px; }

/* === 页面Banner === */
.page-banner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 60px 0 50px; text-align: center; }
.page-banner h1 { font-size: 2rem; margin-bottom: 10px; }
.page-banner p { font-size: 1rem; opacity: 0.85; }

/* ========================================
   导航栏
   ======================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.logo { display: flex; align-items: center; }
.logo img{
    width: 70px;
}
.logo-text { font-size: 1.5rem; font-weight: 700; color: #4facfe; letter-spacing: 2px; }

/* PC端导航 */
.main-nav { display: block; }
.nav-list { display: flex; gap: 5px; }
.nav-item a { display: block; padding: 8px 18px; font-size: 0.95rem; color: #555; border-radius: 6px; transition: all 0.3s; }
.nav-item a:hover { color: #4facfe; background: #f0f7ff; }
.nav-item.active a { color: #fff; background: #4facfe; }

/* 汉堡菜单按钮 */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger-line { display: block; width: 24px; height: 2px; background: #333; margin: 3px 0; border-radius: 2px; transition: all 0.3s; }
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* 移动端导航 */
.mobile-nav { display: none; background: #fff; border-top: 1px solid #eee; padding: 10px 0; }
.mobile-nav.open { display: block; }
.mobile-nav-list { }
.mobile-nav-item a { display: block; padding: 12px 20px; font-size: 1rem; color: #555; border-bottom: 1px solid #f5f5f5; }
.mobile-nav-item a:hover { color: #4facfe; background: #f9fbff; }
.mobile-nav-item.active a { color: #4facfe; font-weight: 600; border-left: 3px solid #4facfe; }

/* body增加padding-top避免导航遮挡 */
body { padding-top: 70px; }

/* ========================================
   轮播图
   ======================================== */
.banner-section { position: relative; overflow: hidden; }
.banner-slider { position: relative; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-bg { min-height: 450px; display: flex; align-items: center; justify-content: center; }
.banner-content { text-align: center; color: #fff; }
.banner-content h1 { font-size: 2.5rem; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.banner-content p { font-size: 1.15rem; margin-bottom: 25px; opacity: 0.9; }
.banner-btn { display: inline-block; padding: 12px 36px; background: rgba(255,255,255,0.2); color: #fff; border: 2px solid #fff; border-radius: 30px; font-size: 1rem; transition: all 0.3s; }
.banner-btn:hover { background: #fff; color: #333; }

/* 轮播指示器 */
.banner-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }

/* 轮播箭头 */
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.banner-arrow:hover { background: rgba(255,255,255,0.4); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ========================================
   核心优势
   ======================================== */
.advantages-section { padding: 70px 0; background: #f8fafc; }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.advantage-card { background: #fff; border-radius: 12px; padding: 35px 25px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.advantage-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.advantage-icon { margin-bottom: 20px; }
.advantage-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #333; }
.advantage-card p { font-size: 0.9rem; color: #777; line-height: 1.6; }

/* ========================================
   核心业务
   ======================================== */
.business-section { padding: 70px 0; }
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.business-card { background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; border: 1px solid #eee; transition: all 0.3s; }
.business-card:hover { border-color: #4facfe; box-shadow: 0 6px 20px rgba(79,172,254,0.15); }
.business-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.bg-blue { background: linear-gradient(135deg, #667eea, #4facfe); }
.bg-red { background: linear-gradient(135deg, #f5576c, #ff6b6b); }
.bg-purple { background: linear-gradient(135deg, #764ba2, #667eea); }
.bg-green { background: linear-gradient(135deg, #00b894, #55efc4); }
.business-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #333; }
.business-card p { font-size: 0.9rem; color: #777; line-height: 1.6; }

/* ========================================
   最新资讯（首页）
   ======================================== */
.news-section { padding: 70px 0; background: #f8fafc; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 35px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.news-card:hover { transform: translateY(-3px); }
.news-thumb { height: 180px; overflow: hidden; background: #eee; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-info { padding: 20px; }
.news-title { font-size: 1.05rem; margin-bottom: 8px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-time { font-size: 0.85rem; color: #999; margin-bottom: 10px; }
.news-desc { font-size: 0.9rem; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.news-more { font-size: 0.9rem; color: #4facfe; }
.news-more:hover { text-decoration: underline; }
.news-empty { text-align: center; padding: 40px; color: #999; grid-column: 1 / -1; }
.news-more-btn { text-align: center; }
.btn-outline { display: inline-block; padding: 12px 36px; border: 2px solid #4facfe; color: #4facfe; border-radius: 30px; font-size: 1rem; transition: all 0.3s; }
.btn-outline:hover { background: #4facfe; color: #fff; }

/* ========================================
   新闻列表页
   ======================================== */
.news-list-section { padding: 50px 0; }
.news-list-item { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid #eee; }
.news-list-item:first-child { padding-top: 0; }
.news-list-thumb { flex-shrink: 0; width: 220px; height: 150px; border-radius: 8px; overflow: hidden; background: #eee; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: fill; }
.news-list-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-list-title { font-size: 1.2rem; margin-bottom: 10px; }
.news-list-title a { color: #333; transition: color 0.3s; }
.news-list-title a:hover { color: #4facfe; }
.news-list-meta { font-size: 0.85rem; color: #999; margin-bottom: 10px; display: flex; gap: 20px; flex-wrap: wrap; }
.news-list-desc { font-size: 0.95rem; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.read-more { font-size: 0.9rem; color: #4facfe; }
.read-more:hover { text-decoration: underline; }
.news-empty { text-align: center; padding: 60px 0; color: #999; font-size: 1rem; }

/* 分页样式 */
.pagination-wrap { margin-top: 35px; text-align: center; }
.pagination-wrap .pagination { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pagination-wrap .pagination a, .pagination-wrap .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; color: #555; transition: all 0.3s; }
.pagination-wrap .pagination a:hover { background: #4facfe; color: #fff; border-color: #4facfe; }
.pagination-wrap .pagination .current { background: #4facfe; color: #fff; border-color: #4facfe; }

/* ========================================
   新闻详情页
   ======================================== */
.news-detail-section { padding: 50px 0; }
.news-detail { max-width: 1100px; margin: 0 auto; }
.detail-title { font-size: 1.8rem; text-align: center; margin-bottom: 15px; color: #333; }
.detail-meta { text-align: center; font-size: 0.9rem; color: #999; margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.detail-content { font-size: 1rem; line-height: 1.8; color: #444; }
.detail-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 15px 0; }
.detail-content p { margin-bottom: 15px; }
.detail-actions { margin-top: 40px; text-align: center; }
.btn-back { display: inline-block; padding: 10px 30px; background: #f5f5f5; color: #555; border-radius: 6px; transition: all 0.3s; }
.btn-back:hover { background: #4facfe; color: #fff; }

/* ========================================
   品牌页
   ======================================== */
.brand-section { padding: 50px 0; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.brand-card { background: #fff; border-radius: 12px; padding: 35px 25px; text-align: center; border: 1px solid #eee; transition: all 0.3s; }
.brand-card:hover { border-color: #4facfe; box-shadow: 0 8px 25px rgba(79,172,254,0.12); transform: translateY(-3px); }
.brand-logo { width: 100px; height: 100px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.brand-logo img { width: 75%; height: 75%; object-fit: cover; }
.brand-name { font-size: 1.2rem; margin-bottom: 12px; color: #333; }
.brand-desc { font-size: 0.9rem; color: #777; line-height: 1.6; margin-bottom: 20px; min-height: 48px; }
.brand-btn { display: inline-block; padding: 10px 28px; background: #4facfe; color: #fff; border-radius: 25px; font-size: 0.9rem; transition: all 0.3s; }
.brand-btn:hover { background: #3a9bdf; color: #fff; }
.brand-empty { text-align: center; padding: 60px 0; color: #999; grid-column: 1 / -1; }

/* ========================================
   联系我们页
   ======================================== */
.contact-section { padding: 50px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-title { font-size: 1.4rem; margin-bottom: 25px; color: #333; padding-bottom: 12px; border-bottom: 2px solid #4facfe; display: inline-block; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.contact-icon { flex-shrink: 0; width: 44px; height: 44px; background: #f0f7ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-text h4 { font-size: 0.95rem; color: #333; margin-bottom: 3px; }
.contact-text p { font-size: 0.95rem; color: #666; }

/* 二维码 */
.contact-qrcode { margin-top: 25px; }
.contact-qrcode h4 { font-size: 1rem; margin-bottom: 12px; color: #333; }
.qrcode-row { display: flex; gap: 20px; }
.qrcode-item { text-align: center; }
.qrcode-item img { max-width:200px;width: 200px; height: 200px; object-fit: cover; border-radius: 8px; }
.qrcode-item p { font-size: 0.8rem; color: #999; margin-top: 6px; }

/* 地图 */
.map-container { border-radius: 12px; overflow: hidden; height: 410px; background: #f5f5f5; }
.map-iframe { width: 100%; height: 100%; border: none; display: block; }
.map-address { font-size: 0.85rem; color: #888; margin-top: 10px; }

/* ========================================
   商务合作页
   ======================================== */
.cooperation-section { padding: 50px 0; }
.cooperation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cooperation-info h2 { font-size: 1.4rem; margin-bottom: 25px; color: #333; padding-bottom: 12px; border-bottom: 2px solid #4facfe; display: inline-block; }
.cooperation-type { margin-bottom: 25px; }
.type-item { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.type-item h4 { font-size: 1rem; color: #4facfe; margin-bottom: 5px; }
.type-item p { font-size: 0.9rem; color: #777; }
.cooperation-contact { background: #f8fafc; padding: 20px; border-radius: 8px; }
.cooperation-contact p { font-size: 0.9rem; color: #666; margin-bottom: 5px; }

/* 表单 */
.cooperation-form-wrap { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 35px; }
.cooperation-form-wrap h2 { font-size: 1.4rem; margin-bottom: 25px; color: #333; padding-bottom: 12px; border-bottom: 2px solid #4facfe; display: inline-block; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.95rem; color: #555; margin-bottom: 6px; font-weight: 500; }
.required { color: #f5576c; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4facfe; box-shadow: 0 0 0 3px rgba(79,172,254,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input.input-error, .form-group select.input-error { border-color: #f5576c; }
.form-error { display: block; font-size: 0.8rem; color: #f5576c; margin-top: 4px; }
.btn-submit { width: 100%; padding: 12px; background: #4facfe; color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #3a9bdf; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* 成功弹窗 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 16px; padding: 40px; text-align: center; max-width: 400px; width: 90%; }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.modal-icon.success { background: #d4edda; color: #28a745; }
.modal-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: #333; }
.modal-content p { font-size: 0.95rem; color: #666; margin-bottom: 25px; }
.btn-modal-close { padding: 10px 40px; background: #4facfe; color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.3s; }
.btn-modal-close:hover { background: #3a9bdf; }

/* ========================================
   页脚
   ======================================== */
.site-footer { background: #2c3e50; color: #ccc; padding: 50px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 35px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: #aaa; }
.footer-links h4, .footer-contact h4 { font-size: 1rem; color: #fff; margin-bottom: 15px; }
.footer-links ul { }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: #4facfe; }
.footer-contact p { font-size: 0.9rem; color: #aaa; margin-bottom: 6px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.85rem; color: #888; }
.footer-bottom p { margin-bottom: 3px; }

/* ========================================
   响应式 - 平板（<=1024px）
   ======================================== */
@media (max-width: 1024px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .banner-content h1 { font-size: 2rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .cooperation-layout { grid-template-columns: 1fr; }
}

/* ========================================
   响应式 - 移动端（<=768px）
   ======================================== */
@media (max-width: 768px) {
    /* 导航切换为汉堡菜单 */
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .header-inner { height: 60px; }
    body { padding-top: 60px; }

    /* 轮播图 */
    .banner-bg { min-height: 280px; }
    .banner-content h1 { font-size: 1.5rem; }
    .banner-content p { font-size: 0.95rem; }
    .banner-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .banner-prev { left: 10px; }
    .banner-next { right: 10px; }

    /* 通用 */
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 25px; }
    .page-banner { padding: 40px 0 35px; }
    .page-banner h1 { font-size: 1.5rem; }

    /* 优势板块 */
    .advantages-section { padding: 40px 0; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .advantage-card { padding: 25px 15px; }

    /* 业务板块 */
    .business-section { padding: 40px 0; }
    .business-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    /* 资讯板块 */
    .news-section { padding: 40px 0; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }

    /* 新闻列表 */
    .news-list-item { flex-direction: column; gap: 15px; }
    .news-list-thumb { width: 100%; height: 200px; }

    /* 新闻详情 */
    .detail-title { font-size: 1.4rem; }

    /* 品牌页 */
    .brand-section { padding: 30px 0; }
    .brand-grid { grid-template-columns: 1fr; gap: 20px; }

    /* 联系我们 */
    .contact-section { padding: 30px 0; }
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }

    /* 商务合作 */
    .cooperation-section { padding: 30px 0; }
    .cooperation-layout { grid-template-columns: 1fr; gap: 30px; }
    .cooperation-form-wrap { padding: 25px 20px; }

    /* 页脚 */
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
    .site-footer { padding: 35px 0 0; }
}

/* ========================================
   响应式 - 小屏手机（<=480px）
   ======================================== */
@media (max-width: 480px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .business-grid { grid-template-columns: 1fr; }
    .banner-content h1 { font-size: 1.3rem; }
    .banner-content p { font-size: 0.85rem; }
    .banner-btn { padding: 10px 24px; font-size: 0.9rem; }
}
