﻿/* 鍏ㄥ眬鏍峰紡 - 鏈堢洓鍖荤枟瀹樼綉 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0070b0;
  --primary-dark: #005a8a;
  --secondary: #00a0e9;
  --accent: #f5a623;
  --dark: #1a1a2e;
  --gray: #666;
  --light-gray: #f5f7fa;
  --white: #ffffff;
  --border: #e4e7ed;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: #333;
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* 瀵艰埅鏍?*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .logo-icon {
  width: 180px;
  height: 50px;
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  background: url(./images/logo-1.jpg) no-repeat left;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.navbar .logo-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.navbar .logo-text small {
  display: block;
  font-size: 14px;
  color: var(--gray);
  font-weight: 400;
}

.navbar .nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.navbar .nav-links a {
  font-size: 18px;
  color: var(--dark);
  transition: color 0.3s;
  padding: 4px 0;
  position: relative;
  cursor: pointer;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--primary);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: 100%;
}

.navbar .nav-auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hero 鍖哄煙 */
.hero {
  margin-top: 40px;
  height: 600px;
  background:url(./images/bg.jpg) no-repeat center;
  /* background: linear-gradient(135deg, #003366 0%, #005a8a 40%, #0070b0 100%) ; */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero::after {
  content: '';
  position: absolute;
  right: 200px;
  bottom: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  color: white;
  line-height: 2.0;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 12px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #e0960f;
  transform: translateY(-2px);
}

.btn-outline {
  padding: 12px 32px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* 鍒嗗尯鏍囬 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray);
}

/* 浜у搧鍗＄墖 */
.products-section {
  padding: 80px 60px;
  background: var(--light-gray);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-image {
  height: 400px;
  background: linear-gradient(135deg, #e8f4fc, #d0e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.product-body {
  padding: 28px;
}

.product-body h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 14px;
}

.product-body p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

/* 鍏充簬鎴戜滑 */
.about-section {
  padding: 90px 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-text h3 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}

.about-text p {
  color: var(--gray);
  font-size: 16px;
  line-height: 2;
  text-indent: 2em;
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.stat-item .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.about-image {
  height: 380px;
  /* background: linear-gradient(135deg, #003366, #005a8a); */
  background: url(./images/about.jpg) no-repeat;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  color: rgba(255,255,255,0.3);
}

/* 鍝佺墝鐞嗗康 */
.brand-section {
  padding: 80px 60px;
  background: #679ff9;
  color: white;
}

.brand-section .section-header h2 { color: white; }
.brand-section .section-header p { color: rgba(255,255,255,0.6); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
}

.brand-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.brand-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.brand-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.brand-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}

/* 鑽ｈ獕璇佷功
.honor-section {
  padding: 80px 60px;
  background: var(--light-gray);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.honor-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.honor-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.honor-card h4 {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
} */
/* 鑽ｈ獕璇佷功 */
.honor-section {
  padding: 80px 60px;
  background: var(--light-gray);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.honor-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
  cursor: pointer;
}

.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 鑽ｈ獕鍥剧墖瀹瑰櫒 */
.honor-image-wrapper {
  width: 100%;
  height: 160px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
}

.honor-image {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* 淇濇寔鍥剧墖姣斾緥 */
  transition: transform 0.3s;
}

.honor-card:hover .honor-image {
  transform: scale(1.05);
}

.honor-card h4 {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}

/* ===== 妯℃€佹鏍峰紡 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px 40px 30px;
  max-width: 700px;
  width: 90%;
  max-height: 100vh;
  position: relative;
  animation: scaleIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  color: var(--dark);
  text-align: center;
  margin: 0;
}

/* 鍔ㄧ敾 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
  .honor-section {
    padding: 40px 20px;
  }
  
  .honor-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .honor-image-wrapper {
    height: 120px;
  }
  
  .modal-content {
    padding: 24px;
  }
}
/* 鏂伴椈鍒楄〃 */
.news-section {
  padding: 80px 60px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.news-thumb {
  height: 180px;
  background: linear-gradient(135deg, #e8f4fc, #d0e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
}

.news-card-body {
  padding: 20px;
}

.news-category {
  font-size: 12px;
  color: var(--primary);
  background: #e8f4fc;
  padding: 2px 10px;
  border-radius: 10px;
}

.news-card-body h3 {
  font-size: 17px;
  color: var(--dark);
  margin: 10px 0 8px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card-body .date {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* 鑱旂郴鎴戜滑 */
.contact-section {
  padding: 80px 60px;
  background: var(--dark);
  color: white;
}

.contact-section .section-header h2 { color: white; }
.contact-section .section-header p { color: rgba(255,255,255,0.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 36px;
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* 琛ㄥ崟 */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder { color: rgba(255,255,255,0.3); }

textarea.form-input {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* 椤佃剼 */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 40px 60px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

/* 閫氱敤瀹瑰櫒 */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 椤甸潰鍐呭鍖?*/
.page-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* 鐧诲綍/娉ㄥ唽寮圭獥 */
.auth-dialog .el-dialog__body {
  padding: 30px 40px;
}

.auth-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  padding: 10px 0;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 鏂伴椈璇︽儏 */
.news-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.news-detail h1 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 16px;
}

.news-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.news-content {
  font-size: 16px;
  line-height: 2;
  color: #444;
}

.news-content p { margin-bottom: 16px; }
.news-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* 鍚庡彴绠＄悊 */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
}

.admin-sidebar {
  width: 220px;
  background: var(--dark);
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
}

.admin-sidebar h3 {
  padding: 0 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-menu-item.active {
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

.admin-main {
  flex: 1;
  padding: 30px;
  background: var(--light-gray);
  overflow-y: auto;
}

.admin-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-card-header h2 {
  font-size: 20px;
  color: var(--dark);
}

/* 鍒嗛〉 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* 鐘舵€佹爣绛?*/
.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.status-tag.pending { background: #fff3e0; color: #e65100; }
.status-tag.passed { background: #e8f5e9; color: #2e7d32; }
.status-tag.rejected { background: #ffebee; color: #c62828; }

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar .nav-links { display: none; }
  .hero { height: 400px; }
  .hero h1 { font-size: 28px; }
  .about-grid, .contact-grid, .footer-content { grid-template-columns: 1fr; }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar h3, .admin-menu-item span { display: none; }
}


