/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffaac2;
    color: #1A1A2E;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #F57CBC, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    color: #4a4a5a;
}

.nav-links a {
    transition: color 0.2s, font-weight 0.2s;
}
.nav-links a:hover {
    color: #F472B6;
    font-weight: 700;
}
.nav-links a.active {
    color: #F472B6;
    font-weight: 700;
}

.nav-icon-btn {
    color: #4a4a5a;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-icon-btn:hover {
    color: #F472B6;
}

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

/* ===== Hero 主视觉 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: -63px;
    padding: 25vh 0 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 28%, rgba(246, 136, 194, 0.22), transparent 28%),
        radial-gradient(circle at 72% 18%, rgba(246, 136, 194, 0.20), transparent 27%),
        radial-gradient(circle at 62% 72%, rgba(255, 241, 244, 0.23), transparent 25%),
        linear-gradient(180deg, #ffaac2 0%, #ffe7ec 58%, #d5e5ff 100%);
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.92;
}

.hero-glow span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(4px);
    mix-blend-mode: screen;
    animation: breathe 8s ease-in-out infinite;
}

.hero-glow span:nth-child(1) {
    width: 340px;
    height: 340px;
    left: -70px;
    top: 130px;
    background: rgba(255, 236, 242, 0.353);
}

.hero-glow span:nth-child(2) {
    width: 420px;
    height: 420px;
    right: -80px;
    top: 40px;
    background: rgba(255, 228, 234, 0.22);
    animation-delay: -2s;
}

.hero-glow span:nth-child(3) {
    width: 480px;
    height: 480px;
    left: 36%;
    bottom: -120px;
    background: rgba(255, 247, 247, 0.36);
    animation-delay: -4s;
}

@keyframes breathe {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.72;
    }
    50% {
        transform: translate3d(22px, -18px, 0) scale(1.12);
        opacity: 0.42;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(246, 136, 194, 0.4);
}

.hero h1 {
    font-size: 104px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 0.85;
    margin-bottom: 16px;
    color: #ffffff;
}
.hero h1 .highlight {
    font-size: 22px;
    background: linear-gradient(135deg, #F9A8D4, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin: 30px auto 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-secondary {
    padding: 14px 44px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A2E;
    background: #F8F9FA;
    cursor: default;
    transition: all 0.25s;
}
.btn-hero-secondary:hover {
    border-color: #F57CBC;
    background: #F57CBC;
    color: #ffffff;
}

.hero .btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: #F688C2;
    backdrop-filter: blur(12px);
}
.hero .btn-hero-secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #F688C2;
}

/* ===== 导航栏透明态（首页时） ===== */
#navbar.nav-transparent {
    background: transparent !important;
}
#navbar.nav-transparent .logo {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}
#navbar.nav-transparent .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}
#navbar.nav-transparent .nav-links a:hover,
#navbar.nav-transparent .nav-links a.active {
    color: #ffffff;
    font-weight: 700;
}
#navbar.nav-transparent .btn-hero-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s;
}
#navbar.nav-transparent .btn-hero-secondary:hover {
    background: #ffffff;
    color: #F688C2;
    border-color: #ffffff;
}
#navbar.nav-transparent .nav-icon-btn {
    color: rgba(255, 255, 255, 0.8);
}
#navbar.nav-transparent .nav-icon-btn:hover {
    color: #F688C2;
}

/* ===== 共享标签 ===== */
.section-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F472B6;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    font-size: 15px;
    color: #5a5a72;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== 功能特性 ===== */
.features {
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    padding: 24px 0;
    background: #f8f9fa;
    scroll-margin-top: 62px;
}

.features .container {
    width: 100%;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 440px));
    gap: 28px;
    justify-content: center;
}

.feature-card {
    position: relative;
    background: #ffffff;
    padding: 32px 24px 28px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
    border-color: #fbcfe8;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: #5a5a72;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.feature-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 14px;
    border-radius: 30px;
    background: #fdf2f8;
    color: #F472B6;
    font-size: 12px;
    font-weight: 600;
}

/* ===== 联系方式 ===== */
.contact {
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    padding: 60px clamp(10px, calc(10px + (100vw - 480px) * 7 / 48), 150px) 24px;
    background: #ffffff;
    scroll-margin-top: 62px;
}

.contact .container {
    max-width: none;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 0;
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8, #f9a8d4);
}

.contact-visual-inner {
    text-align: center;
    color: #ffffff;
}

.contact-visual-inner .contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.contact-visual-inner .contact-brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.contact .section-label {
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.contact .section-desc {
    text-align: center;
    margin: 0 0 50px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #4a4a5a;
}

/* ===== 社交平台小卡片 ===== */
.social-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.social-card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px 36px;
    text-align: center;
    min-width: 150px;
}

.social-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 4px;
}

.social-card p {
    font-size: 12px;
    color: #9a9ab2;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== 底部 ===== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #6a6a82;
}

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

.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    color: #ffffff;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #f0f0f0;
}

.footer-copy {
    font-size: 13px;
    color: #ffffff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
    }
    .logo {
        display: none;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 18px;
        font-size: 14px;
    }
    .nav-actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 34px;
    }
    .hero p {
        font-size: 17px;
    }

    .contact .container {
        grid-template-columns: 1fr;
        gap: 24px;
        transform: none;
        align-items: start;
    }
    .contact-visual {
        order: 1;
        height: auto;
    }
    .contact-info {
        order: -1;
        text-align: center;
    }
    .contact .section-label {
        text-align: center;
    }
    .contact .section-desc {
        text-align: center;
        max-width: none;
        margin: 0 auto 16px;
    }
    .contact-items {
        align-items: center;
    }

    .features h2 {
        font-size: 28px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ===== 门禁登录弹框样式 ===== */
#loginModal input:focus { outline: 2px solid #F688C2; outline-offset: -1px; border-color: #F688C2; }
#loginModal input::placeholder { color: #bbb; }
.pwd-wrap { position: relative; margin-bottom: 20px; }
.pwd-wrap input { width: 100%; padding: 10px 36px 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; color: #888; margin-bottom: 0; }
.pwd-wrap .toggle-pwd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; line-height: 0; color: #aaa; }
.pwd-wrap .toggle-pwd:hover { color: #666; }
.pwd-wrap .toggle-pwd svg { width: 18px; height: 18px; }
/* 用户下拉菜单 */
.user-menu-wrap { position: relative; display: inline-flex; }
.user-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); min-width: 130px; z-index: 10001; overflow: hidden; }
.user-dropdown.show { display: block; }
.user-dropdown a { display: block; padding: 10px 16px; font-size: 13px; color: #333; text-decoration: none; white-space: nowrap; }
.user-dropdown a:hover { background: #f5f5f5; }
.user-dropdown .divider { height: 1px; background: #eee; margin: 0; }
