/* ==================== 全局基础样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; color: rgba(0,0,0,0.9); background: #f2f2f2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
hr { border: none; }

/* ==================== 导航栏（桌面端/移动端） ==================== */
.pc-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.pc-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; height: 64px; }
.pc-logo { display: flex; align-items: center; text-decoration: none; }
.pc-logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #1989fa, #0e6fd6); color: #fff; font-size: 18px; font-weight: 700; margin-right: 10px; }
.pc-logo-text { font-size: 18px; font-weight: 700; color: #333; white-space: nowrap; }
.pc-nav { display: flex; align-items: center; margin-left: auto; }
.pc-nav-link { position: relative; padding: 0 18px; line-height: 64px; color: #666; font-size: 15px; transition: color 0.2s; }
.pc-nav-link:hover, .pc-nav-link.active { color: #1989fa; }
.pc-nav-line { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 2px; background: #1989fa; width: 0; transition: width 0.25s; }
.pc-nav-link:hover .pc-nav-line, .pc-nav-link.active .pc-nav-line { width: 24px; }

.mobile-header { display: none; background: #1989fa; height: 44px; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 1000; }
.mobile-header-title { color: #fff; font-size: 17px; font-weight: 600; }

.mobile-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; height: 50px; z-index: 1000; }
.tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #999; font-size: 11px; }
.tabbar-item.active { color: #1989fa; }
.tabbar-icon { width: 24px; height: 24px; margin-bottom: 2px; }

.pc-footer { background: #2c3e50; color: rgba(255,255,255,0.7); text-align: center; padding: 20px; font-size: 13px; }

/* ==================== 全局消息提示 ==================== */
.global-messages { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.global-message { padding: 10px 15px; border-radius: 6px; margin-top: 10px; font-size: 13px; }
.global-message.success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.global-message.error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.global-message.warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.global-message.info { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }

@media (max-width: 768px) {
    .pc-header { display: none; }
    .pc-footer { display: none; }
    .mobile-header { display: flex; }
    .mobile-tabbar { display: flex; }
    .main-content { padding-bottom: 50px; }
    .global-messages { padding: 0 15px; }
}

/* ==================== 主内容区 ==================== */
.main-content { min-height: calc(100vh - 64px - 60px); }

/* ==================== 通用标题组件 ==================== */
.title { display: flex; justify-content: center; align-items: center; background: #fff; color: #1989fa; padding: 10px 80px; font-size: 17px; text-align: center; margin-top: 16px; }
.title hr { height: 1px; background: #1989fa; border: none; width: 65px; }
.title span { margin: 0 10px; }

/* ==================== 轮播图 ==================== */
.banner-swiper { position: relative; width: 100%; }
.swiper-container { position: relative; width: 100%; }
.swiper-wrapper { position: relative; width: 100%; }
.swiper-slide { display: none; width: 100%; }
.swiper-slide img { width: 100%; height: 237px; object-fit: cover; }
.swiper-pagination { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; z-index: 10; }
.swiper-pagination .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); margin: 0 4px; cursor: pointer; transition: all 0.3s; }
.swiper-pagination .dot.active { background: #fff; transform: scale(1.3); }

/* ==================== 首页 ==================== */
#index { background: #f2f2f2; }
#index .tab { border-top: 1px solid #eee; display: flex; justify-content: space-around; text-align: center; font-size: 13px; color: #909399; padding: 10px 0; }
.tab-item-stat { flex: 1; padding: 10px 0; }
.tab-item-stat .tab-title { margin: 10px 0; font-size: 20px; font-weight: 600; color: #4a4a4a; }
#index .content { padding: 5px 20px; color: #4a4a4a; font-size: 14px; line-height: 28px; text-indent: 2em; }

/* 时间线步骤 */
.steps { display: flex; flex-flow: wrap; position: relative; padding: 30px 0; background: #f2f2f2; }
.steps-line { position: absolute; top: 0; bottom: 120px; width: 2px; background-color: #d3d2d2; left: 50%; }
.steps-box { position: relative; width: 50%; text-align: center; margin-bottom: 120px; }
.steps-box img { width: 195px; height: 195px; object-fit: contain; margin: 0 auto; }
.steps-box .box-item { position: absolute; text-align: right; top: 200px; right: 40px; }
.steps-box .box-item div { margin: 8px 0; color: #4a4a4a; font-size: 14px; }
.steps-box:nth-child(even) { margin-left: 50%; }
.steps-box:nth-child(even) .box-item { left: 40px; text-align: left; right: auto; }
.steps-box:last-child img { margin-bottom: -10px; }

@media (max-width: 768px) {
    .steps-box img { width: 120px; height: 120px; }
    .steps-box .box-item { top: 130px; right: 10px; font-size: 12px; }
    .steps-box:nth-child(even) .box-item { left: 10px; }
}

/* ==================== 新闻页 ==================== */
#news { background: #fff; }
#news .tab { overflow: hidden; overflow-x: auto; white-space: nowrap; width: 100%; background: #fff; border-bottom: 1px solid #eee; }
#news .tab::-webkit-scrollbar { display: none; }
#news .tab .tab-item { display: inline-block; padding: 15px 12px; text-align: center; color: #333; font-size: 14px; }
#news .tab .tab-item hr { height: 3px; background: transparent; border: none; width: 50px; border-radius: 20px; margin: 5px auto 0; }
#news .tab .active { font-weight: 700; color: #333; }
#news .tab .active hr { background: #ef0e29 !important; }

.news-list { background: #fff; }
.news-box { background: #fff; padding: 10px 15px; border-bottom: 1px solid #ebebeb; display: flex; transition: background 0.2s; }
.news-box:hover { background: #f9f9f9; }
.news-box:last-child { border-bottom: none; }
.news-box .box-img { margin-right: 14px; flex-shrink: 0; }
.news-box .box-img img { height: 88px; width: 118px; object-fit: cover; border-radius: 4px; }
.news-box .box-position { width: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.news-box .position-title { height: 40px; margin-bottom: 10px; font-size: 15px; color: #555; word-break: break-all; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 20px; }
.news-box .position-desc { display: flex; justify-content: space-between; align-items: center; color: #999; font-size: 12px; }

/* 标签 */
.tag { display: inline-block; font-size: 12px; padding: 2px 6px; border-radius: 3px; }
.tag-primary { color: #2979ff; border: 1px solid #2979ff; background: #fff; }

/* 分页 */
.pagination { text-align: center; padding: 20px; }
.page-btn { display: inline-block; padding: 8px 20px; background: #1989fa; color: #fff; border-radius: 4px; margin: 0 10px; }
.page-btn:hover { background: #1478d8; }
.page-info { color: #999; font-size: 13px; }

/* ==================== 新闻详情 ==================== */
.news-detail-box { background: #fff; padding: 20px; margin: 10px; border-radius: 8px; }
.news-detail-title { font-size: 20px; font-weight: 700; color: #333; line-height: 1.5; margin-bottom: 15px; }
.news-detail-desc { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.news-detail-desc-box { display: flex; align-items: center; color: #999; font-size: 13px; }
.news-detail-desc-author { margin-right: 15px; }
.news-detail-desc-time { color: #999; }
.news-detail-content { font-size: 15px; line-height: 1.8; color: #333; }
.news-detail-content img { max-width: 100%; height: auto; }
.news-detail-content p { margin-bottom: 10px; }

/* ==================== 展览页 ==================== */
#exhibition { background: #f2f2f2; }

/* 折叠面板 */
.collapse-container { background: #fff; margin-top: 16px; }
.collapse-item { border-bottom: 1px solid #ebeef5; }
.collapse-title { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: 48px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; color: #303133; }
.collapse-title:hover { background: #f5f5f5; }
.collapse-arrow { transition: transform 0.3s; font-size: 12px; color: #bbb; }
.collapse-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fff; }

.exhibition-collapse { display: flex; color: #606266; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #f0f0f0; }
.exhibition-collapse:hover { background: #f9f9f9; }
.exhibition-collapse .collapse-img { width: 56px; height: 41px; object-fit: cover; border-radius: 3px; }
.exhibition-collapse .collapse-name { text-align: center; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.exhibition-collapse .collapse-room { color: #999; font-size: 12px; }

/* 推荐创客 */
.recommend-list { padding: 0 15px 15px; }
.exhibition-box { background: #fbfbfb; border-top: 1px solid #d2d2d2; padding: 10px 18px; margin-top: 10px; border-radius: 4px; }
.exhibition-box:last-child { margin-bottom: 10px; }
.exhibition-box .box-img { width: 100%; height: 218px; object-fit: cover; display: block; border-radius: 4px; }
.exhibition-box .box-name { display: block; margin-top: 10px; font-size: 16px; font-weight: 700; color: #4a4a4a; border-left: 4px solid #ff0036; padding-left: 5px; }
.exhibition-box .box-desc { font-size: 14px; line-height: 22px; margin-top: 10px; margin-bottom: 0; color: #606266; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }

/* ==================== 创客详情 ==================== */
.detail-banner { width: 100%; height: 237px; object-fit: cover; display: block; }
.detail-box { background: #fff; padding: 15px; margin: 10px; border-radius: 8px; }
.box-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.box-item:last-child { border-bottom: none; }
.item-icon { display: flex; align-items: center; color: #409eff; margin-right: 15px; min-width: 100px; font-size: 13px; }
.item-icon .icon { margin-right: 5px; font-size: 18px; }
.item-value { color: #333; font-size: 14px; }
.detail-content { background: #fff; padding: 15px; margin: 0 10px 10px; border-radius: 8px; font-size: 14px; line-height: 1.8; color: #606266; }

/* ==================== 产品页 ==================== */
#goods { padding: 10px; background: #f2f2f2; }
.goods-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.goods-grid .item { display: block; width: calc(50% - 5px); margin-bottom: 5px; }
.goods-grid .item img { width: 100%; height: 163px; object-fit: cover; border-radius: 5px 5px 0 0; }
.goods-grid .item-box { border-top: 1px solid #eee; background: #fff; padding: 10px; border-radius: 0 0 5px 5px; font-size: 12px; }
.goods-grid .box-name { font-weight: 700; line-height: 20px; color: #333; font-size: 14px; word-break: break-all; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.goods-grid .box-person { margin-bottom: 0; margin-top: 10px; color: #999; }
.goods-grid .box-contact { margin-bottom: 0; margin-top: 10px; color: #f50; }

.empty-item { }
.empty-title { background: #fff; height: 163px; display: flex; align-items: center; justify-content: center; border-radius: 5px 5px 0 0; position: relative; }
.title-text { font-size: 20px; color: #606266; animation: beat 0.8s linear infinite alternate; }
.empty-content { background: #f9f9f9; border-top: 1px solid #eee; padding: 10px; height: 86px; border-radius: 0 0 5px 5px; font-size: 14px; }
.empty-content div { margin-bottom: 5px; }
.content-mobile { font-size: 12px; margin-top: 15px; color: #f50; }
@keyframes beat { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }

@media (max-width: 768px) {
    .goods-grid .item { width: calc(50% - 5px); }
}

/* ==================== 产品详情 ==================== */
.box-price { font-size: 18px; color: #f50; font-weight: 700; }
.price-symbol { font-size: 14px; }
.box-name { font-size: 16px; color: #333; margin-top: 5px; }

.cell { background: #fff; margin: 10px; padding: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cell-title { font-weight: 700; color: #333; margin-right: 10px; }

/* 参数弹窗 */
.params-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: flex-end; }
.params-overlay.show { display: flex; }
.params-panel { background: #fff; width: 100%; max-width: 600px; padding: 20px; border-radius: 12px 12px 0 0; max-height: 70vh; overflow-y: auto; }
.params-panel .detail-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; }
.params-panel .detail-item { display: flex; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.params-panel .item-title { width: 80px; color: #999; font-size: 13px; flex-shrink: 0; }
.params-panel .item-desc { color: #333; font-size: 14px; }
.params-panel .btn { margin-top: 20px; text-align: center; padding: 12px; background: #1989fa; color: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }

.detail-info { background: #fff; margin: 10px; padding: 15px; border-radius: 8px; }
.info-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.info-content { font-size: 14px; line-height: 1.8; color: #333; }
.info-content img { max-width: 100%; height: auto; }

/* 底部导航 */
.goods-nav { display: flex; position: sticky; bottom: 0; background: #fff; border-top: 1px solid #eee; padding: 8px 0; z-index: 100; }
.nav-btn { flex: 1; text-align: center; padding: 8px; font-size: 13px; }
.nav-btn-default { color: #666; }
.nav-btn-primary { background: #ffa200; color: #fff; border-radius: 20px; margin: 0 10px; line-height: 34px; }

/* ==================== 荣誉墙 ==================== */
#honor { padding: 10px; background: #f2f2f2; }
.honor-list { display: flex; flex-wrap: wrap; gap: 10px; }
.honor-list .item { width: calc(50% - 5px); background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 5px; }
.honor-list .item-img img { width: 100%; height: 150px; object-fit: cover; }
.honor-list .item-name { padding: 10px; font-size: 14px; color: #333; text-align: center; font-weight: 500; }

@media (min-width: 768px) {
    .honor-list .item { width: calc(33.33% - 7px); }
}

/* ==================== 入驻流程 ==================== */
#process { background: #f2f2f2; padding: 10px; }
.process-item { background: #fff; margin-bottom: 10px; padding: 20px; border-radius: 8px; }
.process-item .item-img { text-align: center; margin-bottom: 15px; }
.process-item .item-img img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto; }
.process-item .item-title { font-size: 16px; font-weight: 700; color: #333; text-align: center; margin-bottom: 10px; }
.process-item .item-desc { font-size: 14px; line-height: 1.8; color: #606266; text-indent: 2em; }

@media (min-width: 768px) {
    #process { max-width: 800px; margin: 0 auto; }
}

/* ==================== 园区制度 ==================== */
#system { background: #fff; }
#system .tab { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid #eee; }
#system .tab::-webkit-scrollbar { display: none; }
#system .tab .tab-item { flex: 1; text-align: center; padding: 15px 10px; color: #333; font-size: 14px; white-space: nowrap; min-width: auto; }
#system .tab .tab-item hr { height: 3px; background: transparent; border: none; width: 40px; border-radius: 20px; margin: 5px auto 0; }
#system .tab .active { font-weight: 700; }
#system .tab .active hr { background: #1989fa !important; }
.tab-content { padding: 15px 20px; }
.tab-content p { font-size: 14px; line-height: 2; color: #606266; padding: 3px 0; }

/* ==================== 登录/注册 ==================== */
#login, #register { background: #f2f2f2; min-height: calc(100vh - 200px); }
.form-container { max-width: 400px; margin: 30px auto; padding: 30px 25px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.avatar { text-align: center; margin-bottom: 25px; }
.avatar-icon { display: inline-block; width: 80px; height: 80px; line-height: 80px; border-radius: 50%; background: #f0f0f0; font-size: 40px; color: #999; }
.form-group { margin-bottom: 18px; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="email"] { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: #1989fa; }
.form-group.remember { font-size: 14px; color: #666; }
.form-group.remember input { margin-right: 5px; }
.btn { display: block; width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; text-align: center; margin-bottom: 10px; transition: all 0.2s; }
.btn-primary { background: #1989fa; color: #fff; }
.btn-primary:hover { background: #1478d8; }
.btn-default { background: #f0f0f0; color: #666; }
.btn-default:hover { background: #e0e0e0; }

.messages { margin-bottom: 15px; }
.message { padding: 10px 15px; border-radius: 6px; margin-bottom: 8px; font-size: 13px; }
.message.success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.message.error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }

/* ==================== 空状态 ==================== */
.empty { text-align: center; padding: 50px 20px; color: #999; font-size: 14px; }

/* ==================== 全局响应式 ==================== */
@media (max-width: 768px) {
    .news-box .box-img img { height: 70px; width: 94px; }
    .banner-swiper .swiper-slide img { height: 180px; }
    .detail-banner { height: 180px; }
    .title { padding: 10px 30px; font-size: 15px; }
}
