/* 七七工作室 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(255, 255, 255, 0.55);
  --accent: #06b6d4;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #0c1929 0%, #1e3a8a 50%, #0f766e 100%);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-decor {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.grid-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.glow-1 {
  width: 400px; height: 400px;
  background: #3b82f6;
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.glow-2 {
  width: 300px; height: 300px;
  background: #06b6d4;
  bottom: -50px; right: -50px;
  opacity: 0.25;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px;
  position: relative;
  z-index: 1;
}

/* 进站欢迎页 */
.splash-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.splash-screen.splash-hide {
  opacity: 0;
  transform: translateY(-100%);
}
.splash-content {
  text-align: center;
}
.splash-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.splash-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-shadow);
}
.splash-ring {
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: splashPulse 1.5s ease-out infinite;
}
@keyframes splashPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.splash-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.splash-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.splash-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}
.splash-bar-inner {
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.2s ease;
}

/* 页脚欢迎 */
.footer-welcome {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-location {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.3s;
}
.footer-location:not(.loaded) {
  opacity: 0.5;
  font-style: italic;
}
.footer-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: var(--text);
  font-weight: 500;
}

/* 顶部品牌 */
.brand-header {
  text-align: center;
  margin-bottom: 24px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}
.brand-logo-icon {
  width: 22px; height: 22px;
  background: var(--glass-strong);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.brand-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 14px auto 0;
}

/* 胶囊导航 */
.capsule-nav {
  position: relative;
  width: 340px;
  max-width: 100%;
  margin: 0 auto 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.capsule-nav ul {
  display: flex;
  list-style: none;
  padding: 5px;
  position: relative;
  z-index: 2;
}
.capsule-nav li { flex: 1; text-align: center; }
.capsule-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
  cursor: pointer;
  font-weight: 500;
}
.capsule-nav li a:hover { color: var(--text); }
.capsule-nav li.active a { color: var(--text); font-weight: 600; }
.capsule-nav li a .nav-icon { font-size: 18px; }
.nav-slider {
  position: absolute;
  left: 5px; top: 5px;
  width: calc(25% - 3.75px);
  height: calc(100% - 10px);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 50px;
  z-index: 1;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主卡片 */
.main-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  margin-bottom: 18px;
}
.main-card::before {
  content: '';
  position: absolute;
  top: 14px; right: 44px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.main-card::after {
  content: '在线';
  position: absolute;
  top: 12px; right: 18px;
  font-size: 10px;
  color: #10b981;
  font-weight: 500;
}

/* 头像区 */
.profile { text-align: center; margin-bottom: 24px; }
.avatar-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 16px;
}
.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #3b82f6, var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #cffafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #1e3a8a;
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
  object-fit: cover;
  transition: transform 0.4s;
}
img.avatar {
  display: block;
  object-fit: cover;
}
.avatar:hover { transform: scale(1.05); }
.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}
.profile-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.profile-tagline {
  display: inline-block;
  padding: 4px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
}

/* 面板 */
.panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.panel.active { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 导航链接 */
.nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nav-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.nav-item:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
}
.nav-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.nav-item-info { flex: 1; min-width: 0; }
.nav-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item-desc {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item-arrow {
  font-size: 11px;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
  flex-shrink: 0;
}
.nav-item:hover .nav-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 奇数个时最后一个居中 */
.nav-list .nav-item:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 5px);
}

/* 区块标题 */
.section-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.section-title::before {
  content: '';
  width: 3px; height: 12px;
  background: linear-gradient(to bottom, var(--accent), #3b82f6);
  border-radius: 2px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 20px 0;
}

/* 友链 */
.friend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.friend-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.friend-card:hover {
  background: var(--glass-strong);
  transform: translateX(3px);
  border-color: rgba(6, 182, 212, 0.4);
}
.friend-avatar {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3b82f6, var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
}
.friend-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-desc {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-item:hover {
  background: var(--glass-strong);
  transform: translateX(3px);
  border-color: rgba(6, 182, 212, 0.4);
}
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.article-tag {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(6, 182, 212, 0.2);
  border-radius: 4px;
  font-size: 9px;
  color: var(--accent);
  font-weight: 500;
}
.article-tag.notice { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.article-tag.tutorial { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.article-date { font-size: 10px; color: var(--text-faint); }
.article-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.article-summary {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 公告横幅 */
.notice-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice-icon { font-size: 16px; flex-shrink: 0; }
.notice-title { font-size: 12px; font-weight: 600; margin-bottom: 3px; color: #fca5a5; }
.notice-text { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* 联系列表 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
}
.contact-empty-icon { font-size: 36px; margin-bottom: 12px; }
.contact-empty-text { font-size: 14px; margin-bottom: 6px; color: var(--text-muted); }
.contact-empty-hint { font-size: 11px; color: var(--text-faint); }
.contact-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.contact-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #3b82f6, var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-item:hover::before { opacity: 1; }
.contact-item:hover {
  background: var(--glass-strong);
  transform: translateX(3px);
  border-color: rgba(6, 182, 212, 0.4);
}
.contact-label { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-value { font-size: 11px; color: var(--text-faint); }
.contact-action { font-size: 11px; color: var(--accent); font-weight: 500; opacity: 0.8; }

/* 工作室信息 */
.studio-info {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.studio-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.studio-slogan { font-size: 10px; color: var(--text-faint); letter-spacing: 2px; }

/* 统计 */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 10px; color: var(--text-faint); margin-top: 2px; }

/* 友链申请 */
.apply-box {
  text-align: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.apply-box .t { font-size: 12px; margin-bottom: 5px; font-weight: 500; }
.apply-box .d { font-size: 10px; color: var(--text-faint); margin-bottom: 10px; }
.apply-box button {
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
}

/* 页脚 */
.footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  padding: 14px 0;
  line-height: 2;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer-run {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 6px;
}

/* 文章详情页 */
.article-detail {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.article-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-detail-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
.article-detail-content p { margin-bottom: 14px; }
.article-back {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}
.article-back:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
}

/* 手机端 */
@media (max-width: 480px) {
  .container { padding: 20px 12px; }
  .footer-welcome { padding: 6px 12px; font-size: 10px; gap: 12px; }
  .main-card { padding: 24px 16px; border-radius: 12px; }
  .capsule-nav { width: 100%; }
  .capsule-nav li a { font-size: 11px; padding: 8px 4px; }
  .capsule-nav li a .nav-icon { font-size: 16px; }
  .avatar-wrap { width: 72px; height: 72px; }
  .avatar { width: 72px; height: 72px; font-size: 28px; }
  .profile-name { font-size: 18px; }
  .profile-title { font-size: 12px; }
  .nav-list { gap: 8px; }
  .nav-item { padding: 10px 10px; gap: 8px; }
  .nav-item-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
  .nav-item-name { font-size: 11px; }
  .nav-item-desc { font-size: 9px; }
  .nav-list .nav-item:nth-child(odd):last-child { width: calc(50% - 4px); }
  .friend-grid { gap: 6px; }
  .friend-card { padding: 8px 10px; gap: 6px; }
  .friend-avatar { width: 24px; height: 24px; font-size: 10px; border-radius: 5px; }
  .friend-name { font-size: 11px; }
  .friend-desc { font-size: 9px; }
}
