/* 基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
  color: #1f2933;
  background-color: #f5f7fa;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 前台头部 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e4e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-size: 20px;
  font-weight: 600;
  color: #1f2933;
}

.nav a {
  margin-left: 20px;
  font-size: 14px;
  color: #52606d;
}

.nav a:hover {
  color: #127fbf;
}

/* 主体 */
.site-main {
  padding: 32px 0 48px;
}

.site-footer {
  border-top: 1px solid #e4e7eb;
  background-color: #ffffff;
  padding: 16px 0;
  font-size: 13px;
  color: #9fb3c8;
}

.footer-inner {
  text-align: center;
}

/* 模块 */
.hero {
  background: linear-gradient(135deg, #0b7285, #12b886);
  border-radius: 16px;
  padding: 40px 32px;
  color: #ffffff;
  margin-bottom: 32px;
}

.hero-content h1 {
  font-size: 28px;
  margin: 0 0 16px;
}

.hero-content p {
  margin: 0 0 24px;
  font-size: 15px;
  color: #e3fafc;
}

.hero-actions .btn {
  margin-right: 12px;
}

.section {
  margin-bottom: 32px;
}

.section-muted {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 16px;
}

.page-title {
  font-size: 24px;
  margin: 0 0 8px;
}

.page-subtitle {
  margin: 0 0 24px;
  color: #62748a;
  font-size: 14px;
}

/* 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: #e4e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb3c8;
  font-size: 13px;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.product-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #62748a;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.product-price {
  color: #0b7285;
  font-weight: 600;
}

.product-link {
  color: #127fbf;
  text-decoration: underline;
}

/* 产品详情 */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.product-detail-media {
  flex: 1 1 280px;
}

.product-detail-info {
  flex: 1 1 320px;
}

.product-image.large {
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.product-image.thumbnail {
  object-fit: contain;
}

.product-video-container {
  margin-bottom: 20px;
}

.product-video {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.product-image-thumbnail {
  margin-top: 20px;
}

.product-image-thumbnail {
  width: 200px;
  height: 150px;
  background-color: #e4e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image-thumbnail .product-image {
  object-fit: contain;
}

.product-detail-price span {
  font-size: 20px;
  color: #0b7285;
  font-weight: 600;
}

.product-detail-desc {
  margin: 16px 0;
  color: #52606d;
  font-size: 14px;
}

.product-detail-cta .btn {
  min-width: 140px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: #127fbf;
}

/* 样式公用组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #127fbf;
  border-color: #127fbf;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0b7285;
  border-color: #0b7285;
}

.btn-outline {
  background-color: transparent;
  border-color: #cbd2d9;
  color: #52606d;
}

.btn-outline:hover {
  border-color: #9fb3c8;
}

.btn-block {
  width: 100%;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-success {
  background-color: #e3f9e5;
  color: #2f8132;
}

.alert-error {
  background-color: #ffefef;
  color: #e12d39;
}

.empty-tip {
  text-align: center;
  color: #9fb3c8;
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.list li {
  margin-bottom: 6px;
}

.contact-form .form-group {
  margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d8e2ec;
  font-size: 14px;
}

.form-tip {
  font-size: 12px;
  color: #9fb3c8;
  margin-bottom: 8px;
}

/* 后台通用 */
.admin-body {
  background-color: #0f172a;
  color: #e5e7eb;
}

.admin-header {
  background-color: #020617;
  border-bottom: 1px solid #1f2937;
}

.admin-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.admin-logo {
  font-weight: 600;
  font-size: 15px;
}

.admin-nav a,
.admin-user {
  margin-left: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.admin-nav a:hover {
  color: #e5e7eb;
}

.admin-main.container {
  max-width: 1080px;
  margin: 24px auto 32px;
  padding: 0 16px;
}

.admin-main-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-main-header h1 {
  margin: 0 0 4px;
}

.admin-main .page-subtitle {
  color: #6b7280;
}

.admin-table-wrapper {
  background-color: #020617;
  border-radius: 12px;
  padding: 12px 12px 6px;
  border: 1px solid #1f2937;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #111827;
}

.admin-table th {
  text-align: left;
  color: #9ca3af;
  font-weight: 500;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.inline-form {
  display: inline;
}

.link {
  color: #38bdf8;
  margin-right: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
}

.link-danger {
  color: #f97373;
}

.form {
  background-color: #020617;
  border-radius: 12px;
  padding: 16px 16px 20px;
  border: 1px solid #1f2937;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #374151;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.form-actions {
  margin-top: 12px;
}

.form-actions .btn {
  margin-right: 8px;
}

/* 后台登录 */
.admin-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.admin-auth-card {
  width: 100%;
  max-width: 360px;
  background-color: #020617;
  border-radius: 16px;
  padding: 24px 20px 20px;
  border: 1px solid #1f2937;
}

.admin-auth-title {
  margin: 0 0 16px;
  font-size: 18px;
  text-align: center;
}

.admin-auth-form .form-group {
  margin-bottom: 12px;
}

.admin-auth-form input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #374151;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.admin-auth-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.admin-auth-back {
  margin-top: 10px;
  font-size: 13px;
  text-align: right;
}

.admin-auth-back a {
  color: #38bdf8;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    margin-top: 8px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .product-detail {
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}



