/* ============================================
   Umall 企业官网 - 主样式文件
   ============================================ */

/* CSS 变量定义 */
:root {
    --brand-color: #DB3A35;
    --brand-color-dark: #B82E29;
    --brand-color-light: #E85A55;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--brand-color-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
}

.btn-outline:hover {
    background-color: var(--brand-color);
    color: var(--text-white);
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(219, 58, 53, 0.1);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 150px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    display: block;
    background: transparent;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--brand-color);
}

.nav-menu li a:hover::after {
    width: 60%;
}

.nav-menu li a.active {
    color: var(--brand-color);
    background: transparent;
    font-weight: 600;
}

.nav-menu li a.active::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

/* 确保下载APP按钮样式与普通菜单项完全一致 */
.nav-menu li a.download-app-btn {
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    box-shadow: none;
    margin: 0;
}

.nav-menu li a.download-app-btn:hover {
    color: var(--brand-color);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.mobile-lang-switcher {
    display: none;
}

.language-switcher.desktop-lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-btn {
    padding: 8px 16px;
    border: 1.5px solid rgba(219, 58, 53, 0.2);
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
    min-width: 40px;
}

.lang-btn:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(219, 58, 53, 0.05);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
    color: var(--text-white);
    border-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(219, 58, 53, 0.3);
}

.lang-btn.active:hover {
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(219, 58, 53, 0.4);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(219, 58, 53, 0.05);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(219, 58, 53, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    padding: 0 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 96px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特色区域 */
.features {
    background-color: var(--bg-light);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--brand-color);
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* 关于我们区域 */
.about {
    padding: 100px 0;
}

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

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    background-color: #2C2C2C;
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-white);
}

/* Footer APP Logo样式 */
.footer-apps-section {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    padding-right: 40px;
}

.footer-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.footer-app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.footer-app-logo:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.footer-app-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-app-logo:hover img {
    transform: scale(1.1);
}

.app-name-footer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.footer-app-logo:hover .app-name-footer {
    color: #ffffff;
}

/* 二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    padding: 48px 36px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h3 {
    font-size: 26px;
    margin-bottom: 32px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.modal-content img {
    max-width: 100%;
    margin: 20px 0;
}

/* APP下载弹窗样式优化 */
.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.app-card {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(219, 58, 53, 0.15);
    border-color: rgba(219, 58, 53, 0.3);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    position: relative;
}

.app-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 6px 20px rgba(219, 58, 53, 0.2);
}

.app-card:hover .app-icon::after {
    opacity: 1;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.app-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    height: 72px;
    padding: 2px 0;
    position: relative;
}

.app-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    text-align: left;
    letter-spacing: -0.3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.app-download-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    width: auto;
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(219, 58, 53, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.app-download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 58, 53, 0.35);
}

.app-download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.app-download-btn:active {
    transform: translateY(0);
}

.qr-section {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.qr-section p {
    margin-top: 16px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.qr-section img {
    max-width: 180px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 横向时间线样式 - 新设计 */
.journey-section {
    overflow: hidden;
}

.timeline-horizontal-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 60px 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-color) rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-horizontal-wrapper::-webkit-scrollbar {
    height: 6px;
}

.timeline-horizontal-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.timeline-horizontal-wrapper::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 3px;
}

.timeline-horizontal-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--brand-color-dark);
}

.timeline-horizontal {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0;
    position: relative;
    align-items: flex-start;
    margin: 0 auto;
}

.timeline-item-horizontal {
    position: relative;
    min-width: 320px;
    flex-shrink: 0;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-item-horizontal:first-child {
    padding-left: 50px;
}

.timeline-item-horizontal:last-child {
    padding-right: 50px;
}

.timeline-year-badge {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(219, 58, 53, 0.1) 0%, rgba(219, 58, 53, 0.05) 100%);
    border-radius: 50px;
    border: 2px solid rgba(219, 58, 53, 0.2);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.timeline-content-horizontal {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content-horizontal h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.timeline-content-horizontal p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.timeline-item-horizontal:hover .timeline-content-horizontal {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-color);
}

.timeline-item-horizontal:hover .timeline-year-badge {
    background: linear-gradient(135deg, var(--brand-color) 0%, rgba(219, 58, 53, 0.9) 100%);
    color: #ffffff;
    border-color: var(--brand-color);
    transform: scale(1.05);
}

/* 连接线 */
.timeline-item-horizontal::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-color) 0%, rgba(219, 58, 53, 0.3) 100%);
    z-index: 1;
}

.timeline-item-horizontal:last-child::after {
    display: none;
}

/* 政策页面样式 */
.policy-page {
    padding: 120px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.policy-page h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.policy-page h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.policy-page h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.policy-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.policy-page ul,
.policy-page ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.policy-page li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

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

