@import url("office.css?v=19");

:root {
  --primary: #2b7de1;
  --primary-dark: #1a5fb4;
  --accent: #e74c3c;
  --text: #333;
  --text-secondary: #666;
  --bg: #f5f6f8;
  --white: #fff;
  --border: #e4e6eb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-box {
  width: 60px;
  height: 40px;
}

.logo-icon {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #2b7de1;
  margin: 0;
  line-height: 1.1;
}

.brand-en {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.slogan {
  display: inline-block;
  padding: 10px 24px;
  background: #2b7de1;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 4px;
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 20px;
  overflow: hidden;
  padding: 2px;
  background: var(--white);
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  opacity: 0.5;
}

.search-input {
  width: 160px;
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 14px;
  background: transparent;
}

.search-btn {
  border: none;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #eef2f8;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  text-align: center;
}

.slide-caption span {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(43, 125, 225, 0.9);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  border-radius: 4px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
  border-left: 5px solid var(--primary);
  padding-left: 12px;
}

.more {
  color: var(--primary);
  font-size: 14px;
}

.more:hover {
  color: var(--primary-dark);
}

.plates-section {
  background: var(--white);
}

.plates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: 0.2s;
}

.plate-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.plate-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.plate-card span {
  font-size: 16px;
  font-weight: 500;
}

/* Mall */
.mall-section {
  background: var(--bg);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.tab.active,
.tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.product-tag {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Standard */
.standard-section {
  background: var(--white);
}

.standard-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.standard-list a {
  color: var(--text);
  font-size: 15px;
}

.standard-list a:hover {
  color: var(--primary);
}

.standard-list span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Cases */
.cases-section {
  background: var(--bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-card h3 {
  margin: 12px 12px 6px;
  font-size: 16px;
}

.case-card p {
  margin: 0 12px 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: #cbd5e1;
  padding-top: 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-block h3,
.footer-block h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #fff;
}

.follow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.follow-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.follow-list img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.footer-block ul li {
  margin-bottom: 8px;
}

.footer-block ul a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-block ul a:hover {
  color: #fff;
}

.brand-footer {
  text-align: center;
}

.footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.phone {
  font-size: 18px;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.copyright {
  background: #22303f;
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .plates-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .main-nav {
    width: 100%;
    order: 2;
  }

  .nav-link {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 13px;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    flex: 1;
  }

  .carousel {
    height: 220px;
  }

  .slide-caption span {
    font-size: 14px;
  }

  .slogan {
    font-size: 14px;
    padding: 8px 14px;
  }

  .plates-grid,
  .product-grid,
  .cases-grid,
  .resource-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* 页面标题栏 */
.page-banner {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.page-banner h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.page-banner p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 筛选条 */
.filter-panel {
  background: #fff;
  padding: 18px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-secondary);
  padding-top: 4px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-option {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: 0.2s;
}

.filter-option:hover,
.filter-option.active {
  background: var(--primary);
  color: #fff;
}

.filter-option.more {
  color: var(--primary);
}

.page-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 资源卡片 */
.resource-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.2s;
}

.resource-card:hover {
  box-shadow: var(--shadow);
}

.resource-icon {
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.resource-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 32px;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.page-ellipsis {
  color: var(--text-secondary);
  padding: 0 4px;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-jump input {
  width: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
}

.page-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

/* 案例页 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.case-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.case-card h3 {
  margin: 12px;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .filter-row {
    flex-direction: column;
    gap: 8px;
  }
  .filter-options {
    gap: 6px;
  }
  .cases-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }
  .resource-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.set-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #999;
}
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.article-content {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 30px 34px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  text-align: center;
  margin: 22px 0 14px;
}

.article-content img {
  max-width: 100%;
  display: block;
  margin: 12px auto;
  border-radius: 6px;
}

.article-content p {
  margin: 10px 0;
}

.showcase-editor {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 18px;
}

.showcase-textarea {
  width: 100%;
  min-height: 420px;
  padding: 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.7;
  box-sizing: border-box;
}

.showcase-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.plate-uploads {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.plate-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.plate-upload input[type="file"] {
  font-size: 12px;
}
