/* 
 * undress-ai.bio - 中文网站样式
 */

:root {
  --primary: #8a2be2;
  --secondary: #4cc9f0;
  --accent: #f72585;
  --text-dark: #2b2d42;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #121212;
  --grey-light: #f8f9fa;
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

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

/* 页眉和导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text small {
  font-size: 0.8rem;
  opacity: 0.7;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: #7928ca;
  transform: translateY(-3px);
}

/* 主视觉区 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f3ebff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #555;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.button.primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.button.primary:hover {
  background-color: #7928ca;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.button.secondary {
  background-color: rgba(138, 43, 226, 0.1);
  color: var(--primary);
}

.button.secondary:hover {
  background-color: rgba(138, 43, 226, 0.2);
  transform: translateY(-3px);
}

/* 特点部分 */
.features {
  padding: 100px 0;
  background-color: var(--background-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
  z-index: -1;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.15);
}

.feature-card:hover::before {
  opacity: 0.8;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 工作原理部分 */
.how-it-works {
  padding: 100px 0;
  background-color: var(--grey-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.15);
}

.step-icon {
  margin: 0 auto 1.5rem;
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 常见问题部分 */
.faq {
  padding: 100px 0;
  background-color: var(--background-light);
}

.faq-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.faq-item {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: #666;
  margin-bottom: 0;
}

/* 行动召唤部分 */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  text-align: center;
}

.cta h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .button.primary {
  background-color: var(--text-light);
  color: var(--primary);
}

.cta .button.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  width: 50px;
  height: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand span {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-brand small {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-items {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .menu-icon {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    clip-path: circle(0% at top right);
    transition: 0.4s ease-in-out;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  nav ul li {
    width: 100%;
  }
  
  .menu-toggle:checked ~ nav {
    clip-path: circle(150% at top right);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  header .container {
    height: 70px;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
