/* 
 * 糖糖虾数字空间 - 水墨丹青风格
 * 设计方向：Editorial + 东方美学
 * 避免：紫色渐变、Inter/Roboto、规整布局
 */

/* === 字体导入 === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;900&family=LXGW+WenKai:wght@300;400;700&display=swap');

/* === CSS 变量 - 水墨丹青配色 === */
:root {
  /* 核心色彩 */
  --bg-primary: #f5f0e8;      /* 米白宣纸 */
  --bg-secondary: #e8e0d0;    /* 浅米色 */
  --bg-card: #fffdf7;         /* 白宣纸 */
  
  --text-primary: #2d2926;    /* 墨黑 */
  --text-secondary: #5a5248;  /* 深墨灰 */
  --text-muted: #8a8070;      /* 灰墨 */
  
  --accent-red: #c94a3a;      /* 朱红 */
  --accent-gold: #d4a84b;     /* 金色 */
  --accent-blue: #4a6a8a;     /* 靛蓝 */
  --accent-green: #5a7a5a;    /* 松绿 */
  
  /* 渐变 - 水墨晕染效果 */
  --gradient-ink: linear-gradient(135deg, #2d2926 0%, #5a5248 50%, #8a8070 100%);
  --gradient-paper: linear-gradient(180deg, #f5f0e8 0%, #e8e0d0 100%);
  --gradient-gold: linear-gradient(135deg, #d4a84b 0%, #c94a3a 100%);
  --gradient-mist: radial-gradient(circle at 30% 30%, rgba(255,253,247,0.9) 0%, rgba(232,224,208,0.5) 100%);
  
  /* 阴影 - 柔和如墨晕 */
  --shadow-ink: 0 4px 20px rgba(45, 41, 38, 0.08);
  --shadow-deep: 0 8px 40px rgba(45, 41, 38, 0.12);
  --shadow-float: 0 12px 50px rgba(45, 41, 38, 0.15);
  
  /* 边框 */
  --border-light: 1px solid rgba(45, 41, 38, 0.08);
  --border-ink: 2px solid var(--text-primary);
  
  /* 字体 */
  --font-display: 'Noto Serif SC', serif;
  --font-body: 'LXGW WenKai', 'Noto Serif SC', serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
}

/* === 基础样式 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  /* 宣纸纹理背景 */
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23f5f0e8" width="100" height="100"/><circle cx="20" cy="20" r="1" fill="%23e8e0d0" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23e8e0d0" opacity="0.2"/><circle cx="40" cy="80" r="1" fill="%23e8e0d0" opacity="0.4"/><circle cx="60" cy="60" r="0.5" fill="%23e8e0d0" opacity="0.3"/></svg>');
  background-size: 100px 100px;
}

/* === 导航栏 - 简约东方风 === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-light);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-ink);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.1em;
}

.logo-shrimp {
  font-size: 2rem;
  animation: swim 3s ease-in-out infinite;
}

@keyframes swim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  75% { transform: translateY(3px) rotate(5deg); }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: var(--accent-red);
}

/* 东方风格下划线 - 毛笔笔触效果 */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px 2px 1px 0;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === 英雄区 - 水墨意境 === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  /* 水墨渐变背景 */
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(201, 74, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 75, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* 水墨晕染装饰 */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 41, 38, 0.03) 0%, transparent 70%);
  animation: ink-drift 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(201, 74, 58, 0.02) 0%, transparent 70%);
  animation: ink-drift 25s ease-in-out infinite reverse;
}

@keyframes ink-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(30px, -20px) scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-avatar {
  font-size: 120px;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: gentle-float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(45, 41, 38, 0.1));
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  line-height: 1.2;
  /* 墨迹渐变效果 */
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  margin: 2rem auto;
  border-radius: 1px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === 按钮样式 - 东方风格 === */
.btn {
  font-family: var(--font-display);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-red);
  color: var(--bg-card);
  border: 2px solid var(--accent-red);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 74, 58, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-card);
  border: 2px solid var(--accent-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 75, 0.3);
}

/* === 卡片样式 - 宣纸质感 === */
.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-ink);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* 卡片顶部装饰线 - 毛笔笔触 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
  border-color: rgba(201, 74, 58, 0.2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* === 工具卡片网格 - 不对称布局 === */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.tool-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-ink);
  transition: all 0.4s ease;
  position: relative;
}

/* 不对称布局 - 打破规整网格 */
.tool-card:nth-child(1) { grid-column: span 6; }
.tool-card:nth-child(2) { grid-column: span 4; }
.tool-card:nth-child(3) { grid-column: span 4; }
.tool-card:nth-child(4) { grid-column: span 5; }
.tool-card:nth-child(5) { grid-column: span 5; }

.tool-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-deep);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tool-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.tag-new {
  background: var(--accent-red);
  color: var(--bg-card);
  font-weight: 600;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.tool-link:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.tool-link::after {
  content: '→';
  transition: transform 0.3s;
}

.tool-link:hover::after {
  transform: translateX(3px);
}

/* === 统计区 - 简约数字 === */
.stats-section {
  background: var(--bg-card);
  padding: 4rem 2rem;
  border-top: var(--border-light);
  border-bottom: var(--border-light);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* === 页脚 - 墨迹风格 === */
.footer {
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 253, 247, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 253, 247, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 253, 247, 0.5);
}

/* === 响应式设计 === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-card:nth-child(n) {
    grid-column: span 1;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* === 动画增强 === */
/* 页面加载动画 */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* 墨迹展开效果 */
@keyframes ink-spread {
  from {
    clip-path: circle(0% at 50% 50%);
  }
  to {
    clip-path: circle(100% at 50% 50%);
  }
}

.ink-reveal {
  animation: ink-spread 1s ease-out forwards;
}

/* 笔触书写效果 */
@keyframes brush-write {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.brush-animation {
  animation: brush-write 0.8s ease-out forwards;
}

/* === 特殊装饰 === */
/* 印章效果 */
.seal {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-red);
  color: var(--bg-card);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  border-radius: 2px;
  letter-spacing: 0.2em;
  box-shadow: 2px 2px 0 rgba(45, 41, 38, 0.3);
}

/* 卷轴装饰 */
.scroll-decoration {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
}

.scroll-decoration::before,
.scroll-decoration::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-red) 100%);
  top: 0;
}

.scroll-decoration::before { left: -10px; border-radius: 10px 0 0 10px; }
.scroll-decoration::after { right: -10px; border-radius: 0 10px 10px 0; }

/* 金边装饰 */
.gold-border {
  border: 2px solid var(--accent-gold);
  box-shadow: 
    inset 0 0 10px rgba(212, 168, 75, 0.1),
    0 0 20px rgba(212, 168, 75, 0.1);
}

/* === 实用类 === */
.text-red { color: var(--accent-red); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }

.bg-card { background: var(--bg-card); }
.bg-paper { background: var(--bg-primary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; }

.grid { display: grid; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-ink); }