/* ===== 全局基础样式 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 导航栏样式 - 悬浮玻璃拟态设计 ===== */
.sab-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sab-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 24, 0.65);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sab-nav.scrolled::after {
    opacity: 1;
}

.sab-nav.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.sab-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.sab-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    padding: 6px 0;
}

.sab-nav-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sab-nav-brand:hover .sab-nav-logo-wrap {
    background: rgba(0, 119, 213, 0.12);
    border-color: rgba(0, 119, 213, 0.2);
    transform: scale(1.05);
}

.sab-nav-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sab-nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sab-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.sab-nav-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.sab-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.sab-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 4px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sab-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    transition: all 0.25s ease;
    position: relative;
}

.sab-nav-link-text {
    position: relative;
    z-index: 1;
}

.sab-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.sab-nav-link.active {
    color: #ffffff;
    background: rgba(0, 119, 213, 0.2);
    box-shadow: 0 1px 4px rgba(0, 119, 213, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sab-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.sab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.sab-btn svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sab-btn-ghost {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 9px 14px;
}

.sab-btn-ghost:hover {
    color: rgba(255, 255, 255, 0.85);
}

.sab-btn-ghost:hover svg {
    transform: translateY(1px);
}

.sab-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0077D5 0%, #005fa8 100%);
    box-shadow: 0 2px 8px rgba(0, 119, 213, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 119, 213, 0.5);
}

.sab-btn-primary:hover {
    background: linear-gradient(135deg, #0088f0 0%, #0077D5 100%);
    box-shadow: 0 4px 16px rgba(0, 119, 213, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.sab-btn-primary:hover svg {
    transform: translateX(2px);
}

.sab-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 119, 213, 0.3);
}

.sab-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.sab-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.sab-hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.sab-nav-toggle.open {
    background: rgba(255, 255, 255, 0.1);
}

.sab-nav-toggle.open .sab-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sab-nav-toggle.open .sab-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.sab-nav-toggle.open .sab-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sab-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 24px;
    background: rgba(18, 18, 24, 0.95);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: navSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sab-nav-mobile.open {
    display: flex;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sab-nav-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sab-nav-mobile-link {
    display: block;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sab-nav-mobile-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sab-nav-mobile-link.active {
    color: #ffffff;
    background: rgba(0, 119, 213, 0.15);
    border-left: 3px solid #0077D5;
}

.sab-nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.sab-btn-mobile {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .sab-nav-center { display: none; }
    .sab-nav-actions { display: none; }
    .sab-nav-toggle { display: flex; }
    .sab-nav-container { padding: 0 20px; height: 64px; }
}

@media (min-width: 901px) {
    .sab-nav-mobile { display: none !important; }
}

/* ===== 页脚样式 - 现代极简暗色设计 ===== */
.sab-footer {
    background: #0b0d14;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    position: relative;
}

.sab-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.sab-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 36px;
}

.sab-footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.sab-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sab-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sab-footer-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sab-footer-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sab-footer-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.sab-footer-tagline {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

.sab-footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.sab-footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sab-footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.sab-footer-link-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

.sab-footer-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.sab-footer-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.sab-footer-contact-chip svg {
    color: rgba(0, 119, 213, 0.6);
    flex-shrink: 0;
}

.sab-footer-contact-chip:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.sab-footer-contact-chip:hover svg {
    color: #0077D5;
}

.sab-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    margin: 32px 0 24px;
}

.sab-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.sab-footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    letter-spacing: 0.3px;
}

.sab-footer-reseller {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    margin: 0;
}

.sab-footer-reseller a {
    color: rgba(0, 119, 213, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.sab-footer-reseller a:hover {
    color: #0077D5;
}

@media (max-width: 768px) {
    .sab-footer-inner { padding: 40px 20px 28px; }
    .sab-footer-contact { flex-direction: column; align-items: center; }
}

/* ===== 子页面通用页面头部样式 ===== */
.sab-page-hero {
    padding: 140px 24px 56px;
    background: #0b0d14;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sab-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 119, 213, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sab-page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.sab-page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sab-page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .sab-page-hero {
        padding: 120px 20px 40px;
    }
    .sab-page-hero h1 {
        font-size: 30px;
    }
}
