/* Terms页面专用样式 */
/* 继承公共样式 styles.css */

/* 字体定义 */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../AlibabaPuHuiTi-3-45-Light.woff2') format('woff2'),
         url('../AlibabaPuHuiTi-3-45-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "AlibabaPuHuiTi", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero区域样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

/* 内容区域样式 */
.content-section {
    padding: 60px 0;
    background: white;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content h2 {
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.terms-content h3 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.terms-content ol, .terms-content ul {
    margin-bottom: 20px;
}

.terms-content li {
    margin-bottom: 8px;
}

.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
}

.update-info {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

/* Footer样式覆盖 */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 1.1em;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffd700;
}

.qr-tooltip {
    position: relative;
    display: inline-block;
}

.qr-tooltip .qr-code {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-tooltip:hover .qr-code {
    visibility: visible;
    opacity: 1;
}

.qr-tooltip .qr-code img {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-tooltip .qr-code::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.last-updated {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 2rem;
    text-align: center;
}

/* 目录样式 */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc ul {
    margin-bottom: 0;
}

.toc a {
    color: #667eea;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--text-dark);
}

.terms-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.terms-section ul,
.terms-section ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.terms-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.terms-section strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* 更新时间样式 */
.last-updated {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .terms-hero h1 {
    font-size: 2rem;
  }
  
  .terms-hero p {
    font-size: 1rem;
  }
  
  .terms-content {
    padding: 2rem 0;
  }
  
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.5rem;
  }
  
  .terms-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding: 2rem 0;
  }
  
  .terms-hero h1 {
    font-size: 1.8rem;
  }
  
  .terms-section {
    padding: 1rem;
  }
  
  .terms-section ul,
  .terms-section ol {
    padding-left: 1.5rem;
  }
}