/* ================================================
   扬帆三班 - 设计规范
   深海蓝主题 + 扬帆破浪
   ================================================ */

:root {
  --bg: #0d1f3c;        /* 浅蓝黑（更亮）*/
  --bg2: #102a4d;      /* 深海蓝（更亮）*/
  --card-bg: #153256;    /* 卡片背景（更亮）*/
  --border: #2a5080;    /* 边框蓝（更亮）*/
  --border2: #3d6fa8;   /* 高亮边框（更亮）*/
  --text: #e8f4ff;      /* 浅蓝白（更亮）*/
  --text-muted: #8fc4e8; /* 柔和蓝灰（更亮）*/
  --accent: #4fc3f7;    /* 亮蓝（主强调色，更亮）*/
  --accent2: #29b6f6;   /* 蓝色（更亮）*/
  --accent-dark: #0288d1;/* 深蓝（更亮）*/
  --accent-glow: rgba(79,195,247,0.2);
  --red: #f87171;
  --gold: #fbbf24;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page { padding: 40px 0 80px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,31,60,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.logo-text span { color: var(--accent); }
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.nav a:hover { color: var(--text); background: var(--card-bg); }
.nav a.active { color: var(--accent); background: var(--accent-glow); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; border-radius: 8px; transition: background 0.15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; background: rgba(255,255,255,0.08); position: relative; z-index: 200; }
.menu-toggle:hover { background: rgba(255,255,255,0.15); }
.menu-toggle:active { background: rgba(255,255,255,0.25); }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.25s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ===== Cards & Grid ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border2); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.tag-blue { background: rgba(56,189,248,0.15); color: var(--accent); }
.tag-gold { background: rgba(251,191,36,0.15); color: var(--gold); }
.tag-green { background: rgba(74,222,128,0.15); color: #4ade80; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: #000; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* ===== Form Elements ===== */
.input {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: #5a8ab8; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237cb3d4' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ===== Hero / Banner ===== */
.hero {
  height: 100vh;
  padding: 80px 0 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Photo background with dark overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.55) 100%),
    url('../images/class-photo.jpg') center/cover no-repeat;
  pointer-events: none;
}
/* Animated wave layers */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
}
.wave {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4320 180'%3E%3Cpath fill='%2338bdf8' fill-opacity='0.25' d='M0,40 C120,25 240,55 360,38 C480,20 600,52 720,42 C840,28 960,48 1080,35 C1200,22 1320,50 1440,40 C1560,30 1680,52 1800,38 C1920,25 2040,48 2160,42 C2280,32 2400,52 2520,38 C2640,24 2760,48 2880,40 C3000,30 3120,52 3240,38 C3360,25 3480,48 3600,42 C3720,35 3840,50 3960,38 C4080,26 4200,46 4320,40 L4320,180 L0,180 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation: waveMove 8s linear infinite;
  opacity: 0.6;
}
.wave2 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4320 180'%3E%3Cpath fill='%237dd3fc' fill-opacity='0.2' d='M0,55 C180,42 360,68 540,52 C720,38 900,65 1080,55 C1260,45 1440,68 1620,52 C1800,38 1980,62 2160,55 C2340,48 2520,65 2700,52 C2880,40 3060,62 3240,55 C3420,48 3600,65 3780,52 C3960,42 4140,60 4320,55 L4320,180 L0,180 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  opacity: 0.4;
  animation: waveMove 12s linear infinite reverse;
  bottom: 8px;
}
.wave3 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4320 180'%3E%3Cpath fill='%23bae6fd' fill-opacity='0.15' d='M0,70 C60,62 120,78 180,68 C240,58 300,76 360,70 C420,64 480,78 540,68 C600,58 660,76 720,70 C780,64 840,78 900,68 C960,58 1020,76 1080,70 C1140,64 1200,78 1260,68 C1320,58 1380,76 1440,70 L4320,70 L4320,180 L0,180 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  opacity: 0.25;
  animation: waveMove 16s linear infinite;
  bottom: 15px;
}
@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
  position: relative;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; position: relative; z-index: 1; }

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 18px; font-weight: 700; }
.section-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* ===== News / Timeline ===== */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.news-item:hover { border-color: var(--accent); }
.news-date { font-size: 12px; color: var(--text-muted); min-width: 60px; padding-top: 2px; }
.news-content { flex: 1; }
.news-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.news-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.news-tag { margin-left: auto; }

/* ===== Member Cards ===== */
.member-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.member-card:hover { border-color: var(--accent); }
.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
  text-align: center;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.member-company { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder { font-size: 48px; opacity: 0.3; }
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,8,20,0.9));
  font-size: 12px;
  font-weight: 600;
}
.year-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.year-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.year-tab:hover { border-color: var(--border2); color: var(--text); }
.year-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ===== Resource Cards ===== */
.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.resource-card:hover { border-color: var(--accent); }
.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56,189,248,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.resource-info { flex: 1; }
.resource-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.resource-meta { font-size: 12px; color: var(--text-muted); }
.resource-arrow { color: var(--text-muted); font-size: 18px; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-item { text-align: center; }
.qr-box {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.qr-label { font-size: 12px; color: var(--text-muted); }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
textarea.input { resize: vertical; min-height: 100px; }

/* ===== Group Sections (Members Page) ===== */
.group-section { margin-bottom: 40px; }
.group-title { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.group-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* ===== Wave in Hero ===== */
.hero-wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero-title { font-size: 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-open .nav { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(13,31,60,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px; z-index: 99; }
  .nav-open .nav a { padding: 10px 14px; border-radius: 8px; }
  .menu-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .header-inner { gap: 10px; }
  .logo-text small { display: none; }
}
