:root {
    --brand: #db2777;
    --brand-dark: #a855f7;
    --brand-soft: #fdf2f8;
    --brand-gradient: linear-gradient(135deg, #db2777, #a855f7);
    --ink: #1a1a2e;
    --muted: #6b7280;
    --line: #f3e8ff;
    --soft: #fdf4ff;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(219, 39, 119, .15);
    --shadow-hover: 0 25px 70px rgba(168, 85, 247, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* 华丽头部样式 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    border-bottom: 2px solid transparent;
    border-image: var(--brand-gradient) 1;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(219, 39, 119, .08);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.brand {
    min-width: 188px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--ink);
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.brand-logo { 
    max-height: 48px; 
    width: auto; 
    object-fit: contain; 
    filter: drop-shadow(0 4px 8px rgba(219, 39, 119, .2));
    transition: filter 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 8px 16px rgba(168, 85, 247, .4));
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--brand-gradient);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(219, 39, 119, .4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(219, 39, 119, .4); }
    50% { box-shadow: 0 4px 25px rgba(168, 85, 247, .6); }
}

.brand-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* 华丽导航样式 */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nav-item { 
    position: relative; 
}

.main-nav a,
.nav-more-btn {
    display: inline-flex;
    align-items: center;
    min-height: 80px;
    padding: 0 16px;
    color: #4a4a6a;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::before,
.nav-more-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--brand-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.main-nav a:hover::before,
.main-nav a.active::before,
.nav-more:hover .nav-more-btn::before {
    width: 80%;
}

.main-nav a:hover,
.main-nav a.active,
.nav-more:hover .nav-more-btn { 
    color: var(--brand);
    background: var(--brand-soft);
}

/* 华丽下拉菜单 */
.nav-dropdown,
.nav-more-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeInDown 0.3s ease;
}

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

.nav-dropdown:empty { display: none !important; }

.nav-more-menu { 
    left: auto; 
    right: 0; 
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu { 
    display: grid; 
}

.nav-dropdown a,
.nav-more-menu a {
    min-height: auto;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
}

.nav-dropdown a:hover,
.nav-more-menu a:hover { 
    background: var(--brand-soft); 
    color: var(--brand);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--brand-soft);
    transition: all 0.3s ease;
}

.header-phone:hover {
    background: var(--brand);
    color: #fff;
    transform: scale(1.05);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--brand-soft);
}

.lang-switch a {
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switch a.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 4px 12px rgba(219, 39, 119, .3);
}

/* 华丽按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(219, 39, 119, .35);
}

.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    color: var(--brand);
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 15px rgba(219, 39, 119, .15);
}

.btn-secondary:hover {
    background: var(--brand-soft);
    transform: translateY(-2px);
}

.btn-light {
    color: var(--brand);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.btn-light:hover {
    background: var(--brand-soft);
    transform: translateY(-2px);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    padding: 16px 0;
    border-top: 2px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
    padding-left: 24px;
}

/* 华丽页脚样式 */
.site-footer {
    color: #e9d5ff;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(160px, .7fr) minmax(240px, 1fr);
    gap: 42px;
    padding: 64px 0 48px;
    position: relative;
    z-index: 1;
}

.footer-main h3,
.footer-main h4 {
    margin: 0 0 16px;
    color: #fff;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-main p {
    max-width: 520px;
    margin: 0;
    color: #c084fc;
    line-height: 1.8;
}

.footer-main ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-main ul a {
    transition: all 0.3s ease;
    padding: 6px 0;
    display: inline-block;
}

.footer-main ul a:hover {
    color: var(--brand-dark);
    transform: translateX(5px);
}

.footer-contact li {
    display: grid;
    gap: 4px;
    padding: 8px 0;
}

.footer-contact span { 
    color: #a855f7; 
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(168, 85, 247, .2);
    color: #a78bfa;
    font-size: 13px;
}

.footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-meta a {
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: var(--brand-dark);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 1100;
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 8px 25px rgba(219, 39, 119, .4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.back-to-top.show { 
    display: grid; 
    place-items: center; 
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 扫码弹窗样式 */
.sb-qr-floating {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 1200;
}

.sb-qr-floating__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
    box-shadow: 0 8px 25px rgba(168, 85, 247, .4);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb-qr-floating__btn:hover { 
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(219, 39, 119, .5);
    background: var(--brand-gradient);
}

.sb-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sb-qr-modal.open { display: flex; }

.sb-qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, .7);
    backdrop-filter: blur(10px);
}

.sb-qr-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    padding: 32px 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(219, 39, 119, .3);
    text-align: center;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sb-qr-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb-qr-modal__close:hover { 
    background: var(--brand); 
    color: #fff; 
}

.sb-qr-modal__title {
    margin: 0 28px 10px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sb-qr-modal__tips {
    min-height: 22px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.sb-qr-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.sb-qr-modal__status {
    color: var(--muted);
    font-size: 14px;
}

.sb-qr-modal__image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.sb-qr-modal__h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 24px;
    border-radius: 20px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.sb-qr-modal__h5:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 39, 119, .35);
}

/* Section 样式 */
.section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 39, 119, .05) 0%, transparent 70%);
    pointer-events: none;
}

.section-soft {
    background: var(--soft);
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-kicker::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 3px;
}

.section h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.text-link {
    color: var(--brand);
    font-weight: 800;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fdf2f8, #faf5ff);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.text-link:hover {
    background: var(--brand-gradient);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(219, 39, 119, .3);
}

.prose {
    color: #4a4a6a;
    font-size: 16px;
    line-height: 2;
}

.prose p { margin-bottom: 20px; }
.prose p:first-child { margin-top: 0; }

/* 响应式设计 */
@media (max-width: 960px) {
    .main-nav,
    .header-actions { display: none; }
    .mobile-nav { display: block; }
    .footer-main { 
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 66px; }
    .section { padding: 60px 0; }
    .footer-bottom-inner { 
        align-items: flex-start; 
        flex-direction: column; 
        padding: 16px 0; 
    }
    .sb-qr-floating { right: 16px; bottom: 76px; }
    .sb-qr-floating__btn {
        width: 48px;
        min-width: 48px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .sb-qr-floating__btn span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
