:root {
  --primary: #0b2940;
  --primary-light: #113e5e;
  --secondary: #365a75;
  --accent: #f28c28;
  --accent-dark: #d97311;
  --bg: #f4f7fa;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #dce4ec;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header & Nav */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: block;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.main-nav a {
  color: #e2e8f0;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s;
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.btn-fullscreen {
  background-color: var(--accent);
  color: #0b2940 !important;
  font-weight: 700 !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.86rem !important;
}

.btn-fullscreen:hover {
  background-color: #ffa042;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* App Hero Section */
.app-hero {
  background: linear-gradient(180deg, #0e3350 0%, #17496d 100%);
  padding: 20px 16px 28px;
  border-bottom: 4px solid var(--accent);
}

.app-hero-inner {
  max-width: 1020px;
  margin: 0 auto;
}

.app-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
}

.app-hero-top h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.app-hero-top span {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.app-frame-wrapper {
  width: 100%;
  height: 670px;
  background-color: #0b2940;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.app-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.scroll-hint {
  text-align: center;
  color: #e2e8f0;
  font-size: 0.88rem;
  margin-top: 12px;
}

.scroll-hint a {
  color: #ffbe76;
  font-weight: 600;
}

/* Content Sections */
.section {
  margin: 36px 0;
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  font-size: 1.65rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.card-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.card-link {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.93rem;
}

/* Article / Page layout */
.article-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  max-width: 880px;
  margin: 28px auto;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.article-box h1 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-box h2 {
  font-size: 1.38rem;
  color: var(--primary-light);
  margin: 28px 0 12px;
}

.article-box h3 {
  font-size: 1.14rem;
  color: var(--secondary);
  margin: 20px 0 8px;
}

.article-box p {
  margin-bottom: 16px;
  color: var(--text);
}

.article-box ul, .article-box ol {
  margin: 0 0 18px 24px;
}

.article-box li {
  margin-bottom: 8px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-banner h3 {
  color: #fff !important;
  margin: 0 0 4px !important;
}

.cta-banner p {
  color: #e2e8f0 !important;
  margin: 0 !important;
  font-size: 0.95rem;
}

.cta-btn {
  background: var(--accent);
  color: #0b2940 !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #ffa347;
  text-decoration: none;
}

/* FAQ */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 1.06rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 36px 20px 28px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1140px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .app-frame-wrapper {
    height: 620px;
  }
  .article-box {
    padding: 22px 18px;
  }
  .article-box h1 {
    font-size: 1.5rem;
  }
}
