/* CSS变量定义 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #e9ecef;
    --primary-color: #000000;
    --primary-hover: #333333;
    --primary-light: rgba(0, 0, 0, 0.1);
    --spacing-md: 1.5rem;
    --logo-primary: #000000;
    --logo-secondary: #333333;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5vh; /* 改为固定高度而不是min-height */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 5px; /* 改为5px间距 */
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    height: 160%; /* 改为导航条高度的160%，相当于原来的两倍 */
    overflow: visible; /* 确保超出部分可见 */
}

.logo-icon {
    height: 100%; /* 改为Logo容器的100%高度 */
    aspect-ratio: 1; /* 保持正方形比例 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.logo-text {
    /* 移除固定宽度，改为自适应 */
    height: 100%; /* 改为Logo容器的100%高度 */
    display: flex;
    align-items: center;
    justify-content: center; /* 改为居中对齐 */
    white-space: nowrap; /* 防止文字换行 */
    font-size: 1rem; /* 使用相对字体大小 */
    /* 确保SVG文字正确显示 */
    width: auto; /* 自动宽度 */
    min-width: 0; /* 允许缩小 */
}

.logo-text svg {
    height: 120%; /* 增加SVG高度，让文字更大 */
    width: auto; /* 宽度自适应 */
    max-width: none; /* 移除最大宽度限制 */
    overflow: visible; /* 确保SVG内容不被裁剪 */
    transform: scale(1.3) translateY(-10%); /* 额外放大1.2倍并向上移动10% */
    transform-origin: center; /* 从中心点缩放 */
}

.logo-text svg .cls-6,
.logo-text svg path,
.logo-text svg polygon {
    fill: var(--text-primary) !important; /* 强制设置文字颜色 */
}

/* 在暗色主题下也能正确显示 */
.logo-text svg * {
    fill: #000000 !important; /* 确保所有文字元素都是黑色 */
}

/* 导航右侧区域包装器 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem; /* 导航菜单和操作区域之间的间距 */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.4vh; /* 增大文字，比logo文字更大 */
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    width: 120px; /* 增加宽度以适应更大的文字 */
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px; /* 增加内边距 */
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    width: 100%;
    height: 160%; /* 调整为导航条高度的160%，与logo容器一致 */
    font-size: 1.4vh; /* 增大文字，比logo文字更大 */
    box-sizing: border-box;
}

.language-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.language-flag {
    font-size: 1.6vh; /* 图标也相应增大 */
}

.language-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

.language-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.language-btn.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    width: 100%;
    min-width: unset;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1.4vh;
    color: var(--text-primary);
}

.language-option:hover {
    background: var(--bg-secondary);
}

.language-option:first-child {
    border-radius: 7px 7px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 7px 7px;
}

.language-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.language-option .language-flag {
    font-size: 16px;
}

.language-option .language-name {
    white-space: nowrap;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 8px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #333333;
}

.btn-secondary {
    padding: 8px 16px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    padding: 12px 24px;
    background: #108781;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #0a6b61;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 135, 129, 0.3);
}

.btn-primary-large {
    padding: 16px 32px;
    background: #108781;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-large:hover {
    background: #0a6b61;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 135, 129, 0.3);
}

