/*
 * Digital Canvas Theme
 * Palette:
 *   - Base: #f7f5f0 (Warm Off-white)
 *   - Text: #1a1a1a (Ink Black)
 *   - Primary: #004d40 (Deep Teal Green)
 *   - Accent: #d97706 (Ochre/Amber)
 *   - Surface: #ffffff (White)
 *   - Border: #e7e5e4 (Light Gray)
 */

:root {
  --base-bg: #f7f5f0;
  --text-color: #1a1a1a;
  --primary-color: #004d40;
  --accent-color: #d97706;
  --surface-bg: #ffffff;
  --border-color: #e7e5e4;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--base-bg);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.topnav {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-color);
}

.brand-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.navlist {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navlist a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.navlist a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.navlist a.on {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.nav-dl-btn {
  display: none; /* Hidden on desktop, shown on mobile */
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  white-space: nowrap;
}

.btn-green {
  background-color: var(--primary-color);
  color: white;
}

.btn-green:hover {
  background-color: #00382e;
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* --- General Sections --- */
.sec {
  padding: 80px 0;
}

.sec-alt {
    background-color: var(--surface-bg);
}

.sec-hd {
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sec-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sec-sub {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 20px;
    color: #444;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- Features Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bcard {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.bcard-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.bcard-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bcard-desc {
    font-size: 15px;
    color: #555;
}

/* --- Platform Strip --- */
.plat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.plat-card {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.plat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.plat-ico {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: #333;
}

.plat-name {
    font-weight: 600;
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-a p {
    padding: 0 0 20px;
    color: #555;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.security-line {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.footer-note {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Download Page --- */
.dl-hero {
    padding: 80px 0;
    background-color: var(--surface-bg);
}

.win-box {
    background-color: var(--base-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.win-box .plat-ico {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.win-box-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.win-box .btn {
    width: 100%;
    max-width: 300px;
}

/* --- zh-cn Page --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: flex-start;
}

.article-body h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p, .article-body ul {
    margin-bottom: 20px;
}

.article-body ul {
    padding-left: 20px;
}

.sidebar {
    position: sticky;
    top: 85px; /* header height + margin */
}

.sbox {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sbox-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sbox .btn {
    width: 100%;
    margin-bottom: 10px;
}

.cta-link {
    display: block;
    padding: 16px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    margin: 40px 0;
    transition: background-color 0.3s;
}

.cta-link:hover {
    background-color: #c26a05;
    text-decoration: none;
}

/* --- Animation --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .bento-grid, .plat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .navlist {
        display: none; /* Simple mobile nav for now */
    }
    .hero-title { font-size: 40px; }
    .sec-title { font-size: 32px; }
    .bento-grid, .plat-strip {
        grid-template-columns: 1fr;
    }
}

