/* 阿里云/大厂风格 - 社会化登录系统 */
:root {
    /* 阿里巴巴/蚂蚁金服配色系统 */
    --primary-color: #1677ff;      /* 阿里蓝 */
    --primary-hover: #4096ff;      /* 悬停蓝 */
    --primary-active: #0958d9;     /* 点击蓝 */
    --success-color: #52c41a;      /* 成功绿 */
    --warning-color: #faad14;      /* 警告黄 */
    --error-color: #ff4d4f;        /* 错误红 */
    
    /* 中性色 - 蚂蚁设计系统 */
    --neutral-1: #ffffff;          /* 纯白 */
    --neutral-2: #fafafa;          /* 背景色 */
    --neutral-3: #f5f5f5;          /* 分割线 */
    --neutral-4: #f0f0f0;          /* 禁用背景 */
    --neutral-5: #d9d9d9;          /* 边框色 */
    --neutral-6: #bfbfbf;          /* 占位符 */
    --neutral-7: #8c8c8c;          /* 辅助文字 */
    --neutral-8: #595959;          /* 常规文字 */
    --neutral-9: #262626;          /* 标题文字 */
    --neutral-10: #000000;         /* 纯黑 */
    
    /* 渐变和阴影 */
    --primary-gradient: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* 圆角 */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 999px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* 过渡动画 */
    --transition-fast: 0.1s cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-normal: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* 字体大小 */
    --font-xs: 12px;
    --font-sm: 13px;
    --font-base: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 20px;
    --font-3xl: 24px;
    --font-4xl: 30px;
    --font-5xl: 36px;
    --font-6xl: 48px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: var(--font-base);
    line-height: 1.5715;
    color: var(--neutral-9);
    background-color: var(--neutral-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 容器约束 */
.container-xl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* 阿里云风格导航栏 */
.ali-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.ali-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo区域 */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--neutral-9);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.nav-logo:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: var(--space-sm);
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: var(--font-lg);
}

.logo-text {
    font-weight: 600;
    font-size: var(--font-xl);
    color: var(--neutral-9);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--neutral-8);
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(22, 119, 255, 0.04);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(22, 119, 255, 0.08);
    font-weight: 500;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 大厂风格按钮 */
.ali-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: var(--font-base);
    font-weight: 500;
    line-height: 1.5715;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    user-select: none;
    touch-action: manipulation;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.ali-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.ali-btn:hover:before {
    opacity: 0.1;
}

.ali-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}

.ali-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.ali-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(22, 119, 255, 0.2);
}

.ali-btn-default {
    background: white;
    color: var(--neutral-8);
    border: 1px solid var(--neutral-5);
}

.ali-btn-default:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(22, 119, 255, 0.02);
}

.ali-btn-large {
    padding: 12px 28px;
    font-size: var(--font-lg);
    font-weight: 500;
}

/* 移动端菜单按钮 - 默认隐藏 */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--neutral-5);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-lg);
    color: var(--neutral-8);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero区域 */
.ali-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f6f8ff 0%, #f0f5ff 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 64px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(22, 119, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(82, 196, 26, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
}

.hero-title {
    font-size: var(--font-6xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-10);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #1677ff 0%, #52c41a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-2xl);
    line-height: 1.6;
    color: var(--neutral-8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 180px;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--neutral-7);
    font-weight: 500;
}

/* 平台徽章 */
.platform-badges {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.platform-badge {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--neutral-8);
    transition: all var(--transition-normal);
}

.platform-badge:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.platform-badge i {
    margin-right: 6px;
    font-size: var(--font-lg);
}

/* 特性展示区域 */
.features-section {
    padding: var(--space-xxl) 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: var(--font-5xl);
    font-weight: 600;
    color: var(--neutral-10);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--neutral-7);
    max-width: 600px;
    margin: 0 auto;
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.feature-card {
    background: white;
    border: 1px solid var(--neutral-4);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.feature-card:hover:before {
    transform: translateY(0);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--neutral-2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 20px;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--neutral-10);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--neutral-7);
}

/* 优势展示区域 */
.advantages-section {
    padding: var(--space-xxl) 0;
    background: var(--neutral-2);
}

.advantage-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.advantage-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.advantage-content {
    flex: 1;
}

.advantage-title {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--neutral-10);
    margin-bottom: var(--space-sm);
}

.advantage-desc {
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--neutral-7);
}

.advantage-image {
    width: 300px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.05);
}

/* 合作伙伴区域 */
.partners-section {
    padding: var(--space-xxl) 0;
    background: white;
    border-top: 1px solid var(--neutral-4);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--neutral-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.partner-item:hover {
    opacity: 1;
    background: var(--neutral-3);
    transform: translateY(-2px);
}

.partner-item img {
    max-width: 120px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter var(--transition-normal);
}

.partner-item:hover img {
    filter: grayscale(0);
}

/* 页脚 */
.ali-footer {
    background: var(--neutral-9);
    color: var(--neutral-4);
    padding: var(--space-xxl) 0 var(--space-xl);
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-column-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--neutral-5);
    text-decoration: none;
    font-size: var(--font-base);
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: var(--font-sm);
    color: var(--neutral-6);
}

.footer-bottom a {
    color: var(--neutral-5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* 动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 显示移动菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 隐藏桌面端导航菜单 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--neutral-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    /* 正确的菜单显示类名 */
    .nav-menu.mobile-show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-md);
        width: 100%;
        margin: 4px 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-menu .nav-link.active:after {
        display: none;
    }
    
    .nav-menu .nav-link.active {
        background: rgba(22, 119, 255, 0.08);
        color: var(--primary-color);
    }
    
    /* 移动端导航栏高度调整 */
    .ali-navbar {
        height: 60px;
    }
    
    .ali-navbar.scrolled {
        height: 56px;
    }
    
    .ali-navbar.scrolled .nav-menu {
        top: 56px;
    }
    
    /* 移动端导航容器 */
    .nav-container {
        padding: 0 16px;
    }
    
    /* 防止滚动穿透 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Hero区域调整 */
    .ali-hero {
        padding: 120px 0 60px;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .ali-btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-item {
        min-width: auto;
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
    
    .advantage-card {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .advantage-image {
        width: 100%;
        height: 180px;
    }
    
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-base);
    }
    
    .section-title {
        font-size: var(--font-3xl);
    }
    
    .partner-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-badge {
        font-size: var(--font-xs);
        padding: 6px 12px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-1: #141414;
        --neutral-2: #1f1f1f;
        --neutral-3: #262626;
        --neutral-4: #434343;
        --neutral-5: #595959;
        --neutral-6: #8c8c8c;
        --neutral-7: #bfbfbf;
        --neutral-8: #d9d9d9;
        --neutral-9: #f0f0f0;
        --neutral-10: #ffffff;
    }
    
    .ali-hero {
        background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    }
    
    .feature-card,
    .stat-item {
        background: var(--neutral-2);
        border-color: var(--neutral-3);
    }
}

/* 基础样式 - 桌面端 */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* 移动端适配 - 保持水平排列并居中 */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: row; /* 明确保持水平排列 */
        gap: var(--space-sm);
        justify-content: center; /* 水平居中 */
        flex-wrap: nowrap; /* 禁止换行 */
    }
    
    .hero-actions .ali-btn {
        flex: 1; /* 让两个按钮等宽 */
        min-width: 0; /* 允许缩小 */
        white-space: nowrap; /* 防止文字换行 */
    }
}