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

:root {
  --primary: #9c27b0;
  --secondary: #00bcd4;
  --bg: #f3e5f5;
  --text: #4a148c;
  --gradient: linear-gradient(135deg, #9c27b0, #00bcd4);
  --gradient-dark: linear-gradient(135deg, #4a148c, #311b92);
  --gradient-light: linear-gradient(135deg, #f3e5f5, #e0f7fa);
  --shadow: 0 4px 20px rgba(156, 39, 176, 0.15);
  --shadow-hover: 0 10px 40px rgba(156, 39, 176, 0.25);
}

body {
  font-family: 'Noto Sans SC', 'ZCOOL XiaoWei', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(156, 39, 176, 0.3);
}

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

.logo {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #fff, #e1bee7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  display: block;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #e0f7fa;
  transform: translateY(-2px);
}

.nav-links a.active {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Main Content */
main { min-height: calc(100vh - 200px); }

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: floatBg 25s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.4), transparent);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes floatBg {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #fff, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

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

.btn-accent {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(156, 39, 176, 0.5);
  color: white;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin: 4rem 0 2.5rem;
  position: relative;
}

.section-title h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p { color: #666; font-size: 1.05rem; }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  border: 1px solid rgba(156, 39, 176, 0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: white;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.card p { color: #555; line-height: 1.7; }

/* Tool Cards (Studio) */
.tool-card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: white;
}

.tool-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.tool-card p { color: #555; flex: 1; }

.tool-features {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-features span {
  background: #f3e5f5;
  color: var(--primary);
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Gallery */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.4s;
  background: white;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(156, 39, 176, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(74, 20, 140, 0.95));
  color: white;
  padding: 1.5rem 1rem 1rem;
}

.gallery-info h4 { margin-bottom: 0.3rem; }
.gallery-info .tag {
  display: inline-block;
  background: var(--secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

/* Template Cards */
.template-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.template-thumb {
  height: 180px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.template-thumb::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: floatBg 15s linear infinite;
}

.template-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.template-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f3e5f5;
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.template-info h3 { color: var(--primary); margin-bottom: 0.5rem; }
.template-info p { color: #555; font-size: 0.95rem; flex: 1; }

.template-info .btn {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Tutorial Cards */
.tutorial-list { display: flex; flex-direction: column; gap: 1.5rem; }

.tutorial-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s;
}

.tutorial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}

.tutorial-thumb {
  width: 200px;
  min-height: 160px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tutorial-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent);
}

.tutorial-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.tutorial-content h3 { color: var(--primary); margin-bottom: 0.5rem; }
.tutorial-content p { color: #555; flex: 1; }

.tutorial-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.difficulty-easy { background: #e8f5e9; color: #2e7d32; }
.difficulty-medium { background: #fff3e0; color: #e65100; }
.difficulty-hard { background: #ffebee; color: #c62828; }

.tutorial-time { color: #888; font-size: 0.85rem; }

/* About Page */
.about-hero {
  background: var(--gradient);
  color: white;
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 35px 35px;
  animation: floatBg 20s linear infinite;
}

.about-hero h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-hero p { font-size: 1.2rem; position: relative; z-index: 1; opacity: 0.95; }

.about-story {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.about-story h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'ZCOOL XiaoWei', serif;
}

.about-story p { color: #555; line-height: 1.9; margin-bottom: 1rem; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.philosophy-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.4s;
}

.philosophy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.philosophy-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.philosophy-card h3 { color: var(--primary); margin-bottom: 0.8rem; }
.philosophy-card p { color: #555; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: all 0.4s;
}

.team-member:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
}

.team-member h3 { color: var(--primary); margin-bottom: 0.3rem; }
.team-role { color: var(--secondary); font-weight: 500; margin-bottom: 0.8rem; }
.team-member p { color: #666; font-size: 0.9rem; }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'ZCOOL XiaoWei', serif;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.contact-item:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
}

.contact-item h4 { color: var(--primary); margin-bottom: 0.3rem; }
.contact-item p { color: #555; }

.contact-form-wrap {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'ZCOOL XiaoWei', serif;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e1bee7;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* CTA Section */
.cta-section {
  background: var(--gradient);
  color: white;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 50%);
}

.cta-section h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p { margin-bottom: 2rem; position: relative; z-index: 1; font-size: 1.1rem; }
.cta-section .btn { position: relative; z-index: 1; }

/* Footer */
footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  margin-bottom: 1.2rem;
  color: #ce93d8;
  font-size: 1.1rem;
  font-family: 'ZCOOL XiaoWei', serif;
}

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

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col a {
  color: #e1bee7;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-col a:hover { color: var(--secondary); padding-left: 5px; }

.footer-col p { color: #e1bee7; line-height: 1.8; }

.footer-col .logo {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.8rem;
}

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover { background: var(--secondary); transform: translateY(-3px); }

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #e1bee7;
  font-size: 0.9rem;
}

/* Inspiration Decorations */
.inspiration-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  font-size: 8rem;
}

.deco-1 { top: 20px; left: 20px; }
.deco-2 { bottom: 30px; right: 30px; }
.deco-3 { top: 50%; right: 50px; }

/* Responsive Design */
@media (max-width: 968px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-wrap { flex-wrap: wrap; }
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }

  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }

  .section-title h2 { font-size: 1.8rem; }
  .cta-section { padding: 2.5rem 1.5rem; }
  .cta-section h2 { font-size: 1.6rem; }

  .tutorial-card { flex-direction: column; }
  .tutorial-thumb { width: 100%; min-height: 140px; }

  .about-hero { padding: 3rem 1.5rem; }
  .about-hero h1 { font-size: 2rem; }

  .footer-content { gap: 2rem; }
  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--secondary);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}