/* 展会H5展示系统 V2 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a56db;
    --primary-dark: #0d3b9e;
    --primary-light: #e8eefc;
    --accent: #0ea5e9;
    --gold: #f59e0b;
    --text: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
    --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--primary); }
.nav-menu { display: flex; gap: 28px; list-style: none; }
.nav-menu a {
    text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500;
    transition: color .3s; position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width .3s;
}
.nav-menu a:hover::after { width: 100%; }
.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text);
}

/* ===== Banner ===== */
.banner {
    margin-top: 68px; position: relative; min-height: 688px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(135deg, #0d3b9e 0%, #1a56db 40%, #0ea5e9 100%);
}
.banner-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,59,158,.75) 0%, rgba(26,86,219,.55) 50%, rgba(14,165,233,.45) 100%);
}
.banner-content {
    position: relative; z-index: 2; text-align: center; padding: 60px 24px; max-width: 900px;
}
.banner h1 {
    font-size: 52px; font-weight: 800; color: #fff; margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,.3); letter-spacing: 2px; line-height: 1.3;
}
.banner p { font-size: 22px; color: rgba(255,255,255,.92); margin-bottom: 36px; letter-spacing: 1px; }
.banner-info {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 40px;
}
.banner-info-item { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; }
.banner-info-item .icon { font-size: 24px; }
.banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary-white {
    display: inline-block; padding: 14px 38px; background: #fff; color: var(--primary);
    text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 16px;
    transition: all .3s; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-primary-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.btn-outline-white {
    display: inline-block; padding: 14px 38px; background: transparent; color: #fff;
    text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 16px;
    border: 2px solid rgba(255,255,255,.6); transition: all .3s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 80px 24px; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: linear-gradient(135deg, #0d3b9e, #1a56db); color: #fff; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
    font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 14px;
    position: relative; display: inline-block;
}
.section-dark .section-title { color: #fff; }
.section-title::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.section-dark .section-title::after { background: #fff; }
.section-subtitle { font-size: 17px; color: var(--text-gray); margin-top: 24px; }
.section-dark .section-subtitle { color: rgba(255,255,255,.8); }

/* ===== 展会介绍 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-image {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 30px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.about-text p { font-size: 16px; color: var(--text-gray); line-height: 2; margin-bottom: 16px; }
.about-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
    font-weight: 600; text-decoration: none; font-size: 15px; margin-top: 12px;
    transition: gap .3s;
}
.about-link:hover { gap: 14px; }

/* ===== 活动规模 ===== */
.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.scale-card {
    background: #fff; padding: 36px 24px; border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow-sm); transition: all .3s; border-top: 4px solid var(--primary);
}
.scale-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scale-number {
    font-size: 48px; font-weight: 800; color: var(--primary); margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.scale-label { font-size: 16px; color: var(--text-gray); font-weight: 500; }

/* ===== 活动优势 ===== */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
    background: #fff; padding: 32px 24px; border-radius: var(--radius); text-align: center;
    transition: all .3s; box-shadow: var(--shadow-sm);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.advantage-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.advantage-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.advantage-desc { font-size: 14px; color: var(--text-gray); line-height: 1.8; }

/* ===== 活动日程 ===== */
.schedule-timeline { max-width: 860px; margin: 0 auto; position: relative; }
.schedule-timeline::before {
    content: ''; position: absolute; left: 110px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 2px;
}
.schedule-item { display: flex; gap: 32px; margin-bottom: 20px; position: relative; }
.schedule-date {
    width: 110px; flex-shrink: 0; text-align: right; padding-top: 18px;
    font-weight: 700; color: var(--primary); font-size: 16px;
}
.schedule-dot {
    position: absolute; left: 103px; top: 22px; width: 17px; height: 17px;
    background: var(--primary); border: 4px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary); z-index: 1;
}
.schedule-content {
    flex: 1; background: #fff; padding: 18px 24px; border-radius: 10px;
    box-shadow: var(--shadow-sm); margin-left: 24px; transition: all .3s;
}
.schedule-content:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.schedule-event { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.schedule-time { font-size: 14px; color: var(--text-light); }

/* ===== 活动亮点 ===== */
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.highlight-card {
    background: #fff; padding: 36px 28px; border-radius: var(--radius); text-align: center;
    transition: all .3s; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.highlight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: transform .3s;
}
.highlight-card:hover::before { transform: scaleX(1); }
.highlight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.highlight-icon { font-size: 52px; margin-bottom: 20px; }
.highlight-title { font-size: 19px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.highlight-desc { font-size: 14px; color: var(--text-gray); line-height: 1.8; }

/* ===== 展会新闻 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all .3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-cover {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.news-body { padding: 22px; }
.news-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.news-title {
    font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 10px;
    line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-summary {
    font-size: 14px; color: var(--text-gray); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more {
    text-align: center; margin-top: 40px;
}
.news-more a {
    display: inline-block; padding: 12px 36px; border: 2px solid var(--primary);
    color: var(--primary); text-decoration: none; border-radius: 50px; font-weight: 600;
    font-size: 15px; transition: all .3s;
}
.news-more a:hover { background: var(--primary); color: #fff; }

/* ===== 精彩现场 ===== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item {
    position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
    aspect-ratio: 1; box-shadow: var(--shadow-sm); transition: all .3s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 40px; background: linear-gradient(135deg, var(--primary-light), #dbeafe);
}
.gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.7));
    display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 14px; font-weight: 500; }

/* 灯箱 */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 24px; right: 32px; color: #fff; font-size: 40px;
    cursor: pointer; background: none; border: none;
}

/* ===== 推荐企业 / 合作媒体 ===== */
.logo-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.logo-item {
    background: #fff; padding: 20px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
    transition: all .3s; aspect-ratio: 2/1;
}
.logo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-item .logo-text { font-size: 14px; font-weight: 600; color: var(--text-gray); text-align: center; }

/* ===== 报名表单 ===== */
.register-section {
    background: linear-gradient(135deg, #0d3b9e 0%, #1a56db 50%, #0ea5e9 100%);
    color: #fff; position: relative; overflow: hidden;
}
.register-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}
.register-form {
    max-width: 680px; margin: 0 auto; background: rgba(255,255,255,.12);
    backdrop-filter: blur(16px); padding: 44px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2); position: relative; z-index: 1;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.9);
}
.form-group label .required { color: #fca5a5; margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px; background: rgba(255,255,255,.15); color: #fff;
    font-size: 15px; transition: all .3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #fff; background: rgba(255,255,255,.25);
}
.form-group select option { color: var(--text); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.submit-btn {
    width: 100%; padding: 15px; background: #fff; color: var(--primary); border: none;
    border-radius: 10px; font-size: 17px; font-weight: 700; cursor: pointer;
    transition: all .3s;
}
.submit-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 960px; margin: 0 auto;
}
.contact-card {
    text-align: center; padding: 36px 24px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: all .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.contact-label { font-size: 14px; color: var(--text-gray); margin-bottom: 8px; }
.contact-value { font-size: 18px; font-weight: 600; color: var(--text); }

/* ===== 页脚 ===== */
.footer {
    background: #0f172a; color: rgba(255,255,255,.6); text-align: center;
    padding: 32px 24px; font-size: 14px;
}

/* ===== 提示消息 ===== */
.toast {
    position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px; border-radius: 10px; color: #fff; font-size: 15px; z-index: 9999;
    opacity: 0; transition: all .3s; pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

/* ===== 二级页面通用 ===== */
.page-banner {
    margin-top: 68px; padding: 80px 24px; text-align: center;
    background: linear-gradient(135deg, #0d3b9e, #1a56db); color: #fff;
    position: relative; overflow: hidden;
}
.page-banner h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.page-banner p { font-size: 17px; color: rgba(255,255,255,.8); }
.page-content { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.page-content h2 {
    font-size: 26px; font-weight: 700; color: var(--text); margin: 32px 0 16px;
    padding-left: 14px; border-left: 4px solid var(--primary);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 16px; color: var(--text-gray); line-height: 2; margin-bottom: 16px; }
.page-content ul { margin: 16px 0; padding-left: 24px; }
.page-content li { font-size: 16px; color: var(--text-gray); line-height: 2; }
.page-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }

/* 新闻列表页 */
.news-list { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.news-list-item {
    display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border);
    transition: all .3s; cursor: pointer;
}
.news-list-item:hover { padding-left: 12px; }
.news-list-cover {
    width: 220px; height: 140px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.news-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; }
.news-list-title {
    font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 10px;
    line-height: 1.5;
}
.news-list-summary {
    font-size: 14px; color: var(--text-gray); line-height: 1.8; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 16px; }

/* 新闻详情页 */
.news-detail { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.news-detail-title { font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.4; }
.news-detail-meta {
    display: flex; gap: 20px; font-size: 14px; color: var(--text-light);
    padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.news-detail-cover {
    width: 100%; border-radius: 12px; margin-bottom: 32px;
    max-height: 420px; object-fit: cover;
}
.news-detail-content { font-size: 16px; line-height: 2; color: var(--text-gray); }
.news-detail-content p { margin-bottom: 20px; }
.news-detail-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.news-back {
    display: inline-block; margin-top: 40px; color: var(--primary); font-weight: 600;
    text-decoration: none; font-size: 15px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .scale-grid, .advantage-grid, .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .banner { min-height: 520px; }
    .banner h1 { font-size: 30px; }
    .banner p { font-size: 17px; }
    .banner-info { gap: 24px; }
    .banner-info-item { font-size: 15px; }
    .section { padding: 56px 18px; }
    .section-title { font-size: 26px; }
    .scale-grid, .advantage-grid, .highlight-grid, .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .schedule-timeline::before { left: 70px; }
    .schedule-date { width: 70px; font-size: 14px; }
    .schedule-dot { left: 63px; }
    .schedule-content { margin-left: 16px; padding: 14px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .register-form { padding: 28px 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-banner { padding: 60px 20px; }
    .page-banner h1 { font-size: 28px; }
    .news-list-item { flex-direction: column; gap: 16px; }
    .news-list-cover { width: 100%; height: 180px; }
    .news-detail-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .banner h1 { font-size: 26px; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .scale-number { font-size: 38px; }
}
