/* ==========================================================================
   SDK Downloads Page Styles
   Based on OpenDev dark theme
   ========================================================================== */

:root {
  /* 主色调 - 科技感深色主题 */
  --bg-primary: #050508;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #12121a;
  --bg-card: rgba(16, 16, 24, 0.8);

  /* 边框颜色 */
  --border-color: rgba(0, 212, 255, 0.1);
  --border-color-hover: rgba(0, 212, 255, 0.3);

  /* 文字颜色 */
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-tertiary: #606060;

  /* 强调色 */
  --accent-primary: #00d4ff;
  --accent-secondary: #00ff88;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #00ff88);

  /* 状态颜色 */
  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4757;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* 动画 */
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #000000 0%, #050508 50%, #0a1020 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Header */
.assets-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.assets-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assets-logo {
  font-size: 20px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.assets-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.assets-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.assets-nav a:hover {
  color: var(--accent-primary);
}

/* Language Toggle Button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Main Content */
.assets-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Hero Section */
.assets-hero {
  text-align: center;
  margin-bottom: 48px;
}

.assets-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.assets-hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Platform Cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.platform-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
}

.platform-icon svg {
  width: 28px;
  height: 28px;
}

.platform-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.platform-info .latest-version {
  color: var(--accent-secondary);
  font-size: 14px;
  font-weight: 500;
}

.platform-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.version-list {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

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

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

.version-info {
  flex: 1;
}

.version-number {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-date {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 2px;
}

.release-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.release-badge.feature {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
}

.release-badge.bugfix {
  background: rgba(0, 255, 136, 0.15);
  color: var(--success);
}

.release-badge.hotfix {
  background: rgba(255, 170, 0, 0.15);
  color: var(--warning);
}

.release-badge.breaking {
  background: rgba(255, 71, 87, 0.15);
  color: var(--error);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-download svg {
  width: 14px;
  height: 14px;
}

.view-all-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.view-all-link:hover {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* No SDK Available */
.no-sdk {
  text-align: center;
  padding: 32px;
  color: var(--text-tertiary);
}

.no-sdk-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Release Notes Section */
.release-notes-section {
  margin-top: 48px;
}

.release-notes-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.release-notes-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.release-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.release-notes-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-notes-title h4 {
  font-size: 16px;
  font-weight: 600;
}

.release-notes-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.release-notes-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.release-notes-content li {
  margin: 8px 0;
}

/* Footer */
.assets-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  margin-top: 48px;
}

.assets-footer p {
  color: var(--text-tertiary);
  font-size: 12px;
}

.assets-footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Loading State */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .assets-header-content {
    flex-direction: column;
    gap: 16px;
  }

  .assets-hero h1 {
    font-size: 28px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .version-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
