/* 增强的Apple风格 */
:root {
  --bg-color: #ffffff;
  --text-color: #1d1d1f;
  --accent-color: #0071e3;
  --light-gray: #f5f5f7;
  --card-bg: #ffffff;
  --border-radius: 18px;
  --shadow: 0 5px 30px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 17px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header {
  padding: 30px 0;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.25px;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.8rem;
  margin: 25px 0 15px;
}

h3 {
  font-size: 1.4rem;
  margin: 20px 0 12px;
}

/* 导航栏升级 */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-top: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

nav a:hover, 
nav a.active {
  background-color: var(--light-gray);
  color: var(--accent-color);
}

/* 产品卡片升级 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-image {
  height: 240px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.1rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


.product-info {
  padding: 25px;
}

.product-info h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}

/* 图标样式 */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--light-gray);
  border-radius: 50%;
  margin-right: 12px;
}

/* 页脚升级 */
footer {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
  color: #86868b;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* 全局语言切换器样式 */
.global-language-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px; /* Add some space below the switcher */
}

.global-language-switcher .global-language-option {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: none;
  padding: 8px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.global-language-switcher .global-language-option:hover {
  background-color: #e0e0e0;
}

.global-language-switcher .global-language-option.active {
  background-color: var(--accent-color);
  color: white;
}

/* 隐私政策页特定样式 */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-content section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.update-date {
  color: #86868b;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.permissions-table th,
.permissions-table td {
  padding: 15px 20px;
  text-align: left;
}

.permissions-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.permissions-table tr:nth-child(even) {
  background-color: #fbfbfb;
}

/* 统一内容卡片 */
.content-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.page-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2.2rem;
}

.page-subtitle {
  color: #86868b;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* 客服支持页特定样式 */
.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.support-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
}

.support-icon {
  width: 70px;
  height: 70px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-color);
}

/* FAQ样式 */
.faq-section {
  margin-top: 50px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* 隐私政策和服务条款通用样式 */
.page-content section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-content section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* 语言切换器样式 */
.language-switcher {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.language-option {
  padding: 8px 16px;
  border: none;
  background: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.language-option:hover {
  background-color: #f0f0f0;
}

.language-option.active {
  background-color: #0071e3;
  color: white;
}

/* 移动设备适配 */
@media (max-width: 768px) {
  .language-switcher {
    top: 15px;
    right: 15px;
    flex-direction: column;
  }
}

.loading-indicator {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #888;
}

/* 全局语言切换器 - 固定在右上角 */
.global-language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 30px;
  padding: 8px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 10000; /* 确保在最顶层 */
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.global-language-switcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.global-language-option {
  padding: 6px 15px;
  border: none;
  background: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.global-language-option:hover {
  background-color: #f5f5f7;
}

.global-language-option.active {
  background-color: #0071e3;
  color: white;
}

/* 移动设备适配 */
@media (max-width: 768px) {
  .global-language-switcher {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }
  
  .global-language-option {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
}
header .header-content,
header h1,
header p,
header nav ul,
header nav ul li,
header nav ul li a {
  text-align: center;
}