/**
 * @file style.css
 * @description 遂溪县清优校服统销平台官网样式文件
 * @author AI Assistant
 * @created 2026-04-03
 */

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

:root {
  --primary-color: #4A90D9;
  --primary-dark: #3A7BC8;
  --primary-light: #6BA5E0;
  --secondary-color: #2C3E50;
  --accent-color: #E74C3C;
  --success-color: #27AE60;
  --warning-color: #F39C12;
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-color: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #1A252F;
  --border-color: #E0E0E0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

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

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  font-size: 15px;
  color: var(--text-color);
  padding: 8px 0;
  position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero区域 */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #E8F4FD 0%, #F0F7FF 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 144, 217, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--secondary-color);
  border-radius: 40px;
  padding: 15px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #1A252F;
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 30px;
  overflow: hidden;
}

.app-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-header {
  background: var(--primary-color);
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  font-weight: 600;
}

.preview-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.preview-item {
  height: 80px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.preview-item.short {
  height: 50px;
}

/* 功能特性 */
.features {
  padding: 100px 0;
  background: var(--bg-color);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
}

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

.feature-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 使用流程 */
.process {
  padding: 100px 0;
  background: var(--bg-light);
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  text-align: center;
  padding: 30px;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
}

.step-arrow {
  font-size: 30px;
  color: var(--primary-color);
  font-weight: 300;
}

/* 下载区域 */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.download .section-title,
.download .section-subtitle {
  color: white;
}

.download-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.download-qrcode {
  text-align: center;
}

.qrcode-placeholder {
  width: 180px;
  height: 180px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.qrcode-placeholder svg {
  width: 140px;
  height: 140px;
  color: var(--secondary-color);
}

.download-qrcode p {
  font-size: 14px;
  opacity: 0.9;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.download-btn svg {
  width: 30px;
  height: 30px;
}

.download-btn span {
  text-align: left;
}

.download-btn small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.download-btn strong {
  font-size: 18px;
}

/* 联系我们 */
.contact {
  padding: 100px 0;
  background: var(--bg-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.contact-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

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

.contact-card.clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.contact-card.clickable:hover {
  background: #E8F5E9;
}

.contact-card .contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-card .contact-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.contact-card .contact-icon.wechat {
  background: linear-gradient(135deg, #07C160, #2AAE67);
}

.contact-card .contact-icon.location {
  background: linear-gradient(135deg, #E74C3C, #F39C12);
}

.contact-card h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.contact-card .contact-value {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-card .click-hint {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

.contact-card .contact-time {
  font-size: 13px;
  color: var(--text-muted);
}

/* 微信提示弹窗样式 */
.wechat-tip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.wechat-tip-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 320px;
  margin: 20px;
}

.wechat-tip-header {
  margin-bottom: 20px;
}

.wechat-tip-header h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.wechat-tip-body p {
  color: #666;
  margin: 8px 0;
  font-size: 15px;
}

.wechat-tip-body .mp-name {
  font-size: 24px;
  color: #07C160;
  font-weight: bold;
  margin: 12px 0;
}

.wechat-tip-qrcode {
  margin: 20px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 12px;
}

.wechat-tip-close {
  margin-top: 15px;
  padding: 12px 40px;
  background: #07C160;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.wechat-tip-close:hover {
  background: #06AD56;
}

.contact-qrcode {
  text-align: center;
}

.contact-qrcode .wechat-qr {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-lg);
}

.contact-qrcode .qrcode-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  margin-bottom: 15px;
}

.contact-qrcode .qrcode-box {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.contact-qrcode p {
  font-size: 14px;
  color: var(--text-light);
}

/* 页脚 */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo {
  width: 35px;
  height: 35px;
}

.footer-brand span {
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
}

/* 下载页面 */
.download-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.download-hero {
  text-align: center;
  margin-bottom: 60px;
}

.download-hero h1 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.download-hero p {
  font-size: 18px;
  color: var(--text-light);
}

.download-main {
  max-width: 900px;
  margin: 0 auto;
}

.app-info {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.app-icon-large {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.app-icon-large svg {
  width: 100%;
  height: 100%;
}

.app-details h2 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.app-version,
.app-size,
.app-update {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.platform-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
}

.platform-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

.android-icon {
  background: #3DDC84;
}

.ios-icon {
  background: #007AFF;
}

.platform-card h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.platform-card > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.download-actions {
  margin-bottom: 25px;
}

.download-actions .btn {
  width: 100%;
}

.download-tip {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.qrcode-section {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.qrcode-section > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.qrcode-box {
  display: flex;
  justify-content: center;
}

.qrcode-box .qrcode-placeholder {
  width: 120px;
  height: 120px;
}

.qrcode-box .qrcode-placeholder svg {
  width: 100px;
  height: 100px;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-notice {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 40px;
}

.download-notice h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.notice-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.notice-item h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.notice-item ol {
  padding-left: 20px;
}

.notice-item li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

.update-log {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.update-log h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.log-version h4 {
  font-size: 16px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-date {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-muted);
}

.log-version ul {
  padding-left: 20px;
}

.log-version li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* 微信提示弹窗 */
.wechat-tip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.wechat-tip-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 320px;
  margin: 20px;
}

.wechat-tip-content h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #333;
}

.wechat-tip-content p {
  color: #666;
  margin: 10px 0;
}

.wechat-tip-close {
  margin-top: 20px;
  padding: 12px 40px;
  background: #4A90D9;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-content {
    flex-direction: column;
    gap: 40px;
  }

  .download-platforms {
    grid-template-columns: 1fr;
  }

  .notice-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-info {
    flex-direction: column;
    text-align: center;
  }

  .download-hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .platform-card {
    padding: 30px 20px;
  }
}
