/* =============================================================
   随波逐流软件信息安全 — 全站共享样式表
   原色系保留 · 结构重构 · 响应式 · 动画增强
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* --- CSS Variables --- */
:root {
  --clr-bg:        #f9fafb;
  --clr-white:     #ffffff;
  --clr-dark:      #4A4A4A;
  --clr-text:      #3a3a3a;
  --clr-text-dim:  #666666;
  --clr-green:     #63a81f;
  --clr-green-dark:#009933;
  --clr-blue:      #0256ac;
  --clr-red:       #e85300;
  --clr-red-bright:#FF0000;
  --clr-gray-light:#f5f6f8;
  --clr-border:    #e0e0e0;
  --font-mono:     'Share Tech Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --font-body:     'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --max-width:     1100px;
  --nav-height:    50px;
  --radius:        6px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 28px rgba(0,0,0,0.10);
  --trans:         0.22s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  background-image: url('../img/back0.png');
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--clr-blue); text-decoration: none; transition: color var(--trans); }
a:hover {
	font-family: var(--font-mono);
	color: #FFF;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--clr-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--max-width); margin: 0 auto;
  flex-wrap: wrap; gap: 12px;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-logo {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--clr-green);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.header-logo:hover { border-color: var(--clr-green-dark); box-shadow: 0 0 0 4px rgba(99,168,31,0.10); }
.header-logo img { width: 100%; height: 100%; object-fit: cover; }
.header-site-name {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  color: var(--clr-dark); letter-spacing: 2px;
}
.header-banner { flex-shrink: 0; }
.header-banner img { height: 64px; width: auto; }

/* =================================================================
   NAVIGATION
   ================================================================= */
.site-nav {
  background: var(--clr-dark);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-md);
}
.nav-list {
  display: flex; justify-content: center;
  max-width: var(--max-width); margin: 0 auto; flex-wrap: wrap;
}
.nav-list li { flex: 0 0 auto; }
.nav-list a {
  display: block; padding: 0 16px; height: var(--nav-height); line-height: var(--nav-height);
  color: #ddd; font-size: 14px; white-space: nowrap;
  transition: background var(--trans), color var(--trans);
  text-align: center; position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--clr-green);
  transition: width var(--trans);
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--clr-green); color: #fff;
}
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 28px; cursor: pointer;
  padding: 8px 16px; line-height: 1;
}

/* =================================================================
   HERO BANNER
   ================================================================= */
.hero-banner {
  position: relative;
  margin: 0 0 40px;
  padding: 50px 30px 40px;
  text-align: center;
  background: linear-gradient(160deg, #f0f7ec 0%, #e8f4e0 25%, #f5f9f2 50%, #eaf3e4 75%, #f2f7ef 100%);
  background-size: 400% 400%;
  animation: heroShift 12s ease infinite;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d8e8d0;
}
/* Wave line pattern */
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(99,168,31,0.05) 80px, rgba(99,168,31,0.05) 81px),
    radial-gradient(ellipse at 20% 50%, rgba(99,168,31,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,153,51,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99,168,31,0.08) 0%, transparent 40%);
}
/* Decorative waves */
.hero-overlay::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0 40 Q150 10 300 40 Q450 70 600 40 Q750 10 900 40 Q1050 70 1200 40 L1200 80 L0 80Z' fill='%2363a81f' opacity='0.08'/%3E%3Cpath d='M0 50 Q150 25 300 50 Q450 75 600 50 Q750 25 900 50 Q1050 75 1200 50 L1200 80 L0 80Z' fill='%23009933' opacity='0.06'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 600px 80px;
}
.hero-overlay::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(99,168,31,0.12) 0%, transparent 14px),
    radial-gradient(circle at 85% 70%, rgba(99,168,31,0.10) 0%, transparent 18px),
    radial-gradient(circle at 30% 80%, rgba(0,153,51,0.08) 0%, transparent 10px),
    radial-gradient(circle at 70% 20%, rgba(99,168,31,0.07) 0%, transparent 12px);
}

