/* LocalSend 资讯站 - 全局样式 */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #10b981;
  --accent-orange: #f59e0b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.1) 0%, rgba(16,185,129,0.05) 100%);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img { width: 40px; height: 40px; border-radius: 10px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
}

/* Hero */
.hero {
  background: var(--gradient-hero);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-light);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img { transform: scale(1.05); }

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tag-security { background: rgba(16, 185, 129, 0.2); color: var(--accent); }
.tag-guide { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
.tag-news { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); }
.tag-enterprise { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.tag-tech { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.tag-compare { background: rgba(168, 85, 247, 0.2); color: #a78bfa; }

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-body h3 a { color: var(--text-primary); }
.card-body h3 a:hover { color: var(--primary-light); }

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature Modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.module {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.module:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}

.module-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.module h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.module p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Article Page */
.article-hero {
  padding: 60px 0 40px;
  background: var(--gradient-hero);
}

.article-hero .breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-hero .breadcrumb a { color: var(--text-secondary); }

.article-hero h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 800px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0 80px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--primary-light);
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  color: var(--text-secondary);
  margin: 16px 0 16px 24px;
}

.article-content li { margin-bottom: 8px; }

.article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-image figcaption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.info-box p { margin-bottom: 0; }

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sidebar-links a:hover { color: var(--primary-light); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}

.data-table td { color: var(--text-secondary); }

.data-table tr:hover td { background: rgba(99, 102, 241, 0.05); }

/* FAQ */
.faq-list { margin: 24px 0; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0a0f1a;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Download Page */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.download-card-highlight {
  background: var(--gradient-card);
  border-color: rgba(99, 102, 241, 0.4);
}

.download-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.download-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.download-card-meta {
  list-style: none;
  margin-bottom: 20px;
}

.download-card-meta li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
}

.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.download-card-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-card-link:hover { color: var(--primary-light); }

.hero-download { padding: 60px 0 80px; }

.faq-item code {
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-light);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
