:root {
    /* Legacy variables (kept for backward compatibility) */
    --primary-color: #1e40af;
    --secondary-color: #e0f2fe;
    --text-color: #0f172a;

    /* Design System Tokens (synced from ui/client/src/index.css) */
    --primary: #1e40af;
    --primary-foreground: #f0f9ff;
    --accent: #0891b2;
    --accent-foreground: #ffffff;
    --background: #f0f9ff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --secondary: #e0f2fe;
    --secondary-foreground: #0c4a6e;
    --muted: #cbd5e1;
    --muted-foreground: #475569;
    --destructive: #f97316;
    --destructive-foreground: #ffffff;
    --border: #e0e7ff;
    --input: #e0e7ff;
    --ring: #0891b2;
    --radius: 0.75rem;
    --chart-1: #0891b2;
    --chart-2: #1e40af;
    --chart-3: #0c4a6e;
    --chart-4: #164e63;
    --chart-5: #0e7490;
    --sidebar: #ffffff;
    --sidebar-foreground: #0f172a;
    --sidebar-primary: #1e40af;
    --sidebar-primary-foreground: #f0f9ff;
    --sidebar-accent: #e0f2fe;
    --sidebar-accent-foreground: #0c4a6e;
    --sidebar-border: #e0e7ff;
    --sidebar-ring: #0891b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

/* Typography: Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1976d2;
}

/* 导航按钮组样式 */
.nav-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* 通用按钮样式 */
.nav-btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: #333;
}

.nav-btn i {
    font-size: 16px;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 资源按钮样式 */
.resource-btn {
    color: #1976d2;
    border-color: #1976d2;
}

.resource-btn:hover {
    background-color: #f0f7ff;
    border-color: #1976d2;
    color: #1565c0;
}

/* 退出按钮样式 */
.logout-btn {
    color: #666;
}

.logout-btn:hover {
    background-color: #f5f5f5;
    color: #f44336;
    border-color: #f44336;
}

/* 后台管理按钮样式 */
.dashboard-btn {
    color: #1976d2;
    border-color: #1976d2;
}

.dashboard-btn:hover {
    background-color: #f0f7ff;
    border-color: #1976d2;
    color: #1565c0;
}

/* 登录按钮 — 渐变主色（primary → accent） */
.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground) !important;
    border-color: transparent;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--primary-foreground) !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

/* CTA 主行动按钮 — 渐变主色 + hover 微动效 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* 搜索图标样式 */
.search-icon {
    font-size: 18px;
}

/* 主要横幅样式 */
.hero {
    background-color: #1e3a8a;
    background-image: url(images/index/background.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 5rem 0 3rem;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-right img {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: white;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin: 0;
}

.hero-accent {
    color: #bae6fd;
}

.hero-left > p {
    font-size: 1.1rem;
    color: rgba(219, 234, 254, 0.9);
    max-width: 30rem;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    background: white;
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-cta-btn:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.hero-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .hero .container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 5rem 0 1.5rem;
    }

    .hero-left h1 {
        font-size: 2.25rem;
    }

    .hero-right {
        display: none;
    }
}

/* 特点介绍样式 */
.features {
    padding: 2rem 0;
    background: var(--background);
}

.features-gradient {
    background: linear-gradient(180deg, var(--background) 0%, #dbeafe 100%);
}

.features .container {
    padding: 0 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* dashboard-card / feature-card 通用卡片样式 */
.dashboard-card,
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover,
.feature-card:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: calc(var(--radius) - 4px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card-icon i {
    font-size: 22px;
    color: var(--primary-foreground);
}

.feature-card h3,
.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.5;
}

/* 旧版 feature-item 保持向后兼容 */
.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    gap: 1.5rem;
}

.feature-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    flex: 1;
}

/* 产品稳定性 */
.stability {
    padding: 2rem 0 1rem 0;
    background: linear-gradient(180deg, var(--background) 0%, #f0f9ff 100%);
}

.stability-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stability-header img {
    max-width: 300px;
    height: auto;
}

.stability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.07);
}

.stability-image {
    text-align: center;
}

.stability-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.stability-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* Feature content cards (stability) */
.feature-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-content:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.10);
    transform: translateY(-1px);
}

.stability-features .feature-content > img {
    width: 52px;
    height: 52px;
    max-height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.35rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.5;
}

.stability-features img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stability-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stability-header img {
        max-width: 250px;
    }
    
    .stability-image img {
        max-height: 300px;
    }
    
    .stability-features img {
        max-height: 100px;
    }
}

/* 联系我们 / 页脚样式 */
.contact {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 0 2rem;
    text-align: center;
}

