/* ============================================================
   PlusPayment Global Site - Common Styles
   极简商务科技风｜PC 1920px 主，自适应平板/移动端
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* 主辅色 */
    --color-primary: #165DFF;
    --color-primary-dark: #0E47C7;
    --color-primary-soft: #E8F0FF;
    --color-accent: #36D399;
    --color-accent-soft: #E6FAF1;

    /* 中性色 */
    --color-text-1: #1D2129;
    --color-text-2: #4E5969;
    --color-text-3: #86909C;
    --color-text-4: #C9CDD4;

    /* 背景 */
    --color-bg: #FFFFFF;
    --color-bg-soft: #F7F8FA;
    --color-bg-blue: #F2F6FF;

    /* 功能色 */
    --color-success: #00B42A;
    --color-danger: #F53F3F;
    --color-warning: #FF7D00;

    /* 边框 */
    --color-border: #E5E6EB;
    --color-border-soft: #F2F3F5;

    /* 圆角 */
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-modal: 16px;
    --radius-pill: 999px;

    /* 阴影 */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(22, 93, 255, 0.12);
    --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* 字体 */
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    --font-cn: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;

    /* 间距 */
    --gap-page-x: 120px;
    --gap-section: 80px;
    --gap-sub: 40px;
    --gap-card: 24px;

    /* 过渡 */
    --transition-default: all 0.28s cubic-bezier(.25, .8, .25, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-1);
    background: var(--color-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    color: var(--color-text-1);
    letter-spacing: -0.01em;
}

h1 { font-size: 32px; line-height: 1.25; }
h2 { font-size: 28px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.4; }
h4 { font-size: 16px; line-height: 1.5; }

p { margin: 0; }

/* ---------- 3. Layout ---------- */
.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--gap-page-x);
}

.section {
    padding: var(--gap-section) 0;
}

.section--soft {
    background: var(--color-bg-soft);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-head .lead {
    font-size: 16px;
    color: var(--color-text-3);
    max-width: 720px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition-default);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.18);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.28);
}

.btn--ghost {
    background: #fff;
    color: var(--color-text-1);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-blue);
}

.btn--text {
    padding: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    background: transparent;
}

.btn--text:hover {
    color: var(--color-primary-dark);
    transform: translateX(2px);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
}

.btn .arrow {
    transition: transform 0.28s ease;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ---------- 5. Navbar ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: var(--shadow-nav);
}

.nav__inner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--gap-page-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    color: var(--color-text-1);
}

.nav__brand .brand-logo {
    display: block;
    width: 64px;
    height: 52px;
    object-fit: contain;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-1);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav__menu a:hover,
.nav__menu a.active {
    color: var(--color-primary);
}

.nav__menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__login {
    font-size: 14px;
    color: var(--color-text-1);
    padding: 8px 12px;
}

.nav__login:hover {
    color: var(--color-primary);
}

/* ---------- 6. Footer ---------- */
.footer {
    background: #0E1422;
    color: #C9CDD4;
    padding: 64px 0 32px;
}

.footer__cta {
    background: linear-gradient(135deg, #0F2A6E 0%, #165DFF 50%, #2E72FF 100%);
    border-radius: 24px;
    padding: 56px 64px;
    margin-bottom: 64px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.footer__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(54, 211, 153, 0.25), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.footer__cta h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 8px;
    position: relative;
}

.footer__cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    position: relative;
}

.footer__cta .btn {
    position: relative;
    background: #fff;
    color: var(--color-primary);
}

.footer__cta .btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand .nav__brand {
    color: #fff;
    margin-bottom: 16px;
}

.footer__brand .brand-logo {
    width: 72px;
    height: 62px;
}

.footer__brand p {
    font-size: 13px;
    line-height: 1.7;
    color: #86909C;
    max-width: 280px;
}

.footer__col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer__col ul li {
    margin-bottom: 12px;
}

.footer__col a {
    font-size: 13px;
    color: #86909C;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #4E5969;
}

.footer__bottom .lang {
    display: flex;
    gap: 16px;
}

.footer__bottom .lang a {
    color: #86909C;
}

/* ---------- 7. Floating Contact ---------- */
.float-contact {
    position: fixed;
    right: 32px;
    bottom: 48px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-contact__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #165DFF 0%, #2E72FF 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.32);
    transition: var(--transition-default);
    position: relative;
}

.float-contact__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.42);
}

.float-contact__btn .tip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text-1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.float-contact__btn .tip::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--color-text-1);
}

.float-contact__btn:hover .tip {
    opacity: 1;
}

/* ---------- 8. Cards (Generic) ---------- */
.card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(22, 93, 255, 0.18);
}

/* ---------- 9. Tags ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.tag--primary {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.tag--accent {
    background: var(--color-accent-soft);
    color: #1A8F66;
}

.tag--warn {
    background: #FFF1E6;
    color: #D46B08;
}

/* ---------- 10. Page Hero (inner pages) ---------- */
.page-hero {
    padding: 152px 0 72px;
    background:
        radial-gradient(circle at 90% 0%, rgba(54, 211, 153, 0.10), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(22, 93, 255, 0.10), transparent 50%),
        linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.page-hero__inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-hero h1 span.hl {
    background: linear-gradient(120deg, #165DFF 0%, #36D399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero .lead {
    font-size: 18px;
    color: var(--color-text-3);
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.page-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ---------- 11. Utilities ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-3); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* 入场动画 */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1440px) {
    :root { --gap-page-x: 64px; }
}

@media (max-width: 1024px) {
    :root {
        --gap-page-x: 32px;
        --gap-section: 56px;
    }
    .nav__menu { gap: 20px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__cta { padding: 40px 32px; flex-direction: column; align-items: flex-start; text-align: left; }
    .page-hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    :root {
        --gap-page-x: 20px;
        --gap-section: 40px;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    .nav__menu { display: none; }
    .nav__actions .btn { padding: 8px 16px; font-size: 13px; }
    .float-contact { right: 16px; bottom: 24px; }
    .float-contact__btn { width: 48px; height: 48px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 12px; }
    .page-hero { padding: 120px 0 48px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero .lead { font-size: 16px; }
}
