/* 现代化下载页面样式 - 简洁版本，与首页保持一致 */
:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --accent-color: #ff6b35;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --border-color: #e9ecef;
  --error-color: #dc3545;
  --error-bg: #f8d7da;
  --error-border: #f5c6cb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 基础样式 */
.w {
  width: 960px;
  margin: 0 auto;
}

/* hline样式 */
.hline {
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
    height: auto;
  }
  
  .header .nav {
    margin-left: 20px;
  }
  
  .header .nav li {
    margin-right: 10px;
    font-size: 13px;
  }
  
  .header .nav li a {
    padding: 6px 12px;
  }
}

/* 简化的介绍区域 */
.intro-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  border-bottom: 1px solid #e9ecef;
}

.intro-content {
  text-align: center;
}

.intro-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.intro-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* SDK展示区域 */
.sdk-section {
  padding: 100px 0;
  background: white;
}

.sdk-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.sdk-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sdk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sdk-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.sdk-card:hover::before {
  transform: scaleX(1);
}

.sdk-header {
  padding: 30px 30px 20px;
  position: relative;
}

.sdk-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  position: relative;
}

.php-icon {
  background: linear-gradient(135deg, #777BB4, #4F5B93);
}

.java-icon {
  background: linear-gradient(135deg, #F89820, #E76F00);
}

.python-icon {
  background: linear-gradient(135deg, #3776AB, #FFD43B);
}

.sdk-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.sdk-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.sdk-content {
  padding: 0 30px 20px;
}

.sdk-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sdk-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.sdk-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.sdk-meta {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.update-time {
  color: var(--text-light);
  font-size: 12px;
  background: var(--light-bg);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* 新的日志链接样式 */
.log-link {
  color: var(--primary-color);
  font-size: 11px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  position: relative;
}

.log-link::before {
  content: '📄';
  font-size: 10px;
  opacity: 0.8;
}

.log-link:hover {
  background: rgba(0, 102, 255, 0.08);
  color: #0052cc;
  transform: translateY(-1px);
}

.log-link:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

.sdk-actions {
  padding: 20px 30px 30px;
  border-top: 1px solid var(--border-color);
}

.btn-modern {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* 快速开始区域 */
.quickstart-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* 技术支持区域 */
.support-section {
  padding: 100px 0;
  background: white;
}

.support-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.support-item {
  padding: 40px 30px;
  background: var(--light-bg);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.support-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.support-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.support-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.support-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 联系方式样式 */
.contact-info {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  color: var(--primary-color);
  font-weight: 600;
  min-width: 60px;
  font-size: 14px;
}

.contact-value {
  color: var(--text-dark);
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  flex: 1;
  margin: 0 12px;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.copy-btn.copied::before {
  content: '✓';
  margin-right: 2px;
}

.support-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.support-item a:hover {
  gap: 10px;
}

/* 通用样式 */
.section-header {
  text-align: center;
  padding-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 20px;
  color: var(--text-light);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* 现代化页脚 - 避免与原始页脚冲突 */
.modern-footer {
  background: var(--dark-bg);
  color: white;
  padding: 40px 0;
  margin-bottom: 0;
}

.modern-footer .footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.modern-footer .footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.modern-footer .footer-bottom p {
  margin-bottom: 8px;
  font-size: 14px;
}

.modern-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.modern-footer .footer-bottom a:hover {
  color: white;
}

/* 隐藏原始页脚，避免重复显示 */
.footer {
  display: none;
}

/* 兼容性样式 */
.hline {
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* 模态框样式 - 清理重复定义，使用现代化版本 */

/* 现代化模态框样式 */
.modal {
  border-radius: 12px;
  overflow: hidden;
}

.modal-dialog {
  border-radius: 12px;
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 20px 24px;
}

.modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-header .close {
  color: white;
  opacity: 0.8;
  font-size: 1.5rem;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
}

/* 模态框内容样式 */
.sdkLogDv {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.sdkLogDv:last-child {
  margin-bottom: 0;
}

.sdkLogDv .str {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

.sdkUl {
  margin: 0;
  padding-left: 20px;
}

.sdkUl li {
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.6;
}

.sdkUl li:last-child {
  margin-bottom: 0;
}

.modal-body .loading {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 20px;
}

/* 现代化按钮样式 */
.btn-modern {
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-modern.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-modern.btn-primary:hover {
  background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-modern.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-modern.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-modern.btn-secondary::after {
  content: '📋';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-modern.btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
  border-color: transparent;
}

.btn-modern.btn-secondary:hover::before {
  left: 100%;
}

.btn-modern.btn-secondary:hover::after {
  right: 15px;
  opacity: 1;
}

.btn-modern.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

/* 移动端优化 - sdk-meta布局 */
@media (max-width: 768px) {
  .sdk-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .log-link {
    align-self: flex-end;
  }
  
  /* 移动端联系方式优化 */
  .contact-info {
    padding: 12px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }
  
  .contact-item strong {
    min-width: auto;
  }
  
  .contact-value {
    margin: 0;
    font-size: 12px;
  }
  
  .copy-btn {
    align-self: flex-end;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 10px;
    margin-top: 12px;
  }
  
  .contact-item {
    padding: 10px 0;
  }
  
  .contact-value {
    font-size: 11px;
    word-break: break-all;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .sdk-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .intro-content h1 {
    font-size: 2rem;
  }
  
  .intro-features {
    gap: 8px;
  }
  
  .feature-tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .hero-card {
    padding: 30px 20px;
  }
  
  .sdk-card {
    margin: 0 -10px;
    border-radius: 12px;
  }
  
  .sdk-header,
  .sdk-content,
  .sdk-actions {
    padding: 20px;
  }
  
  .step-card,
  .support-item {
    padding: 30px 20px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统一的SDK模态框头部样式 */
.phpSdkPt .modal-header,
.javaSdkPt .modal-header,
.pythonSdkPt .modal-header,
.androidSdkPt .modal-header,
.flashSdkPt .modal-header {
  background: var(--gradient-primary);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: none;
  padding: 20px 25px;
}

.phpSdkPt .modal-title,
.javaSdkPt .modal-title,
.pythonSdkPt .modal-title,
.androidSdkPt .modal-title,
.flashSdkPt .modal-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.phpSdkPt .modal-title .sdkType,
.javaSdkPt .modal-title .sdkType,
.pythonSdkPt .modal-title .sdkType,
.androidSdkPt .modal-title .sdkType,
.flashSdkPt .modal-title .sdkType {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
  display: inline-block;
}

.phpSdkPt .close,
.javaSdkPt .close,
.pythonSdkPt .close,
.androidSdkPt .close,
.flashSdkPt .close {
  font-size: 28px;
  opacity: 0.9;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  line-height: 1;
}

.phpSdkPt .close:hover,
.javaSdkPt .close:hover,
.pythonSdkPt .close:hover,
.androidSdkPt .close:hover,
.flashSdkPt .close:hover {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.1);
}

/* SDK模态框内容区域优化 */
.phpSdkPt .modal-content,
.javaSdkPt .modal-content,
.pythonSdkPt .modal-content,
.androidSdkPt .modal-content,
.flashSdkPt .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phpSdkPt .modal-body,
.javaSdkPt .modal-body,
.pythonSdkPt .modal-body,
.androidSdkPt .modal-body,
.flashSdkPt .modal-body {
  padding: 30px;
  background-color: #ffffff;
}

/* SDK日志加载错误状态样式 */
.loading.error {
  color: #dc3545 !important;
  background-color: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  padding: 15px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* SDK日志内容样式优化 */
.sdkLogDv {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.sdkLogDv:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sdkLogDv .str {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.sdkLogDv .sdkUl {
  margin: 0;
  padding-left: 20px;
}

.sdkLogDv .sdkUl li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text-dark);
  position: relative;
}

.sdkLogDv .sdkUl li:before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* 模态框优化 */
.modal .sdkLog {
  max-height: 400px;
  overflow-y: auto;
}

.modal .sdkLog::-webkit-scrollbar {
  width: 6px;
}

.modal .sdkLog::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal .sdkLog::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal .sdkLog::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}