.contact h2 {
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-info a {
    color: var(--primary-foreground);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.contact-info a:hover {
    opacity: 1;
}

.contact-copyright {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 60px;
    }
    
    .hero .container,
    .features .container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero .container,
    .features .container {
        padding: 0 20px;
    }
}

/* 技术亮点样式 */
.tech-highlights {
    padding: 1rem 0 2rem 0;
    background: white;
}

.tech-gradient {
    background: linear-gradient(180deg, #dbeafe 0%, var(--background) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    text-align: center;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tech-item:hover {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.15);
    transform: translateY(-4px);
}

.tech-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.tech-item h3 {
    color: var(--foreground);
    margin: 1rem 1rem 0.5rem;
    font-size: 1rem;
}

.tech-item p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0 1rem 1.25rem;
    line-height: 1.6;
}

/* 信息安全部分样式 */
.security {
    padding: 1rem 0 1rem 0;
    border-top: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
}

.security h2 {
    text-align: left;
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--text-color);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}

.security-image img {
    width: 100%;
    border-radius: 8px;
}

.security-text {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.security-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.2rem;
    color: #444;
}

.security-text p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.security-text p:last-child {
    margin-bottom: 0;
}

/* 空间利用部分样式 */
.space-usage {
    padding: 1rem 0;
    background: white;
}

.space-gradient {
    background: linear-gradient(180deg, #dbeafe 0%, var(--background) 100%);
}

.space-usage h2 {
    text-align: left;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
}

.space-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
    border: 1px solid #ebeef5;
    border-radius: 8px;
}

.space-content img {
    width: 100%;
    border-radius: 8px;
}

.space-text {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.space-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.space-text p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.space-text p:last-child {
    margin-bottom: 0;
}

/* 数据管理部分样式 */
.data-management {
    padding: 1rem 0;
    background: white;
    border-top: 1px solid #ebeef5;
}

.data-management h2 {
    text-align: left;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.8rem;
}

.data-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
    border: 1px solid #ebeef5;
    border-radius: 8px;
}

.data-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.data-text {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.data-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
    position: relative;
    padding-left: 1.5rem;
}

.data-text p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.data-text p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .security-content,
    .space-content,
    .data-content {
        grid-template-columns: 1fr;
    }
    
    .security-text,
    .space-text,
    .data-text {
        padding: 1.5rem;
    }
    
    .security-text p,
    .space-text p,
    .data-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 1rem;
    }
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 添加登录按钮样式 */
.login-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    margin-left: 2rem;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #0052a3;
}

/* 修复模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 450px;
    max-width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-btn {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.login-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.code-group {
    display: flex;
    gap: 0.5rem;
}

.code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.send-code-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #0052a3;
}

.status-bar {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.status-bar.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-bar.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 修改导航栏在手机端的样式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin: 0;
    }
    
    .login-btn {
        margin: 0;
    }
}

/* 调整登录模态框在手机端的样式 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        font-size: 16px; /* 防止iOS自动放大输入框 */
        padding: 0.7rem;
    }
    
    .code-group {
        gap: 0.3rem;
    }
    
    .send-code-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .status-bar {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
}

/* 添加触摸设备的交互优化 */
@media (hover: none) {
    .login-btn:active,
    .submit-btn:active,
    .send-code-btn:active {
        opacity: 0.8;
    }
}

/* 优化移动端输入体验 */
input[type="tel"],
input[type="text"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
}

/* 防止页面在手机端缩放 */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 为固定导航栏留出空间 */
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-nav {
        display: none;
    }
}

/* 用户头像和下拉菜单样式 */
.user-profile-container {
    position: relative;
    margin-left: 10px;
}

.user-avatar-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar:hover {
    border-color: #1976d2;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.user-dropdown.show {
    display: block;
}

.user-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-icon {
    margin-right: 10px;
    font-size: 16px;
}

.logout-item {
    color: #f44336;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.logout-item:hover {
    background-color: #ffebee;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .user-dropdown {
        width: 220px;
        right: -10px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

/* 添加下拉菜单箭头指示器 */
.user-dropdown:before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.04);
}

/* 登录选项卡样式修复 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    outline: none;
}

.tab-btn.active {
    color: #1976d2;
    font-weight: 500;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1976d2;
}

.tab-content {
    display: none;
}

#phoneLoginTab.active, #wechatLoginTab.active {
    display: block;
}

/* 微信登录样式 */
.wechat-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.qrcode-container {
    width: 100%;
    height: auto;
    min-height: 500px;
    margin-bottom: 15px;
    padding: 0;
    border: none;
    overflow: hidden;
}

.qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #1976d2;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wechat-login-tips {
    text-align: center;
}

.wechat-login-tips p {
    margin: 5px 0;
    color: #333;
}

.wechat-login-subtitle {
    font-size: 14px;
    color: #666 !important;
}

/* 二维码图片样式 */
.qrcode-img {
    max-width: 100%;
    max-height: 100%;
}

