:root {
    --bg: #f4f7ff;
    --bg-soft: #eef2ff;
    --text: #142041;
    --muted: #64709b;
    --line: rgba(76, 105, 210, 0.14);
    --white: #ffffff;
    --blue: #2575ff;
    --blue-deep: #183fa9;
    --purple: #7d4dff;
    --purple-deep: #5330cb;
    --shadow: 0 24px 70px rgba(27, 57, 145, 0.14);
    --shadow-soft: 0 16px 40px rgba(46, 79, 179, 0.1);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.8;
    background:
        radial-gradient(circle at top left, rgba(125, 77, 255, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 117, 255, 0.2), transparent 26%),
        linear-gradient(180deg, #fbfcff 0%, #f3f6ff 52%, #f7f9ff 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.page-shell { min-height: calc(100vh - 220px); }

.site-header {
    position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(99, 118, 202, 0.12);
    background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.site-brand {
    display: inline-flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 800;
    color: var(--text); letter-spacing: 0.02em;
}

.site-brand img { width: 46px; height: 46px; border-radius: 14px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.site-nav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: 0.25s ease; }
.site-nav a:hover,
.site-nav a.active { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 12px 28px rgba(54, 88, 220, 0.2); }

.floating-telegram {
    position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90; width: 70px;
    border-radius: 24px; padding: 12px 10px; text-align: center; color: var(--white);
    background: linear-gradient(180deg, var(--blue), var(--purple)); box-shadow: 0 20px 48px rgba(56, 77, 196, 0.28);
}

.floating-telegram__badge {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    margin-bottom: 8px; border-radius: 50%; font-weight: 800; background: rgba(255, 255, 255, 0.16);
}

.floating-telegram__label { display: block; font-size: 13px; line-height: 1.45; }

.hero, .page-hero { position: relative; overflow: hidden; }
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: auto auto 0 50%; width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(95, 83, 255, 0.18), transparent 58%);
    transform: translateX(-18%); pointer-events: none;
}

.hero { padding: 74px 0 56px; }
.page-hero { padding: 60px 0 34px; }
.hero-grid, .page-hero-grid { position: relative; z-index: 1; display: grid; gap: 26px; align-items: center; }
.hero-grid { grid-template-columns: 1.2fr 0.9fr; }

.hero-copy h1, .page-hero-copy h1 { margin: 0 0 18px; line-height: 1.1; letter-spacing: -0.02em; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 68px); }
.page-hero-copy h1 { font-size: clamp(30px, 4vw, 52px); }
.hero-copy p, .page-hero-copy p { margin: 0; font-size: 18px; color: #4f5c8d; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    margin-bottom: 18px; font-size: 13px; color: var(--blue-deep); background: rgba(37, 117, 255, 0.08);
}

.hero-actions, .stack-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
    border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 16px 32px rgba(53, 85, 210, 0.24); }
.btn-secondary { color: var(--text); background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(81, 103, 196, 0.12); box-shadow: var(--shadow-soft); }

.hero-panel, .card, .article-card, .pricing-card, .feature-card, .contact-card, .metric-card, .article-shell, .side-panel {
    background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: var(--shadow);
}

.hero-panel { padding: 26px; border-radius: var(--radius-xl); }
.hero-panel__grid { display: grid; gap: 14px; }
.hero-panel__item { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #f6f9ff, #ffffff); border: 1px solid rgba(85, 109, 211, 0.12); }

.hero-stats, .metrics-grid, .feature-grid, .card-grid, .pricing-grid, .contact-grid, .blog-list, .post-grid {
    display: grid; gap: 20px;
}

.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.metric-card { padding: 22px; border-radius: 22px; }
.metric-card strong { display: block; margin-bottom: 8px; font-size: 28px; line-height: 1.1; }
.metric-card span { display: block; color: var(--muted); font-size: 14px; }
.section { padding: 40px 0; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 44px); line-height: 1.15; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .card, .pricing-card, .contact-card, .article-card { padding: 24px; border-radius: 24px; }
.feature-card h3, .card h3, .pricing-card h3, .contact-card h3, .article-card h3 { margin: 0 0 12px; font-size: 22px; }
.feature-card p, .card p, .pricing-card p, .contact-card p, .article-card p, .article-content p { margin: 0 0 14px; color: #445078; }

.label { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--purple-deep); background: rgba(125, 77, 255, 0.08); }
.check-list { display: grid; gap: 10px; }
.check-list span { position: relative; padding-left: 22px; color: #42507b; }
.check-list span::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); }

.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-card.featured { background: linear-gradient(180deg, rgba(37, 117, 255, 0.08), rgba(125, 77, 255, 0.08) 72%, #ffffff); border-color: rgba(78, 102, 218, 0.18); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 18px; }
.price strong { font-size: 38px; line-height: 1; }
.price span { color: var(--muted); }
.blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card time, .article-head time { color: var(--muted); font-size: 14px; }
.article-card .read-link, .pager a { color: var(--blue-deep); font-weight: 700; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.pager span { color: var(--muted); }

.post-grid { grid-template-columns: 1fr 320px; align-items: start; }
.article-shell, .side-panel { padding: 28px; border-radius: 28px; }
.article-head h1 { margin: 0 0 12px; line-height: 1.18; font-size: clamp(32px, 4vw, 50px); }
.article-content p { text-indent: 2em; margin-bottom: 18px; font-size: 17px; }
.article-content h2 { margin: 28px 0 14px; font-size: 28px; }

.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cta-band {
    padding: 34px; border-radius: 30px; color: var(--white);
    background: linear-gradient(135deg, #2259f4, #7d4dff); box-shadow: 0 22px 50px rgba(51, 79, 204, 0.26);
}

.cta-band h2, .cta-band p { color: var(--white); margin-top: 0; }

.site-footer {
    margin-top: 40px; padding: 48px 0 26px; background: linear-gradient(180deg, #f0f4ff 0%, #ecf0ff 100%);
    border-top: 1px solid rgba(87, 105, 187, 0.12);
}

.footer-main { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr; gap: 24px; }
.footer-block h3, .friend-links span { margin: 0 0 12px; font-size: 18px; }
.footer-block a { display: block; margin-bottom: 10px; }
.footer-block p, .footer-block a, .friend-links a, .friend-links em, .footer-copy { color: #59658f; font-style: normal; }
.friend-links { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(88, 105, 188, 0.12); }
.friend-links__items { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-copy { margin-top: 16px; font-size: 13px; }

@media (max-width: 1100px) {
    .hero-grid, .post-grid, .contact-grid, .pricing-grid, .feature-grid, .blog-list, .footer-main, .card-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { width: min(var(--container), calc(100% - 28px)); }
    .header-inner { padding: 14px 0; align-items: flex-start; flex-direction: column; }
    .site-nav { justify-content: flex-start; }
    .hero, .page-hero, .section { padding-top: 26px; padding-bottom: 26px; }
    .feature-card, .card, .pricing-card, .contact-card, .article-card, .hero-panel, .metric-card, .article-shell, .side-panel, .cta-band { padding: 20px; border-radius: 22px; }
    .floating-telegram { right: 10px; width: 60px; padding: 10px 8px; }
    .floating-telegram__badge { width: 36px; height: 36px; }
    .floating-telegram__label { font-size: 12px; }
    .hero-copy p, .page-hero-copy p, .section-head p, .article-content p { font-size: 16px; }
}
