/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0A6ED6;
  --primary-dark: #10C4A1;
  --primary-deeper: #0DB89A;
  --primary-light: #149FC7;
  --accent-green: #0D9488;
  --accent-teal: #0891B2;
  --accent-orange: #D97706;
  --blue-primary: #2563EB;
  --blue-light: #3B82F6;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-gray);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== 蓝绿渐变品牌头部区域 ========== */
.brand-header {
  background-image: url('/public/header-bg.png');
  background-size: cover;
  background-position: center;
  padding: 32px 20px 0;
  position: relative;
  overflow: hidden;
}

.header-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.header-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 46px;
  width: auto;
}

.logo-img-invert {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-title {
  text-align: center;
  padding-bottom: 28px;
  position: relative;
  z-index: 1;
}

.title-org {
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.title-main {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.title-sub {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 1px;
  font-weight: 400;
}

.header-wave {
  position: relative;
  margin-top: -1px;
  z-index: 1;
}

.header-wave svg {
  display: block;
  width: 100%;
  height: 32px;
}

/* ========== 功能图标区 ========== */
.function-grid {
  padding: 36px 16px 20px;
  background: var(--bg-white);
  flex: 1;
}

.grid-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
}

.grid-row:last-child {
  margin-bottom: 0;
}

.func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.func-item:active {
  transform: scale(0.92);
}

.func-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s, transform 0.3s;
}

.func-item:active .func-icon {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.func-icon svg {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.icon-blue {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.icon-teal {
  background: linear-gradient(135deg, #14B8A6, #0D9488);
}

.icon-green {
  background: linear-gradient(135deg, #34D399, #10B981);
}

.icon-navy {
  background: linear-gradient(135deg, #3B6FD4, #1E4FAA);
}

.icon-orange {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.func-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* ========== 底部版权 ========== */
.page-footer {
  text-align: center;
  padding: 28px 16px 20px;
  background: var(--bg-white);
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
}

.footer-org {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  margin: 6px 0;
}

.footer-links a {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:active {
  opacity: 0.7;
}

.footer-sep {
  color: #ddd;
  margin: 0 8px;
  font-size: 12px;
}

.footer-sub {
  font-size: 11px !important;
  color: #bbb !important;
  margin-top: 4px;
}

/* ========== 子页面通用样式 ========== */
.sub-page {
  min-height: 100vh;
  background: var(--bg-gray);
}

.sub-header {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  padding: 16px 20px 20px;
  position: relative;
  overflow: hidden;
}

.sub-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(13,148,136,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sub-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.back-btn:active {
  background: rgba(255,255,255,0.25);
}

.sub-header h1 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.sub-content {
  padding: 16px;
}

/* 信息卡片 */
.info-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card h2 .icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.qrcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: 12px;
}

.qrcode-img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  object-fit: contain;
}

.qrcode-section p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 14px;
}

.info-card h3:first-child {
  margin-top: 0;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.schedule-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0668ab, #14bba1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.info-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.info-card li.highlight {
  color: var(--primary);
  font-weight: 500;
}

.info-card li.highlight::before {
  background: var(--accent-green);
}

/* 时间轴样式 */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e5e7eb;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.highlight::before {
  background: var(--accent-green);
  box-shadow: 0 0 0 2px var(--accent-green);
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 联系人卡片 */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.contact-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card:first-child {
  padding-top: 0;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-avatar.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.contact-avatar.green { background: linear-gradient(135deg, #34D399, #10B981); }
.contact-avatar.purple { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.contact-avatar.red { background: linear-gradient(135deg, #F87171, #DC2626); }
.contact-avatar.navy { background: linear-gradient(135deg, #3B6FD4, #1E4FAA); }

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-detail {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.contact-action {
  display: flex;
  gap: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.contact-btn:active {
  background: #f5f5f5;
  transform: scale(0.95);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
}

/* 费用表格 */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.fee-table th,
.fee-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.fee-table th {
  background: #f0f5fa;
  font-weight: 600;
  color: var(--text-primary);
}

.fee-table td {
  color: var(--text-secondary);
}

.fee-table tr:last-child td {
  border-bottom: none;
}

/* 酒店卡片 */
.hotel-card {
  background: linear-gradient(135deg, #f0f5fa 0%, #e8f0f8 100%);
  border-radius: 10px;
  padding: 16px;
  margin-top: 10px;
}

.hotel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hotel-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hotel-price {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

/* 平行议题标签 */
.topic-tag {
  display: inline-block;
  background: #f0f5fa;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 4px 4px 0;
}

/* 地图占位 */
.map-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f5fa, #e8f0f8);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 12px;
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.map-placeholder span {
  font-size: 13px;
  opacity: 0.8;
}

/* 通知标签 */
.notice-tag {
  display: inline-block;
  background: #FFF7ED;
  color: #D97706;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* 照片直播占位 */
.live-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.live-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}

.live-icon svg {
  width: 36px;
  height: 36px;
}

.live-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.live-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