.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 4px;
  color: var(--clr-green-dark);
  border: 1px solid var(--clr-green);
  padding: 4px 18px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: 64px; font-weight: 700;
  color: var(--clr-dark); letter-spacing: 12px;
  margin: 0 0 14px;
  line-height: 1.1;
}
.hero-title-light { color: var(--clr-green); }
.hero-subtitle {
  font-size: 16px; color: var(--clr-text-dim);
  letter-spacing: 3px; margin-bottom: 22px;
}
.hero-dots {
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots span {
  display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-green);
  opacity: 0.6;
  animation: heroDot 1.6s ease-in-out infinite;
}
.hero-dots span:nth-child(1) { animation-delay: 0.0s; background: var(--clr-green-dark); }
.hero-dots span:nth-child(2) { animation-delay: 0.2s; }
.hero-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--clr-green-dark); }
.hero-dots span:nth-child(4) { animation-delay: 0.6s; }
.hero-dots span:nth-child(5) { animation-delay: 0.8s; background: var(--clr-green-dark); }

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  25%      { background-position: 100% 0%; }
  50%      { background-position: 100% 100%; }
  75%      { background-position: 0% 100%; }
}
@keyframes heroDot {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.6); }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-banner { padding: 36px 20px 30px; margin-bottom: 24px; }
  .hero-title { font-size: 38px; letter-spacing: 6px; }
  .hero-subtitle { font-size: 14px; letter-spacing: 1px; }
  .hero-tag { font-size: 11px; letter-spacing: 2px; padding: 3px 14px; }
}
.site-main {
  max-width: var(--max-width); margin: 36px auto; padding: 0 24px;
}

/* === Section Title === */
.section-title {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700; color: var(--clr-dark);
  text-align: center; margin: 44px 0 28px; letter-spacing: 1px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block; width: 50px; height: 3px;
  background: var(--clr-green); margin: 10px auto 0;
  border-radius: 3px;
}

/* =================================================================
   PRODUCT CARDS
   ================================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px; margin: 32px 0;
}

.product-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 26px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}
.product-card:nth-child(1)  { animation-delay: 0.04s; }
.product-card:nth-child(2)  { animation-delay: 0.08s; }
.product-card:nth-child(3)  { animation-delay: 0.12s; }
.product-card:nth-child(4)  { animation-delay: 0.16s; }
.product-card:nth-child(5)  { animation-delay: 0.20s; }
.product-card:nth-child(6)  { animation-delay: 0.24s; }
.product-card:nth-child(7)  { animation-delay: 0.28s; }
.product-card:nth-child(8)  { animation-delay: 0.32s; }
.product-card:nth-child(9)  { animation-delay: 0.36s; }
.product-card:nth-child(10) { animation-delay: 0.40s; }
.product-card:nth-child(11) { animation-delay: 0.44s; }
.product-card:nth-child(12) { animation-delay: 0.48s; }

/* Green top border accent on hover */
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px;
  height: 2px; background: var(--clr-green);
  transform: scaleX(0); transition: transform var(--trans);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d0e0d0;
}
.product-card:hover::before { transform: scaleX(1); }

.card-icon {
	display: inline-block;
	vertical-align: middle;
	margin: 0 8px 0 0;
	width: 32px;
	height: 32px;
}
.card-title {
  display: inline; font-family: var(--font-mono);
  font-size: 16px; font-weight: 700; color: var(--clr-dark);
  letter-spacing: 0.3px; vertical-align: middle;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--clr-green-dark); }
.card-desc { font-size: 14px; color: var(--clr-text-dim); line-height: 1.75; margin-top: 10px; }
.card-desc .highlight { color: var(--clr-red-bright); font-weight: 600; }
.card-meta {
  margin-top: 14px; font-family: var(--font-mono);
  font-size: 12px; color: #999; letter-spacing: 0.5px;
}
.card-tag {
  display: inline-block; font-size: 12px;
  background: var(--clr-green); color: #fff;
  padding: 2px 12px; border-radius: 14px; margin-right: 6px;
}

/* =================================================================
   TABLES
   ================================================================= */
