* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== Toast 提示弹窗 ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
}

.toast-success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.toast-error {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.toast-warning {
    background: linear-gradient(135deg, #faad14, #ffc53d);
}

.toast-info {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
}

.toast .toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast .toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    font-size: 20px;
    transition: opacity 0.2s;
}

.toast .toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

:root {
    /* 品牌色（保持原值，登录/其它页也在用） */
    --primary-color: #FF6B6B;
    --primary-dark: #F0524F;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #96CEB4;

    /* 中性色阶（新增：统一正文/次要文字/描边） */
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;
    --line: #EAECEF;

    /* 兼容旧变量名 */
    --dark-bg: #0F172A;
    --light-bg: #F7F8FA;
    --white: #FFFFFF;
    --gray-100: #F1F1F1;
    --gray-200: #E0E0E0;
    --gray-600: #666666;
    --gray-800: #333333;

    /* 圆角 / 阴影 / 栅格宽度 */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px -10px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 22px 48px -22px rgba(15, 23, 42, 0.26);
    --shadow-xl: 0 32px 70px -26px rgba(15, 23, 42, 0.32);
    --maxw: 1160px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.nav-left {
    flex: 1;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.nav-link {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.28s ease;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    width: 18px;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.download-btn, .login-btn {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.download-btn {
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line);
}

.download-btn:hover {
    background: var(--gray-100);
    color: var(--ink);
}

.login-btn {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 22px -10px rgba(255, 107, 107, 0.75);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==================== 头部区域 ==================== */
.hero {
    position: relative;
    padding: 128px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 8% -6%, #FFF0F0 0%, rgba(255, 240, 240, 0) 62%),
        radial-gradient(760px 480px at 100% 4%, #E9FAF8 0%, rgba(233, 250, 248, 0) 58%),
        var(--white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 20px;
    background: linear-gradient(118deg, #FF6B6B 0%, #FF8A6B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 34px;
    line-height: 1.75;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 14px 30px -12px rgba(255, 107, 107, 0.75);
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -14px rgba(255, 107, 107, 0.8);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 18px 44px;
    font-size: 17px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 18px 40px -14px rgba(255, 107, 107, 0.75);
}

.cta-button.large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.preview-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

/* 第二张卡片下沉，形成错落的节奏感 */
.preview-card:nth-child(2) {
    transform: translateY(26px);
}

.preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.preview-card:nth-child(2):hover {
    transform: translateY(20px);
    box-shadow: var(--shadow-lg);
}

.preview-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;   /* 完整显示、等比缩小，不裁切 */
    display: block;
    background: linear-gradient(180deg, #FBFBFD, #F2F4F8);
}

.preview-card span {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* ==================== 特色案例 ==================== */
.showcase-section {
    padding: 96px 0;
    background: var(--white);
}

.showcase-section h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    color: var(--ink);
}

.subtitle {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 44px;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 40px;
    align-items: center;
}

.showcase-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, #1E293B 0%, #0B1220 100%);
    box-shadow: var(--shadow-lg);
}

.main-preview {
    width: 100%;
    height: 420px;
    object-fit: contain;   /* 完整显示、等比缩小，不裁切 */
    display: block;
}

.showcase-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.action-btn {
    padding: 16px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFF6F6;
    transform: translateY(-2px);
}

/* 主行动（观看全片）用品牌实心，形成层级 */
.showcase-actions .action-btn:first-child {
    background: var(--primary-color);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 14px 30px -14px rgba(255, 107, 107, 0.8);
}

.showcase-actions .action-btn:first-child:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--ink);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.more-btn:hover {
    background: #1E293B;
    transform: translateY(-2px);
}

/* ==================== 功能特点 ==================== */
.features-section {
    padding: 96px 0;
    background: var(--white);
}

.features-header {
    text-align: center;
    margin-bottom: 56px;
}

.features-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    color: var(--ink);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--white);
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

/* 图标统一收敛到品牌色（原为红/青/蓝/绿四色，视觉更克制） */
.feature-icon svg circle {
    fill: var(--primary-color);
}

.feature-icon svg path {
    stroke: var(--primary-color);
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

.features-cta {
    text-align: center;
}

/* ==================== 用户评价 ==================== */
.testimonials-section {
    padding: 96px 0;
    background: var(--light-bg);
}

.testimonials-section h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 44px;
    text-align: center;
    color: var(--ink);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    min-width: 0;
}

.testimonial-text {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial-author strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.author-role {
    font-size: 13px;
    color: var(--muted);
}

/* ==================== CTA 区域 ==================== */
.cta-section {
    position: relative;
    padding: 104px 0;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(760px 420px at 50% -10%, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 62%), var(--ink);
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 32px;
    color: var(--white);
}

.cta-section strong {
    color: #FFB3A7;
}

.cta-section .cta-button.large {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 20px 44px -16px rgba(255, 107, 107, 0.9);
}

.cta-section .cta-button.large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== 页脚 ==================== */
.footer {
    background: #0B1220;
    color: var(--white);
    padding: 72px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}

.footer-section p {
    font-size: 14px;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--muted-2);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted-2);
}

/* 首屏入场（纯 CSS，无需 JS） */
.hero-content h1,
.hero-content p,
.hero-cta,
.hero-image {
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content p { animation-delay: 0.08s; }
.hero-cta { animation-delay: 0.16s; }
.hero-image { animation-delay: 0.12s; }

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .preview-container {
        max-width: 560px;
        margin: 0 auto;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .showcase-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-btn, .more-btn {
        flex: 1 1 160px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .hero {
        padding: 108px 0 64px;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -0.6px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }

    .preview-card:nth-child(2),
    .preview-card:nth-child(2):hover {
        transform: none;
    }

    .showcase-section h2,
    .features-header h2,
    .testimonials-section h2 {
        font-size: 30px;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .main-preview {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .navbar .container {
        padding: 12px 18px;
    }

    .hero {
        padding: 96px 0 48px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .showcase-section, .features-section, .testimonials-section {
        padding: 64px 0;
    }

    .cta-section {
        padding: 64px 0;
    }

    .main-preview {
        height: 240px;
    }

    .cta-section h2 {
        font-size: 26px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 尊重系统「减少动态效果」偏好：关闭入场/脉冲/涟漪等动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择样式 */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-800);
}

/* ==================== 登录弹窗样式 ==================== */

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    display: flex;
    width: 900px;
    max-width: 95%;
    height: 650px;
    max-height: 90%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* 左侧媒体区域 */
.modal-left {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.modal-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--white);
    z-index: 5;
}

.modal-overlay-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-overlay-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* 右侧表单区域 */
.modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo svg {
    width: 50px;
    height: 50px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-600);
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* 表单容器 */
.login-form-container {
    flex: 1;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: block;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: var(--white);
    width: 100%;
}

.input-group input::placeholder {
    color: var(--gray-400);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-group input:hover {
    border-color: var(--gray-400);
}

/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
}

.input-group .input-icon + input {
    padding-left: 44px;
}

.input-group input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

/* 记住登录行 */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #111827;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-group:hover .checkbox-custom {
    border-color: var(--primary-color);
}

.forgot-password {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--gray-600);
    font-size: 14px;
    pointer-events: none;
}

.input-group .input-prefix + input {
    padding-left: 60px;
}

.code-btn {
    position: absolute;
    right: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.code-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--gray-200);
    color: var(--gray-600);
}

/* 表单选项 */
.form-options {
    margin-top: 8px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group span {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-group span a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group span a:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.login-btn-submit:hover {
    background: #ff5252;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.login-btn-submit:active {
    transform: translateY(0);
}

/* 微信扫码登录 */
.wechat-login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 0;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 24px;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.qr-text {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 8px;
}

.scan-tip {
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
}

/* 底部链接 */
.login-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.login-footer p {
    font-size: 14px;
    color: var(--gray-600);
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.register-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .modal-content {
        width: 800px;
        height: 600px;
    }

    .modal-right {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-height: 95%;
    }

    .modal-left {
        flex: none;
        height: 150px;
    }

    .modal-overlay-text {
        bottom: 20px;
        left: 20px;
    }

    .modal-overlay-text h3 {
        font-size: 20px;
    }

    .modal-overlay-text p {
        font-size: 14px;
    }

    .modal-right {
        padding: 24px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .qr-code-placeholder {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100%;
    }

    .modal-left {
        height: 120px;
    }

    .modal-right {
        padding: 20px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }
}

/* ==================== 登录弹窗增强样式 ==================== */

/* 点击遮罩层关闭弹窗 */
.modal-overlay {
    cursor: pointer;
}

/* 表单输入框增强 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-group input:hover:not(:focus) {
    border-color: var(--gray-400);
}

/* 登录按钮增强 */
.login-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), #ff5252);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    margin-top: 8px;
}

.login-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.login-btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn-submit:disabled {
    background: var(--gray-200);
    color: var(--gray-600);
    cursor: not-allowed;
    box-shadow: none;
}

/* 登录按钮loading状态 */
.login-btn-submit.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.login-btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 验证码按钮增强 */
.code-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.code-btn:hover:not(:disabled) {
    color: #ff5252;
}

.code-btn:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

/* 登录标签切换增强 */
.login-tabs {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-tabs .tab-btn:hover {
    color: var(--gray-800);
}

.login-tabs .tab-btn.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 协议复选框增强 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #111827;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input:checked + .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group span:last-child {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* 协议选项增强 */
.form-options {
    margin: 16px 0;
}

/* 登录 Logo 增强 */
.login-logo {
    margin-bottom: 16px;
}

.login-logo svg {
    width: 56px;
    height: 56px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-600);
}

/* 社交登录分隔线 */
.social-login {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.social-login::before,
.social-login::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.social-login span {
    font-size: 13px;
    color: var(--gray-500);
}

/* 社交登录按钮 */
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
    transform: translateY(-2px);
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 登录/注册表单底部「协议提示」（小字、浅灰、居中；放在提交按钮下方，不遮挡按钮） */
.agree-tip {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.6;
}

.agree-tip a {
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.agree-tip a:hover {
    color: #6b7280;
}

/* ==================== 登录/注册弹窗：紧凑布局（右侧不再需要下拉） ====================
   要点：① 高度改为按内容自适应（上限 92vh），不再固定 650px；
        ② 整体收紧纵向留白（头部/标签/表单/按钮），让「协议提示」也能一屏看到。 */
.login-modal .modal-content {
    height: auto;
    max-height: 92vh;
}

.login-modal .modal-right {
    padding: 26px 32px;
}

.login-modal .login-header {
    margin-bottom: 16px;
}

.login-modal .login-logo {
    margin-bottom: 10px;
}

.login-modal .login-logo svg {
    width: 40px;
    height: 40px;
}

.login-modal .login-header h2 {
    font-size: 20px;
    margin-bottom: 2px;
}

.login-modal .login-subtitle {
    font-size: 13px;
}

.login-modal .login-tabs {
    margin-bottom: 16px;
}

.login-modal .login-tabs .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
}

.login-modal .form-group {
    margin-bottom: 13px;
}

.login-modal .form-group label {
    font-size: 13px;
    margin-bottom: 5px;
}

.login-modal .form-group input {
    padding: 11px 14px;
    border-radius: 8px;
}

/* 上面统一改 padding 会清掉「图标/前缀」预留的左侧内边距 → 这里补回来（否则文字压住图标） */
.login-modal .input-group .input-icon + input {
    padding-left: 42px;
}

.login-modal .input-group .input-prefix + input {
    padding-left: 56px;
}

.login-modal .form-options {
    margin: 10px 0;
}

.login-modal .login-btn-submit {
    padding: 12px 20px;
    font-size: 15px;
}

.login-modal .agree-tip {
    margin-top: 8px;
}

.login-modal .register-link {
    margin-top: 12px;
    font-size: 13px;
}

/* ==================== ⑨ 众筹展示板块（图片 + 文案） ==================== */
.invest-section {
    padding: 96px 0;
    background: var(--light-bg);
}

.invest-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.invest-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

/* 未上传配图时的占位框（位置已预留，上传后自动被图片覆盖） */
.invest-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--muted-2);
    background: linear-gradient(135deg, #FBFCFE 0%, #EEF2F7 100%);
    border: 1px dashed #D6DCE4;
    border-radius: var(--radius-lg);
}

.invest-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.invest-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.invest-text {
    max-width: 520px;
}

/* 文案：换行前那行 = 大号加粗黑色；换行之后的行 = 正文样式（回车即换行，见 white-space: pre-line） */
.invest-line {
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--muted);
    margin: 0;
    white-space: pre-line;
    text-wrap: pretty;
}

.invest-line::first-line {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.3;
    color: var(--ink);
}

/* ⑨ 板块的响应式必须放在本块**之后**：否则会被上面的基础规则按「就近覆盖」盖掉 */
@media (max-width: 1024px) {
    .invest-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .invest-text {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .invest-line {
        font-size: 16px;
    }

    .invest-line::first-line {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .invest-section {
        padding: 64px 0;
    }
}

/* 站点文档弹窗正文里的图片（后台「内容管理」插入的图）：不超框、等比、圆角 */
#docModalBody img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

