/* ===== 人大代表助农助企服务平台 - 公用样式 ===== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; background: #f5f5f5; -webkit-font-smoothing: antialiased; }

/* App Shell */
#app { height: 100%; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; position: relative; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.05); }
.page-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 50px; }

/* Header */
.page-header { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 100; }
.page-header h1 { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.page-header p { font-size: 11px; opacity: .85; margin-top: 2px; }

/* Bottom Tab Bar */
.tab-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 50px; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 1000; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: #999; cursor: pointer; transition: .2s; -webkit-tap-highlight-color: transparent; user-select: none; text-decoration: none; }
.tab-item .tab-icon { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.tab-item.active { color: #c0392b; }
.tab-item.active .tab-icon { color: #c0392b; }

/* Section */
.section { padding: 14px 16px 6px; }
.section-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; display: inline-block; width: 3px; height: 16px; background: #c0392b; border-radius: 2px; flex-shrink: 0; }

/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; padding: 0 16px 10px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.cat-item span { font-size: 11px; color: #555; }

/* Product Grid */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 14px; }
.prod-card { background: #fafafa; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.prod-img { width: 100%; aspect-ratio: 16/12; background: #e8e8e8; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #bbb; }
.prod-info { padding: 8px 10px 10px; }
.prod-name { font-size: 13px; font-weight: 500; color: #222; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-tag { display: inline-block; font-size: 10px; background: #fde8e8; color: #c0392b; padding: 1px 6px; border-radius: 3px; margin-top: 4px; }
.prod-origin { font-size: 11px; color: #999; margin-top: 2px; }

/* Banner */
.banner-wrap { position: relative; overflow: hidden; }
.banner-slide { width: 100%; display: none; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; display: block; }
.banner-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-dots span.active { background: #fff; width: 18px; border-radius: 3px; }

/* Brand Filter */
.brand-filter { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.brand-filter::-webkit-scrollbar { display: none; }
.filter-btn { flex-shrink: 0; padding: 5px 14px; border-radius: 15px; border: 1px solid #ddd; font-size: 12px; background: #fff; color: #666; cursor: pointer; transition: .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.filter-btn.active { background: #c0392b; color: #fff; border-color: #c0392b; }

/* Brand List */
.brand-list { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.brand-card { display: flex; gap: 12px; background: #fafafa; border-radius: 10px; padding: 12px; align-items: flex-start; }
.brand-logo { width: 56px; height: 56px; border-radius: 10px; background: #e0e0e0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.brand-body { flex: 1; min-width: 0; }
.brand-name { font-size: 14px; font-weight: 600; color: #222; }
.brand-desc { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.brand-tag { font-size: 10px; background: #e8f5e9; color: #2e7d32; padding: 1px 6px; border-radius: 3px; }
.brand-tag.enterprise { background: #e3f2fd; color: #1565c0; }

/* Story List */
.story-list { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.story-card { background: #fafafa; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.story-img { width: 100%; aspect-ratio: 16/9; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #bbb; }
.story-body { padding: 12px; }
.story-title { font-size: 14px; font-weight: 600; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-desc { font-size: 12px; color: #777; margin-top: 4px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.story-author { font-size: 11px; color: #c0392b; font-weight: 500; }
.story-date { font-size: 11px; color: #bbb; }

/* Profile */
.profile-header { background: linear-gradient(135deg, #c0392b, #e74c3c); padding: 30px 20px 24px; text-align: center; color: #fff; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.2); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.profile-name { font-size: 16px; font-weight: 600; }
.profile-role { font-size: 12px; opacity: .8; margin-top: 2px; }
.profile-menu { padding: 16px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; text-decoration: none; color: inherit; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.menu-label { flex: 1; font-size: 14px; color: #333; }
.menu-arrow { color: #ccc; font-size: 14px; }

/* ===== 金山银山 专属样式 ===== */

/* Eco Banner */
.eco-banner { background: linear-gradient(135deg, #1b5e20, #388e3c, #2e7d32); padding: 36px 20px 28px; text-align: center; color: #fff; }
.eco-banner .big-icon { font-size: 48px; margin-bottom: 8px; }
.eco-banner h2 { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.eco-banner p { font-size: 12px; opacity: .85; margin-top: 6px; line-height: 1.6; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e0e0e0; margin: 0 16px 16px; border-radius: 10px; overflow: hidden; }
.stat-item { background: #fff; padding: 14px 8px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; color: #2e7d32; }
.stat-label { font-size: 11px; color: #888; margin-top: 2px; }

/* Tourism Cards */
.tourism-list { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.tourism-card { background: #fafafa; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.tourism-img { width: 100%; aspect-ratio: 16/10; background: #dcedc8; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #689f38; position: relative; }
.tourism-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; background: rgba(46,125,50,.85); color: #fff; padding: 2px 8px; border-radius: 4px; }
.tourism-body { padding: 12px; }
.tourism-name { font-size: 15px; font-weight: 600; color: #222; }
.tourism-desc { font-size: 12px; color: #777; margin-top: 4px; line-height: 1.5; }
.tourism-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 11px; color: #999; }
.tourism-meta span { display: flex; align-items: center; gap: 3px; }

/* Rural Gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 14px; }
.gallery-item { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #bbb; position: relative; }
.gallery-item .gl-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 4px 8px; text-align: center; }

/* Scrollbar */
.page-content::-webkit-scrollbar { width: 0; }