.table-wrap {
	overflow-x: auto;
	margin: 30px 0;

  border-radius: var(--radius); box-shadow: var(--shadow-sm);
	width: 50px;
}
table {
  width: 100%; border-collapse: collapse;
  background: var(--clr-white); font-size: 14px;
}
thead th {
  background: var(--clr-dark); color: #fff;
  font-family: var(--font-mono); font-size: 13px; font-weight: 400;
  letter-spacing: 0.5px; padding: 13px 18px; text-align: left;
}
tbody td {
  padding: 10px 18px; border-bottom: 1px solid var(--clr-border);
  vertical-align: top; color: var(--clr-text-dim);
}
tbody tr:nth-child(even) { background: var(--clr-gray-light); }
tbody tr:hover { background: #edf7e8; }
td:first-child {
  font-weight: 600; color: var(--clr-dark); white-space: nowrap;
}

/* =================================================================
   ALERTS
   ================================================================= */
.alert {
  background: #fff8e8;
  border: 1px solid #f0d070;
  border-left: 4px solid #f0a030;
  padding: 16px 20px; border-radius: var(--radius);
  margin: 18px 0; font-size: 14px; color: #7a5a20; line-height: 1.8;
}
.alert strong { color: #c07020; }
.alert a { color: var(--clr-blue); }
.alert code {
  background: #fff; color: #d04000;
  padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono);
  font-size: 13px; border: 1px solid #eee;
}
.alert-danger {
  background: #fef2f2;
  border-color: #f5c0c0; border-left-color: #e04040;
  color: #a04040;
}
.alert-danger strong { color: #c03030; }

/* =================================================================
   DOWNLOAD ROWS
   ================================================================= */
.download-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--clr-gray-light); padding: 14px 20px;
  border-radius: var(--radius); margin: 10px 0;
  border: 1px solid var(--clr-border); font-size: 14px;
  transition: border-color var(--trans);
}
.download-row:hover { border-color: var(--clr-green); }
.download-row .dl-label { font-weight: 600; min-width: 200px; }
.download-row .dl-link { color: var(--clr-blue); }
.download-row .dl-link:hover { color: var(--clr-red); }
.download-row .dl-pwd { font-size: 13px; color: #999; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #fff; background: var(--clr-green);
  padding: 8px 22px; border-radius: var(--radius);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  margin-left: auto;
}
.btn-dl:hover {
	background: #54911a;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99,168,31,0.30);
}

/* =================================================================
   SCREENSHOTS
   ================================================================= */
.screenshot {
  text-align: center;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  margin: 16px auto; border: 1px solid var(--clr-border);
  transition: box-shadow var(--trans);
}
.screenshot img {
  display: block;
  margin: 0 auto;
}
.screenshot:hover { box-shadow: var(--shadow-lg); }

/* =================================================================
   FEATURE LIST
   ================================================================= */
.feature-list { margin: 16px 0; }
.feature-list li {
  position: relative; padding-left: 22px; margin-bottom: 7px;
  font-size: 14px; color: var(--clr-text-dim);
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px;
  background: var(--clr-green); border-radius: 50%;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--clr-dark); color: #ccc; margin-top: 60px;
}
.footer-contact {
  text-align: center; padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-contact p { font-size: 20px; color: #fff; margin-bottom: 4px; }
.footer-contact span { font-size: 14px; color: #aaa; }
.footer-disclaimer {
  display: flex; align-items: flex-start; gap: 40px;
  max-width: var(--max-width); margin: 0 auto;
  padding: 24px; font-size: 13px; line-height: 2; color: #bbb;
}
.footer-disclaimer-text { flex: 1; }
.footer-disclaimer strong { color: #fff; }
.footer-seal {
  width: 300px; flex-shrink: 0; opacity: 1;
  transition: opacity var(--trans); align-self: center;
  background: var(--clr-bg); padding: 8px; border-radius: 4px;
}
.footer-seal:hover { opacity: 1; }
.footer-legal {
  display: flex; align-items: center; justify-content: center;
  max-width: var(--max-width); margin: 0 auto;
  padding: 14px 24px; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-icp { font-size: 13px; color: #aaa; }
.footer-icp a { color: #aaa; }
.footer-icp a:hover { color: #fff; }
.footer-icp img { display: inline; vertical-align: middle; margin-right: 4px; }

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =================================================================
   RESPONSIVE — Tablet
   ================================================================= */
@media (max-width: 1024px) {
  .header-site-name { font-size: 20px; letter-spacing: 1px; }
  .header-banner img { height: 50px; }
  .nav-list a { padding: 0 12px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
}

/* =================================================================
   RESPONSIVE — Mobile
   ================================================================= */
@media (max-width: 768px) {
  .header-inner { justify-content: center; text-align: center; padding: 12px 16px; }
  .header-brand { flex-wrap: wrap; justify-content: center; }
  .header-banner { display: none; }
  .header-logo { width: 44px; height: 44px; }
  .header-site-name { font-size: 17px; letter-spacing: 1px; }

  .site-nav { position: relative; }
  .nav-toggle { display: block; width: 100%; text-align: center; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: 0 16px; height: 44px; line-height: 44px;
    font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-list a::after { display: none; }

  .site-main { margin: 22px auto; padding: 0 16px; }
  .section-title { font-size: 20px; margin: 30px 0 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { padding: 18px; }
  .download-row { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { flex-direction: column; align-items: center; gap: 20px; font-size: 12px; padding: 16px; }
  .footer-disclaimer-text { text-align: left; }
  .footer-seal { width: 180px; }
  .footer-legal { flex-direction: column; align-items: center; text-align: center; }
  table { font-size: 12px; }
  td, th { padding: 8px 10px; }
}