/* 二维码过期样式 */
.qrcode-expired {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.qrcode-expired p {
    margin: 10px 0;
    color: #666;
}

.refresh-btn {
    padding: 8px 16px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

/* qrcode.js 生成的二维码样式 */
#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode img {
    display: block;
    margin: 0 auto;
}

/* 二维码错误样式 */
.qrcode-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.qrcode-error p {
    margin-bottom: 15px;
    color: #f44336;
}

/* 美化关闭按钮样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.close {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    padding: 0;
    line-height: 1;
}

.close:hover {
    background-color: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.close:active {
    background-color: #d5d5d5;
    transform: rotate(90deg) scale(0.95);
}

/* 微信登录框架样式 */
.wechat-login-frame {
    width: 100%;
    height: 450px;
    border: none;
    overflow: hidden;
    border-radius: 8px;
}

/* 打开链接按钮样式 */
.open-link-container {
    margin-top: 15px;
    text-align: center;
}

.open-link-container p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.open-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #07C160;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.open-link-btn:hover {
    background-color: #06AD56;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Toast消息样式 */
.toast-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    max-width: 80%;
    text-align: center;
    display: block;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-message.success {
    background-color: #4caf50;
}

.toast-message.error {
    background-color: #f44336;
}

.toast-message.info {
    background-color: #2196f3;
}

.toast-message.warning {
    background-color: #ff9800;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-message {
        width: 90%;
        padding: 10px 16px;
        font-size: 13px;
        top: 60px;
    }
}

/* ===== Landing page enhancements (Landing.tsx-inspired) ===== */

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* 勾选列表 */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
}

.check-list li i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* CTA 呼吁行动部分 */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-section > .container > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* 联系我们卡片部分 */
.contact-section {
    padding: 4rem 0;
    background: var(--background);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: #dbeafe;
    border-radius: calc(var(--radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card-icon i {
    font-size: 20px;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

/* 站点页脚 */
.site-footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-col-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.site-footer ul li a:hover {
    color: white;
}

.footer-copyright {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================================
   Join Page (join.html) — 登录/注册页样式
   ========================================================================= */

/* 页面全屏居中 flex 布局 */
.join-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--background) 0%, #dbeafe 100%);
    -webkit-tap-highlight-color: transparent;
}

/* 卡片容器：圆角 + 阴影 + 品牌感 */
.join-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

/* 卡片头部：Logo + 标题 */
.join-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.join-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.join-card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.join-card-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0.35rem 0 0;
}

/* 表单字段组 */
.join-form-group {
    margin-bottom: 1.25rem;
}

.join-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 设计系统输入框样式 */
.join-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.join-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.join-input::placeholder {
    color: var(--muted-foreground);
}

/* 验证码行（input + 按钮） */
.join-code-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.join-code-row .join-input {
    flex: 1;
    min-width: 0;
}

/* 发送验证码按钮 */
.send-code-btn {
    padding: 0 1rem;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    white-space: nowrap;
    min-width: 96px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.send-code-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--primary-foreground);
}

.send-code-btn:disabled {
    border-color: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    background: transparent;
}

/* 提交按钮 — 主色渐变 */
.join-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
    -webkit-tap-highlight-color: transparent;
}

.join-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

.join-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* 隐藏 spinner（默认不显示） */
.btn-spinner-hidden {
    display: none;
}

/* Inline 字段级错误提示 */
.field-error {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #c62828;
    font-weight: 500;
}

.field-error.visible {
    display: block;
}

/* 全局状态提示 (inline — 替代旧 statusBar) */
.join-status {
    margin-top: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.join-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.join-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 响应式 */
@media (max-width: 480px) {
    .join-card {
        padding: 2rem 1.25rem;
    }

    .join-logo {
        max-width: 140px;
    }

    .join-card-header h1 {
        font-size: 1.25rem;
    }

    .send-code-btn {
        min-width: 80px;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }
}


/* ========== 产品概览 ========== */
.product-overview {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--background) 0%, #dbeafe 100%);
}

.product-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.15);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: calc(var(--radius) - 2px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-foreground);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin: 0;
}

.product-subtitle {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin: -0.75rem 0 0 0;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--foreground);
}

.product-features i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    text-decoration: none;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
}

/* ========== 解决方案 ========== */
.solutions {
    padding: 4rem 0;
    background: var(--background);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.solution-item:hover {
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.solution-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: calc(var(--radius) - 2px);
}

.solution-item h3 {
    font-size: 1.25rem;
    color: var(--foreground);
    margin: 0;
}

.solution-item p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== 响应式（产品概览 & 解决方案） ========== */
@media (max-width: 768px) {
    .product-overview {
        padding: 2.5rem 0;
    }

    .product-comparison {
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .solutions {
        padding: 2.5rem 0;
    }

    .solutions-grid {
        gap: 1.5rem;
    }

    .solution-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-comparison {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1.25rem;
    }

    .solution-item {
        padding: 1.25rem;
    }

    .solution-features {
        flex-direction: column;
        gap: 0.35rem;
    }

    .feature-tag {
        display: block;
        text-align: center;
    }
}
