/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a8cff;
  --primary-dark: #0066cc;
  --secondary: #00c6ff;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* 导航栏 */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

.logo img {
  height: 45px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}

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

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

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

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 区块标题 */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

/* 为什么选择我们 */
.why-us {
  padding: 80px 0;
  background: var(--light);
}

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

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

/* 技术实力 */
.tech-power {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: var(--white);
}

.tech-power .section-title h2,
.tech-power .section-title p {
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.tech-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s;
}

.tech-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.tech-card .icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.tech-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.8;
}

/* 收费方式 */
.pricing {
  padding: 80px 0;
  background: var(--light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.pricing-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 30px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pricing-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pricing-header .price {
  font-size: 32px;
  font-weight: bold;
  margin-top: 10px;
}

.pricing-header > p {
  margin: 0;
}

.pricing-body {
  padding: 30px;
}

.pricing-body ul {
  list-style: none;
}

.pricing-body li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.pricing-body li:last-child {
  border-bottom: none;
}

/* 下载区域 */
.downloads {
  padding: 80px 0;
  background: var(--white);
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 25px;
  background: var(--light);
  border-radius: 12px;
  min-width: 140px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.download-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.download-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 12px;
}

.download-name {
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
}

/* 关于我们 */
.about {
  padding: 80px 0;
  background: var(--light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 2;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-brand img {
  height: 40px;
}

.footer-brand span {
  font-size: 20px;
  font-weight: bold;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 2;
  display: block;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-icp {
  text-align: center;
  padding-top: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.footer-icp a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-icp a:hover {
  color: rgba(255,255,255,0.6);
}

/* 后台管理样式 */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}

.admin-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
}

.admin-main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 选项卡导航 */
.admin-tabs {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
  padding: 0;
  position: sticky;
  top: 65px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tab-btn {
  padding: 16px 40px;
  font-size: 15px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
  font-family: inherit;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px 3px 0 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 表单行布局 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 卡片 */
.admin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.admin-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--dark);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.1);
}

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

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 140, 255, 0.3);
}

.btn-danger {
  background: #ff4757;
  color: var(--white);
}

.btn-danger:hover {
  background: #ff3344;
}

.btn-small {
  padding: 6px 15px;
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  font-weight: 600;
  color: var(--dark);
  background: var(--light);
}

.table tr:hover {
  background: var(--light);
}

/* 登录页 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.login-box {
  background: var(--white);
  padding: 50px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark);
}

.login-box .logo {
  justify-content: center;
  margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .section-title h2 {
    font-size: 24px;
  }

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

/* 消息提示 */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.3s;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #2ed573;
}

.toast.error {
  background: #ff4757;
}
