/* ============================================================
   UYEA Landing Page · landing.css v0.3.0（优化版）
   Apple + Nothing + Linear 风格
   毛玻璃质感 + 简约布局 + 清晰层级
   ============================================================ */

/* ========== CSS 变量定义 ========== */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-dark-gray: #4A4A4A;
    --color-medium-gray: #757575;

    --transition-easing: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 毛玻璃颜色变量 - 黑灰方案（可读性优先） */
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-bg-hover: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: 24px;
}

/* ========== 字体导入 ========== */
@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 400;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-45-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 500;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-55-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 600;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-65-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 700;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-65-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 800;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-75-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba Sans';
    font-weight: 900;
    src: url('https://cdn.jsdelivr.net/gh/alibaba/AlibabaPuhuiTi@0/dist/AlibabaPuhuiTi-3-75-ExtraBold.woff2') format('woff2');
}

/* ========== 全局样式 ========== */
* {
    font-family: 'Alibaba Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background-color: #F5F5F5;
    color: var(--color-dark-gray);
    overflow-x: hidden;
}

/* ========== 顶部导航栏（简化版）========== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-header-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO - 靠左 */
.landing-logo {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    letter-spacing: 2px;
    font-family: 'Alibaba Sans', inherit;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* 头部右侧容器 - 简化为仅头像 */
.landing-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== 语言选择器 - 毛玻璃版本 ========== */
.landing-lang-selector {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 4px;
    gap: 0;
    position: relative;
    width: auto;
    transition: all 0.3s ease;
}

.landing-lang-selector:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.landing-lang-item {
    padding: 0px 16px;
    border: none;
    background: transparent;
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

/* 活跃状态 - 深灰色背景，增强可读性 */
.landing-lang-item.active {
    background: rgba(100, 100, 100, 0.5);
    color: #00aeff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 18px;
}

.landing-lang-item:hover:not(.active) {
    opacity: 0.85;
}

/* 搜索和用户按钮 - 毛玻璃风格 */
.landing-search-btn,
.landing-user-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    color: var(--color-white);
}

.landing-search-btn:hover,
.landing-user-btn:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.landing-search-btn:active,
.landing-user-btn:active {
    transform: translateY(0);
}

/* ========== 主页面容器 ========== */
.landing-main {
    margin-top: 0;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

/* 背景图自适应 */
@media (max-width: 1024px) {
    .landing-main {
        background-image: url('https://raw.githubusercontent.com/YMH752/UYEA-Files/main/UYEA-Web/IMAGE/JPG/Peter_Thomas(2-1).jpg');
        background-position: center center;
        filter: contrast(1.1) brightness(1.05);
    }
}

@media (min-width: 1025px) {
    .landing-main {
        background-image: url('https://raw.githubusercontent.com/YMH752/UYEA-Files/main/UYEA-Web/IMAGE/JPG/Peter_Thomas(2-2).jpg');
        background-position: center center;
        filter: contrast(1.1) brightness(1.05);
    }
}

/* ========== 时钟/日期区域（优化版）========== */
.landing-clock-section {
    padding-top: 100px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.landing-clock-display {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* 液态玻璃数字时钟 */
.landing-time {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

/* 日期 - 增强版本 */
.landing-date {
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.80);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

/* 移动端时钟调整 */
@media (max-width: 768px) {
    .landing-clock-section {
        min-height: 200px;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .landing-time {
        font-size: 80px;
        color: rgba(255, 255, 255, 0.85);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    }

    .landing-date {
        font-size: 14px;
        margin-top: 12px;
        color: rgba(255, 255, 255, 0.80);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
}

/* ========== 卡片区域 ========== */
.landing-cards-container {
    position: relative;
    z-index: 3;
    padding: 30px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-cards-grid {
    display: grid;
    width: 100%;
    gap: 18px;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1360px;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .landing-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 90vw;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .landing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 90vw;
        margin: 0 auto;
    }
}

/* ========== 卡片基础样式（高级毛玻璃版本）========== */
.landing-card {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 24px;

    /* 高级毛玻璃效果 */
    background: linear-gradient(
        180deg,
        rgba(35, 35, 35, 0.30),
        rgba(20, 20, 20, 0.18)
    );
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    border-radius: 24px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.3s var(--transition-easing);
    text-align: left;
}

.landing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(
        180deg,
        rgba(50, 50, 50, 0.38),
        rgba(25, 25, 25, 0.25)
    );
}

.landing-card:active {
    transform: translateY(-2px);
}

/* 启用状态 */
.landing-card-enabled {
    cursor: pointer;
}

/* 禁用状态 - 更明显的禁用表现 */
.landing-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.01)
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.landing-card-disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.01)
    );
}

/* 移动端卡片 */
@media (max-width: 768px) {
    .landing-card {
        aspect-ratio: auto;
        min-height: 120px;
    }
}

/* ========== 卡片内容 ========== */
.landing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-card-title {
    font-size: 33px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
    color: #FFFFFF;
}

.landing-card-desc {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
    color: #FFFFFF;
}

/* 移动端字号 */
@media (max-width: 768px) {
    .landing-card-title {
        font-size: 28px;
    }

    .landing-card-desc {
        font-size: 12px;
    }
}

/* ========== 卡片箭头 - 强化版本 ========== */
.landing-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 600;
    color: white;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.landing-card:hover .landing-card-arrow {
    transform: translateX(6px);
    opacity: 1;
}

.landing-card-disabled .landing-card-arrow {
    opacity: 0.25;
}

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

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 卡片级联加载 */
.landing-cards-grid > :nth-child(1) { animation: staggerIn 0.5s ease-out 0.1s both; }
.landing-cards-grid > :nth-child(2) { animation: staggerIn 0.5s ease-out 0.2s both; }
.landing-cards-grid > :nth-child(3) { animation: staggerIn 0.5s ease-out 0.3s both; }
.landing-cards-grid > :nth-child(4) { animation: staggerIn 0.5s ease-out 0.4s both; }
.landing-cards-grid > :nth-child(5) { animation: staggerIn 0.5s ease-out 0.5s both; }

/* ========== 模态框 ========== */
.landing-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(90vw, 320px);
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
    border: 1px solid #E0E0E0;
}

.landing-modal.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: modalPopIn 0.4s var(--transition-easing);
}

