:root {
  --primary: #0066ff;
  --primary-dark: #0055d4;
  --primary-light: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-grey: #cccccc;
  --text: #0f172a;
  --text-light: #475569;
  --bg: #f8f9fa;
  --border: #dee2e6;
  --radius: 12px;
  --dropdown-bg: var(--bg);
  --dropdown-shadow: 0 12px 32px rgba(0,0,0,0.12);
  --upload-bg: white;
  --upload-border: #d1d5db;
  --icon-background: #e7eefc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
}

.nav-left { gap: 2.8rem; }
.nav-center { gap: 3.5rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-right { gap: 2.2rem; }

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item > a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.2rem 0.8rem;
  display: block;
  transition: color 0.2s;
}

.nav-item:hover > a {
  color: var(--primary);
}

/* 登录按钮：无背景 + 浅蓝色边框 + 高度为导航栏90% */
.login-btn {
  color: var(--primary-light) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.6rem;
  border: 1px solid var(--primary-light);   /* 更浅的蓝色边框 */
  border-radius: var(--radius);
  background: transparent;
  height: 48px;                             /* 76px 的 63% */
  line-height: 48px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.login-btn:hover {
  background: rgba(96, 165, 250, 0.08);     /* 极淡的浅蓝背景 */
  border-color: var(--primary-hover);
  color: var(--primary-hover) !important;
  transform: translateY(-1px);
}

/* 下拉菜单相关样式（保持不变） */
.dropdown-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 4px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-item:hover .dropdown-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.multi-column-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  min-width: 520px;
  background: var(--dropdown-bg);
  border-radius: var(--radius);
  box-shadow: var(--dropdown-shadow);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  transition: transform 0.25s ease;
  transform: translateY(4px);
}

.multi-column-menu a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.868rem;
  padding: 0.3rem 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s, color 0.18s;
}

.multi-column-menu a:hover {
  background: #f0f7ff;
  color: var(--primary);
}

.dropdown-column h4 {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.6rem;
  padding: 0 1.5rem 0.3rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-item:hover .multi-column-menu {
  transform: translateY(0);
}

.single-column-menu {
  min-width: 240px;
  background: var(--dropdown-bg);
  border-radius: var(--radius);
  box-shadow: var(--dropdown-shadow);
  border: 1px solid var(--border);
  padding: 1rem 0;
  transition: transform 0.25s ease;
  transform: translateY(4px);
}

.nav-item:hover .single-column-menu {
  transform: translateY(0);
}

.single-column-menu a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  transition: background 0.18s, color 0.18s;
}

.single-column-menu a:hover {
  background: rgba(96, 165, 250, 0.08);
  color: var(--primary);
}

/* Hero */
.hero {
  background: var(--bg);
  padding: 5.12rem 1.5rem 3.84rem;
  text-align: center;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.52rem, 3.2vw, 2.24rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto 1.9rem;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(0,102,255,0.14);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,102,255,0.2);
}

.products-section {
  padding: 5rem 1.5rem 6rem;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.products-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.6rem;
}

.product-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  transition: all 0.25s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.js-card-link {
  cursor: pointer;
}

.product-icon {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 3rem;
  opacity: 0.9;
}
.general{
  color: #d83333;  
}
.word{
  color: rgb(16, 16, 196);  
}

.excel{
  color: green;  
}
.ppt{
  color: rgb(240, 185, 47);  
}
.pdf{
  color: #a70c0c;  
}
.html{
  color: #f07a19;  
}
.openoffice{
  color: #a70c79;  
}
.txt{
  color: #07b8a9;  
}
.product-title-group {
  padding-right: 80px;
}

.product-card h3 {
  font-size: 1.25rem;
  color: var(--primary-grey);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.product-card h4 {
  font-size: 1.28rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.product-card p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}	

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.lang-list {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.8rem;
}

/* --------------------- 模态对话框 --------------------- */
.msg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.msg-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18),
              0 0 0 1px rgba(59,130,246,0.08);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.msg-modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(to bottom, #f8fbff, #ffffff);
  border-bottom: 1px solid #e5efff;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.28rem;
  color: #1e40af;           /* 偏深的蓝，与按钮呼应 */
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.9rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
}

.modal-close:hover {
  color: #3b82f6;
}

.modal-body {
  padding: 24px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  text-align: center;  
}
.modal-body-flex {
  display: flex;
  align-items: center; /* 改成 center 最常用 */
  gap: 20px;           /* 图标与文字之间的间距 */
  margin: 20px;
}

.modal-icon {
  flex: 0 0 auto;
  width: 64px;          /* 图标区域固定宽度，可调整 */
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;    /* emoji 大小，可调 2.8rem ~ 4rem */
  line-height: 1;
}

.modal-message {
  flex: 1 1 auto;
  text-align: left;     /* 文字靠左对齐，更自然 */
  word-break: break-word;
  line-height: 180%;
}
.modal-message select {
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #90caf9;
  border-radius: 10px;
  background-color: #f5faff;
  color: #0d47a1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233659f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-message select:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
  background-color: white;
}

.modal-message select option {
  padding: 10px;
  background: white;
  color: #1a3c5e;
}

#modelDynamicWrapper {
  margin-top: 20px;
  position: relative;           /* 为可能的 label 或图标预留空间 */
}

#modalDynamicContent {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;              /* 与 modal-body 文字大小一致 */
  color: #0d47a1;               /* 与 select 文字色呼应 */
  background-color: #f5faff;    /* 与 select 背景一致，轻蓝底 */
  border: 1px solid #90caf9;    /* 与 select 边框一致 */
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* 轻微内阴影，增加立体感 */
  transition: all 0.2s ease;
  outline: none;
}

#modalDynamicContent:focus {
  border-color: #2196f3;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15); /* 与 select 一致的 focus 环 */
  background-color: white;
}

#modalDynamicContent::placeholder {
  color: #94a3b8;               /* 灰蓝，更现代 */
  opacity: 1;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  justify-content: flex-end;
  background: #f8fbff;
  border-top: 1px solid #e5efff;
}

.btn {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn.secondary {
  background: #e2efff;
  color: #1e40af;
}

.btn.secondary:hover {
  background: #d1e3ff;
}

.btn.primary {
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.45);
}

@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; height: auto; padding: 1rem; }
  .nav-left, .nav-right { justify-content: center; width: 100%; margin: 0.5rem 0; }
  .nav-center { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .login-btn { height: 56px; line-height: 56px; font-size: 1rem; padding: 0.4rem 1.3rem; }
  .multi-column-menu { grid-template-columns: 1fr; min-width: 280px; }
}