.btn-primary-large-disabled {
    padding: 16px 32px;
    background: #108781;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-large-disabled:hover {
    background: #108781;
    /* 不添加任何悬停效果 */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主标题区域 */
.hero {
    padding: 8vh 0 80px; /* 上边距调整为8vh，为导航条(5vh)留出空间 */
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    margin-bottom: 40px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 工作流程 */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step-row {
    display: grid;
    gap: 40px;
}

.step-row:first-child {
    grid-template-columns: repeat(2, 1fr);
}

.step-row:last-child {
    grid-template-columns: repeat(3, 1fr);
}

/* 确保在桌面端正确显示三列布局 */
.step-row:nth-child(2) {
    grid-template-columns: repeat(3, 1fr);
}

.step {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-number svg {
    width: 48px;
    height: 48px;
    fill: #000000;
    stroke: none;
}

/* 特殊处理第一个描边图标 */
.step:first-child .step-number svg {
    fill: none;
    stroke: #000000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 移动端功能提示 */
.mobile-features-notice {
    text-align: center;
    margin: 10px 0;
}

.notice-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* 功能区域 */
.feature-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.feature-section.alt {
    background: var(--bg-secondary);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse > * {
    direction: ltr;
}

.feature-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.feature-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-points {
    margin-bottom: 32px;
}

.point {
    margin-bottom: 24px;
}

.point h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.point p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.address-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.address-header {
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
}

.address-content p {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.mailbox-interface {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.mailbox-header {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mailbox-header h3 {
    font-weight: 600;
    color: var(--text-primary);
}

.count {
    background: #108781;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.mail-list {
    padding: 16px 0;
}

.mail-item-row {
    display: grid;
    grid-template-columns: 1fr 2fr 80px;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.mail-item-row:hover {
    background: var(--bg-secondary);
}

.sender {
    font-weight: 500;
    color: var(--text-primary);
}

.subject {
    color: var(--text-secondary);
}

.date {
    color: var(--text-muted);
    font-size: 14px;
    text-align: right;
}

.feature-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.tab {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #000000;
    border: 1px solid #e9ecef;
}

.tab.active {
    background: #108781;
    color: #ffffff;
    border-color: #108781;
}

.tab-content {
    margin-bottom: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tab-panel ul {
    list-style: none;
}

.tab-panel li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 功能网格 */
.features-grid {
    padding: 100px 0;
    background: var(--bg-tertiary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.grid-item {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 强制设置第一个grid-item中SVG的stroke-width */
.grid-item:first-child .icon svg {
    stroke-width: 2 !important;
}

.grid-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.grid-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-center {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 5%; /* 在移动设备上减少边距 */
        height: 4vh; /* 在移动设备上稍微减小导航条高度 */
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        gap: 1rem; /* 减小间距 */
    }
    
    .nav-actions {
        display: flex; /* 保持显示语言选择器 */
        gap: 0.5rem; /* 减小间距 */
    }
    
    .nav-link {
        font-size: 1.12vh; /* 按比例缩小，4vh/5vh * 1.4vh */
    }
    
    .language-selector {
        width: 100px; /* 在移动设备上稍微减小宽度 */
    }
    
    .language-btn {
        padding: 4px 8px; /* 减小内边距 */
        height: 160%; /* 保持160%高度 */
        font-size: 1.12vh; /* 按比例缩小，4vh/5vh * 1.4vh */
    }
    
    .language-flag {
        font-size: 1.28vh; /* 按比例缩小，4vh/5vh * 1.6vh */
    }
    
    .btn-primary {
        padding: 4px 10px; /* 减小内边距 */
        width: 100px; /* 在移动设备上适当减小宽度 */
        height: 160%; /* 保持160%高度 */
        font-size: 1.12vh; /* 按比例缩小，4vh/5vh * 1.4vh */
    }
    
    .logo-text {
        font-size: 0.875rem; /* 移动端Logo文字稍小 */
    }
    
    .hero {
        padding: 6vh 0 60px; /* 移动端调整上边距 */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-content.reverse {
        grid-template-columns: 1fr;
    }
    
    .steps {
        gap: 40px;
    }
    
    .step-row {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .mobile-features-notice {
        margin: 15px 0;
    }
    
    .notice-text {
        font-size: 14px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-legal {
        justify-content: center;
        order: 2;
    }
    
    .footer-section:not(.footer-legal) {
        text-align: center;
        order: 1;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .legal-links {
        gap: 16px;
    }
    
    .mail-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 3%; /* 在很小的屏幕上进一步减少边距 */
        height: 3.5vh; /* 在很小屏幕上进一步减小导航条高度 */
    }
    
    .nav-link {
        font-size: 0.98vh; /* 按比例缩小，3.5vh/5vh * 1.4vh */
    }
    
    .language-btn {
        font-size: 0.98vh; /* 按比例缩小，3.5vh/5vh * 1.4vh */
    }
    
    .language-flag {
        font-size: 1.12vh; /* 按比例缩小，3.5vh/5vh * 1.6vh */
    }
    
    .btn-primary {
        font-size: 0.98vh; /* 按比例缩小，3.5vh/5vh * 1.4vh */
    }
    
    .logo-text {
        font-size: 0.75rem; /* 小屏幕Logo文字更小 */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 5vh 0 60px; /* 很小屏幕上调整上边距 */
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 28px;
    }
    
    .grid {
        gap: 20px;
    }
    
    .mobile-features-notice {
        margin: 10px 0;
    }
    
    .notice-text {
        font-size: 13px;
    }
}

/* 图标样式 - 支持emoji和图片 */
.mail-item img, 
.icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

/* 邮件项目悬停时的图片效果 */
.mail-item:hover img {
    filter: brightness(0) invert(1); /* 将图片变为白色 */
}

/* 功能图标的图片样式 */
.grid-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 40vw;
    height: calc(40vw * 9 / 16); /* 保持16:9比例 */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin: 0 auto;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 悬停效果 */
.video-container:hover .video-placeholder {
    opacity: 0;
}

.video-container:hover .video-title {
    transform: scale(1.05);
}

/* 只包含视频的特殊布局 */
.feature-content.video-only {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 登录模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    color: #000000;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 24px 32px 32px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 18px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000000;
}

.checkbox-group label {
    margin: 0;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #108781;
    color: #ffffff;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #999;
    font-size: 18px;
}

.social-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.social-login:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-login:hover {
    border-color: #000000;
}

.apple-login:hover {
    border-color: #000;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 18px;
    color: #666;
}

.register-link a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 注册表单样式 */
.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 18px;
}

.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.register-form input[type="email"]:focus,
.register-form input[type="password"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.register-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.register-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000000;
    margin-top: 2px;
    flex-shrink: 0;
}

.register-form .checkbox-group label {
    margin: 0;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.mail-items {
    grid-template-columns: 1fr;
} 