.landing-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.landing-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 8px;
}

.landing-modal-text {
    font-size: 14px;
    color: var(--color-medium-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.landing-modal-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #E69200, #D47F00);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-modal-btn:hover {
    background: linear-gradient(135deg, #D47F00, #C26E00);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 146, 0, 0.3);
}

/* ========== 模态框背景 ========== */
.landing-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.landing-modal-overlay.show {
    display: block;
}

/* ========== 响应式头部调整 ========== */
@media (max-width: 768px) {
    .landing-header {
        height: 60px;
    }

    .landing-main {
        padding-top: 60px;
    }

    .landing-header-container {
        padding: 0 16px;
    }

    .landing-logo {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .landing-header-right {
        gap: 10px;
    }

    .landing-lang-selector {
        border-radius: 18px;
        padding: 5px;
    }

    .landing-lang-item {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 14px;
    }

    .landing-search-btn,
    .landing-user-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========== 打印与可访问性 ========== */
@media print {
    .landing-main {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== SVG Icons ===== */

.landing-search-icon{
    width:26px;
    height:26px;
    display:block;
}

.landing-search-icon circle,
.landing-search-icon line{
    stroke:rgba(255,255,255,.95);
    stroke-width:3.2;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.landing-user-icon{
    width:26px;
    height:26px;
    display:block;
}

.landing-user-icon circle,
.landing-user-icon path{
    stroke:rgba(255,255,255,.95);
    stroke-width:3.2;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
}