/* ============================================
   楼荟荟 - 楼宇综合服务平台 官网样式
   主色调：绿色 #6DD3B0 → 紫色 #B49AC5 渐变
   风格：简洁商务
   ============================================ */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-green: #6DD3B0;
    --color-purple: #B49AC5;
    --color-gradient: linear-gradient(135deg, #6DD3B0 0%, #B49AC5 100%);
    --color-gradient-soft: linear-gradient(135deg, rgba(109, 211, 176, 0.1) 0%, rgba(180, 154, 197, 0.1) 100%);
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-soft: #f9fafb;
    --color-border: #e5e7eb;
    --color-beta: #ff6b35;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
        Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 211, 176, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 154, 197, 0.35);
}

.btn-outline {
    background: #fff;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ---------- 顶部导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-gradient);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* "正在测试中" 徽章 */
.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-beta);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.beta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-beta);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 区域 ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-gradient-soft);
    color: var(--color-green);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.hero-title-sub {
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--color-text);
    -webkit-text-fill-color: var(--color-text);
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-desc strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: var(--color-text-light);
}

.meta-item strong {
    font-size: 22px;
    color: var(--color-text);
    font-weight: 700;
    margin-right: 4px;
}

.meta-divider {
    width: 1px;
    height: 16px;
    background: var(--color-border);
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg {
    max-width: 480px;
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- 通用 Section ---------- */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-gradient-soft);
    color: var(--color-green);
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-light);
}

/* ---------- 功能特色区域 ---------- */
.features {
    background: var(--color-bg-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gradient-soft);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tags li {
    padding: 4px 10px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    font-size: 12px;
    color: var(--color-text-light);
}

/* ---------- 角色方案区域 ---------- */
.role-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.role-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.role-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 42px;
    font-weight: 800;
    color: var(--color-bg-soft);
    line-height: 1;
    z-index: 0;
}

.role-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

/* 五个角色用渐变不同色相区分 */
.role-card-1 .role-icon { color: #6DD3B0; }
.role-card-2 .role-icon { color: #2a9d6f; }
.role-card-3 .role-icon { color: #5c6e8c; }
.role-card-4 .role-icon { color: #6d4a8c; }
.role-card-5 .role-icon { color: #B49AC5; }

.role-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.role-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    min-height: 66px;
}

.role-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-points li {
    font-size: 13px;
    color: var(--color-text-light);
    padding-left: 18px;
    position: relative;
}

.role-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gradient);
}

/* ---------- 数据统计区域 ---------- */
.stats {
    background: var(--color-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.stats::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stats .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.stats .section-title {
    color: #fff;
}

.stats .section-desc {
    color: rgba(255, 255, 255, 0.85);
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.stat-deco {
    margin: 0 auto;
    opacity: 0.9;
}

/* ---------- 关于我们 / 下载区域 ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text .section-title {
    text-align: left;
    font-size: 32px;
}

.about-desc {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.9;
    margin: 20px 0 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.download-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
}

.download-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.qrcode {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.download-tip {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 18px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---------- 底部区域 ---------- */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    -webkit-text-fill-color: #fff;
    background: none;
    color: #fff;
}

.footer-slogan {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-green);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.footer-icp {
    font-size: 12px !important;
}

/* ---------- 滚动淡入动画 ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-illustration svg {
        max-width: 360px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .role-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        margin: 0;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .beta-badge {
        display: none;
    }

    .hero {
        padding: 90px 0 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-title-sub {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        gap: 10px;
    }

    .meta-divider {
        display: none;
    }
}