/* 鸿蒙字体定义 - HarmonyOS NEXT专用 */

/* 浏览器兼容性设置 - Mac系统和旧版Windows支持 */
/* 针对旧版IE的兼容性 */
/*[if IE]>
<style>
.gradient-text {
    color: #6366f1 !important;
}
</style>
<![endif]*/

/* 关键首屏样式 - 优先加载避免FOUC */
body { 
    font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', Roboto, Arial, sans-serif;
    background: #13141a; 
    color: #fff; 
    margin: 0; 
    line-height: 1.65; /* 鸿蒙字体优化行高 */
    overflow-x: hidden;
    /* Mac系统字体渲染优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 旧版Windows字体渲染优化 */
    text-rendering: optimizeLegibility;
    /* 防止iOS Safari缩放 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ========================================
   鸿蒙字体系统优化
   ======================================== */

/* ========================================
   鸿蒙字体定义 - HarmonyOS NEXT专用
   ======================================== */

/* HarmonyOS Sans SC Regular 字重 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* HarmonyOS Sans SC Medium 字重 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* HarmonyOS Sans SC Bold 字重 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 兼容性前缀 */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* 通用兼容性样式 */
.transition {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.transform {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Flexbox兼容性 */
.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.flex-center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* 导航栏 - 修复：优化样式，避免重复 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #13141a;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
    height: 60px;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 修复：统一导航链接样式，避免重复定义 */
.nav-left a,
.nav-login {
    text-decoration: none;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
    display: inline-block;
}

.nav-left a:hover,
.nav-login:hover {
    background: #222326;
    color: white;
}

.nav-left .logo:hover {
    background: none !important;
    color: inherit !important;
}

/* 修复：专门的登录按钮样式 */
.nav-login {
    background: #222326;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 2rem;
}

.logo img {
    height: 25px;
    width: auto;
}

.logo:hover {
    background: none !important;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-platform {
    background-color: #222326;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
}

.nav-platform:hover {
    background: linear-gradient(73deg,#c54043 17.88%,#dd98ff 98.36%);
    color: white;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    padding: 200px 3rem 100px; /* 保持与内联CSS一致 */
    background: -webkit-linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100%);
    background: -moz-linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100%);
    background: -ms-linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100%);
    background: -o-linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100%);
    background: linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100%);
    margin-bottom: 100px;
}

/* Hero区域 - 内容页面专用（较小高度） */
.hero-content {
    min-height: 35vh; /* 从50vh减少到35vh */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 3rem 0px; /* 大幅减少底部padding从40px到20px */
    background: linear-gradient(to bottom, #13141a 10%, #13141a 35%, rgba(51, 51, 51, 0.015) 0%, rgba(51, 51, 51, 0.020) 0%, rgba(51, 51, 51, 0.015) 0%, #222326 60%, #13141a 100% );
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.2rem !important; /* 强制固定最大值，不响应视窗变化 */
    font-weight: 700;
    margin-bottom: 2rem; /* 恢复原始值 */
    line-height: 1.2;
    letter-spacing: -0.01em; /* 鸿蒙字体优化字间距 */
    font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 优化中文长标题的自适应显示 */
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    max-width: 100%;
    
    /* 文字流线型渐变色效果 */
    background: linear-gradient(90deg,#c54043 0,hsla(5,79%,81%,.95) 5%,hsla(0,0%,100%,.95) 10%,hsla(0,0%,100%,.95) 90%,hsla(5,79%,81%,.95) 95%,#c54043);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* 慢速流线型扫过动画 - 添加初始延迟 */
    animation: text-wave-flow 8s ease-in-out infinite 1s;
    
    /* 确保布局稳定性 */
    min-height: 1.2em;
    display: block;
}

/* 慢速流线型扫过动画 - 中部减速，优化首次播放 */
@keyframes text-wave-flow {
    0% {
        background-position: 250% 0;
    }
    15% {
        background-position: 120% 0;
    }
    30% {
        background-position: 50% 0;
    }
    45% {
        background-position: 20% 0;
    }
    55% {
        background-position: -20% 0;
    }
    70% {
        background-position: -50% 0;
    }
    85% {
        background-position: -120% 0;
    }
    100% {
        background-position: -150% 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 3rem; /* 保持原始值 */
    color: #ccc;
    max-width: 800px;
}

/* Hero按钮组样式 */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-button {
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 主要按钮样式 - AI助手体验（无背景） */
.hero-button-primary {
    background: #222326;
    border: 1px solid #e5565b;
}

.hero-button-primary:hover {
    border-color: #dc93f5;
    background: transparent;
}

/* 次要按钮样式 - 应用市场获取（恢复原始样式） */
.hero-button-secondary {
    background-image: linear-gradient(73deg, #c54043 17.88%, #dd98ff 98.36%);
}

.hero-button-secondary:hover {
    background-image: linear-gradient(133deg, #c54043 17.88%, #dd98ff 98.36%);
}

.hero-button-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

/* ALYR展示区域 */
.ALYR-preview {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
    background: #1e1e1e;
    border: 2px solid #3c3d40;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ALYR-titlebar {
    height: 30px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #333;
}

.ALYR-dots {
    display: flex;
    gap: 0.5rem;
}

.ALYR-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ALYR-dot.red { background: #ff5f57; }
.ALYR-dot.yellow { background: #ffbd2e; }
.ALYR-dot.green { background: #28ca42; }

.ALYR-content {
    height: 400px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    font-weight: 400;
}

/* 功能介绍区域 */
.features {
    background: transparent;
    margin-bottom: 100px;
}

.feature-section {
    max-width: 1400px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* 内容页面专用区域 - 单列全宽布局 */
.content-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: block;
    padding: 0 3rem;
}

.content-section .feature-content {
    width: 100%;
    max-width: none;
}

.feature-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-content p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    color: #ff4444;
    font-weight: 500;
}

/* 功能关键词标签 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-tag {
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    border: solid 1px #333;
}

.feature-tag:hover {
    background: #222326;
}

/* 可点击标签特殊样式 */
.feature-tag.clickable-tag {
    border: 1px solid rgba(197, 64, 67, 0.3);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feature-tag.clickable-tag:hover {
    border-color: #222326;
    border: 1px solid rgba(197, 64, 67, 0.3);
}

.feature-tag.clickable-tag:active {
    border-color: #222326;
}

.feature-image {
    background: #13141a;
    border-radius: 5px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 400;
}

/* 包含助手图片的容器特殊样式 */
.feature-image.assistant-container {
    aspect-ratio: unset;
    height: auto;
    background: #13141a;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片视频媒体容器样式 - 避免切换时的布局跳动 */
.media-container {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.media-container video,
.media-container img {
    transition: opacity 0.3s ease !important;
    border-radius: inherit;
}

.media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* 避免视频阻挡鼠标事件 */
}

.media-container img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

/* Lyra助手图片样式 */
.assistant-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    transition: all 0.4s ease;
    
    /* 优化图片清晰度 - 使用高质量插值 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: smooth;
    -ms-interpolation-mode: bicubic;
    
    /* 确保图片保持原始比例 */
    object-fit: contain;
    object-position: center;
    
    /* 移除固定宽高比，保持原图比例 */
    display: block;
    margin: 0 auto;
    
    /* 添加边框效果 */
    border: 1px solid #3c3d40;
    
    /* 添加光锥扫描效果 */
    position: relative;
    overflow: hidden;
}

.assistant-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(123, 104, 238, 0.1) 25%, 
        rgba(74, 144, 226, 0.15) 50%, 
        rgba(123, 104, 238, 0.1) 75%, 
        transparent
    );
    border-radius: 12px;
    animation: lightSweep 3.5s infinite;
    pointer-events: none;
    }
    
.assistant-image:hover {
    /* 悬停时增强边框光效，移除scale变换 */
    border: 1px solid transparent;
    background-image: linear-gradient(133deg,#c54043 17.88%,#dd98ff 98.36%);
}

.assistant-image:hover::before {
    animation: lightSweep 1.8s infinite;
}

/* 清穹织网净轨计划图片样式 */
.clearingplan-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;

    transition: all 0.4s ease;
    
    /* 优化图片清晰度 - 使用高质量插值 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: smooth;
    -ms-interpolation-mode: bicubic;
    
    /* 确保图片保持原始比例 */
    object-fit: contain;
    object-position: center;
    
    /* 移除固定宽高比，保持原图比例 */
    display: block;
    margin: 0 auto;
    
    /* 添加微光效果边框 */
    border: 1px solid #3c3d40;
    
    /* 添加光锥扫描效果 */
    position: relative;
    overflow: hidden;
}

.clearingplan-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(221, 152, 255, 0.1) 25%, 
        rgba(197, 64, 67, 0.15) 50%, 
        rgba(221, 152, 255, 0.1) 75%, 
        transparent
    );
    border-radius: 12px;
    animation: lightSweep 4s infinite;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.clearingplan-image:hover {
    /* 悬停时增强边框光效，移除scale变换 */
    border: 1px solid transparent;
    background-image: linear-gradient(133deg,#c54043 17.88%,#dd98ff 98.36%);
}

.clearingplan-image:hover::before {
    animation: lightSweep 1.5s infinite;
}

/* 星链育盾永续疆界图片样式 */
.TalentDefense-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    transition: all 0.4s ease;
    
    /* 优化图片清晰度 - 使用高质量插值 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: smooth;
    -ms-interpolation-mode: bicubic;
    
    /* 确保图片保持原始比例 */
    object-fit: contain;
    object-position: center;
    
    /* 移除固定宽高比，保持原图比例 */
    display: block;
    margin: 0 auto;
    
    /* 添加绿色系渐变边框效果 */
    border: 1px solid #3c3d40;
    
    /* 添加光锥扫描效果 */
    position: relative;
    overflow: hidden;
}

.TalentDefense-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(0, 255, 136, 0.1) 25%, 
        rgba(0, 208, 132, 0.15) 50%, 
        rgba(0, 255, 136, 0.1) 75%, 
        transparent
    );
    border-radius: 10px;
    animation: lightSweep 3.5s infinite;
    pointer-events: none;
}

.TalentDefense-image:hover {
    /* 悬停时增强边框光效，移除scale变换 */
    border: 1px solid transparent;
    background-image: linear-gradient(133deg,#c54043 17.88%,#dd98ff 98.36%);
}

.TalentDefense-image:hover::before {
    animation: lightSweep 1.3s infinite;
}

/* 星河棱镜开放接口图片样式 */
.Openinterfaces-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
    transition: all 0.4s ease;
    
    /* 优化图片清晰度 - 使用高质量插值 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: smooth;
    -ms-interpolation-mode: bicubic;
    
    /* 确保图片保持原始比例 */
    object-fit: contain;
    object-position: center;
    
    /* 移除固定宽高比，保持原图比例 */
    display: block;
    margin: 0 auto;
    
    /* 添加橙色系渐变边框效果 */
    border: 1px solid #3c3d40;
    
    /* 添加光锥扫描效果 */
    position: relative;
    overflow: hidden;
}

.Openinterfaces-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 165, 0, 0.1) 25%, 
        rgba(255, 140, 0, 0.15) 50%, 
        rgba(255, 165, 0, 0.1) 75%, 
        transparent
    );
    border-radius: 11px;
    animation: lightSweep 3.2s infinite;
    pointer-events: none;
}

.Openinterfaces-image:hover {
    /* 悬停时增强边框光效，移除scale变换 */
    border: 1px solid transparent;
    background-image: linear-gradient(133deg,#c54043 17.88%,#dd98ff 98.36%);
}

.Openinterfaces-image:hover::before {
    animation: lightSweep 1.2s infinite;
}


/* ========================================
   性能优化CSS - 关键样式优先加载
   ======================================== */

/* 图片懒加载优化 */
img {
    /* 图片加载优化 */
    loading: lazy;
    decoding: async;
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 滚动性能优化 */
* {
    /* 启用硬件加速滚动 */
    -webkit-overflow-scrolling: touch;
}

/* 预加载关键资源 */
.preload-critical {
    /* 关键资源预加载提示 */
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

.feature-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
}

.content-section {
    padding: 0 0.8rem;
    margin-bottom: 2rem;
}

.privacy-title {
    font-size: 1.7rem;
    line-height: 1.2;
}

/* ========================================
   反馈表单样式
   ======================================== */

.feedback-form-section {
    background: transparent;
    margin-bottom: 100px;
}

.feedback-form-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.feedback-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.feedback-form-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.feedback-form {
    background: #1a1b1f;
    border: 1px solid #3c3d40;
    border-radius: 8px;
    padding: 3rem;
    text-align: left;
}

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

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: #ff4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #13141a;
    border: 1px solid #3c3d40;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #c54043;
    box-shadow: 0 0 0 2px rgba(197, 64, 67, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(73deg, #c54043 17.88%, #dd98ff 98.36%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background: linear-gradient(133deg, #c54043 17.88%, #dd98ff 98.36%);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-message.success {
    background: rgba(40, 202, 66, 0.1);
    border: 1px solid rgba(40, 202, 66, 0.3);
    color: #28ca42;
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}


/* ========================================
   用户下拉菜单样式
   ======================================== */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #222326;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.user-menu-trigger:hover {
    background: #303133;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c54043;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-menu.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1b1f;
    border: 1px solid #3c3d40;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #3c3d40;
}

.user-dropdown-name {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.25rem;
}

.user-dropdown-email {
    font-size: 0.875rem;
    color: #888;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-dropdown-item:hover {
    background: #222326;
    color: #fff;
}

.user-dropdown-item.logout-item {
    color: #ff6b6b;
}

.user-dropdown-item.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.user-dropdown-divider {
    height: 1px;
    background: #3c3d40;
    margin: 0.5rem 0;
}

.user-dropdown-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}



/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: auto;
}

.login-modal-content {
    background: #1a1b1f;
    border-radius: 8px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    min-width: 400px;
    border: 1px solid #3c3d40;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
    flex-shrink: 0;
}

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

.login-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.login-modal-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    background: linear-gradient(90deg, #c54043 0%, #dd98ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.login-form label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    background: #222326;
    border: 1px solid #3c3d40;
    border-radius: 5px;
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #c54043;
    background: #2a2b2f;
}

.login-form input::placeholder {
    color: #888;
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #c54043 0%, #dd98ff 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-submit-btn:hover {
    background: linear-gradient(133deg, #c54043 0%, #dd98ff 100%);
    transform: translateY(-1px);
}

.login-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c54043;
}

.forgot-password {
    color: #c54043;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #dd98ff;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.third-party-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-btn {
    flex: 1;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(197, 64, 67, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.login-btn[data-platform="huawei"] {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 102, 0, 0.1) 100%);
}

.login-btn[data-platform="huawei"]:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 102, 0, 0.2) 100%);
    border-color: #ff6600;
}

.login-btn[data-platform="phone"] {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(0, 200, 83, 0.1) 100%);
}

.login-btn[data-platform="phone"]:hover {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.2) 0%, rgba(0, 200, 83, 0.2) 100%);
    border-color: #07c160;
}

/* 验证码输入组 */
.verify-code-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch; /* 让子元素高度一致 */
}

.verify-code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 1rem; /* 与输入框相同的padding */
    background: #3c3d40;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: auto; /* 让高度自适应 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-code-btn:hover {
    background: #555;
}

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

/* 登录方式切换 */
.login-switch {
    text-align: center;
    margin-top: 1rem;
}

.login-switch a {
    color: #c54043;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-switch a:hover {
    color: #dd98ff;
}

/* 手机登录提示 */
.phone-login-tip {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* 输入框提示文字样式 */
.input-tip {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    line-height: 1.3;
    display: block;
    padding-left: 0.25rem;
    min-height: 1.04rem; /* 固定高度避免布局跳动 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-tip.phone-tip {
    color: #aaa;
    font-style: italic;
}

/* 显示状态 */
.input-tip[style*="block"] {
    opacity: 1;
}

/* 登录表单中的输入提示 */
.login-form .input-tip {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
    line-height: 1.3;
    display: block;
    padding-left: 0.25rem;
    font-style: italic;
    min-height: 1.04rem; /* 固定高度避免布局跳动 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-form .input-tip.phone-tip {
    color: #bbb;
}

/* 登录表单中的显示状态 */
.login-form .input-tip[style*="block"] {
    opacity: 1;
}

/* 模态框底部提示信息样式 */
.modal-bottom-notification {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    max-width: 90%;
    width: auto;
    animation: modalSlideUp 0.3s ease-out;
}

.modal-notification-content {
    background: rgba(197, 64, 67, 0.9);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 64, 67, 0.3);
    white-space: nowrap;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* 隐私与安全区域 */
.privacy-security {
    background: transparent;
    text-align: center;
}

.privacy-container {
    max-width: 1400px;
    margin: 0 auto;
}

.privacy-icon {
    margin-bottom: 3rem;
}

.privacy-svg-icon {
    width: 8rem;
    height: 8rem;
}

.privacy-svg-icon path {
    stroke: none;
    transition: opacity 0.3s ease;
}

.privacy-svg-icon:hover {
    filter: drop-shadow(0 0 30px rgba(221, 152, 255, 0.5));
}

.privacy-card-svg {
    width: 2.5rem;
    height: 2.5rem;
}

.privacy-card-svg path {
    stroke: none;
    transition: opacity 0.3s ease;
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.privacy-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 10rem;
}

.privacy-card {
    background: #13141a;
    border: 1px solid #3c3d40;
    border-radius: 5px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.privacy-card:hover {
    background: #222326;
    border-color: #555;
    transform: translateY(-5px);
}

.privacy-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.privacy-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.privacy-card-title-h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.privacy-card-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: #bbb;
    line-height: 1.6;
}

/* 底部区域 */
.bottom-section {
    padding: 0px 0px 150px;
    text-align: center;
    background: transparent;
}

.bottom-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.bottom-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 2rem;
}

.bottom-button {
    background-image: linear-gradient(73deg,#c54043 17.88%,#dd98ff 98.36%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
}

.bottom-button:hover {
    background-image: linear-gradient(133deg,#c54043 17.88%,#dd98ff 98.36%);
}

/* 返回顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: #5855eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

.back-to-top-btn svg {
    transition: transform 0.2s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-1px);
}

/* 浅色主题下的返回顶部按钮样式 */
body.theme-light .back-to-top-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 4px 12px var(--shadow-color);
}

body.theme-light .back-to-top-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 6px 16px var(--shadow-color);
}

body.theme-light .back-to-top-btn svg {
    color: var(--text-primary);
}

body.theme-light .back-to-top-btn:hover svg {
    color: var(--text-primary);
}

/* 版权信息 */
.footer {
    background: #13141a;
    border-top: 1px solid #222;
    padding: 2rem 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.5rem;
}

.company-info {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
}

/* ========================================
   移动端元素默认隐藏
   ======================================== */

/* 默认隐藏移动端专用元素 */
.mobile-menu-toggle,
.mobile-sidebar,
.mobile-sidebar-overlay {
    display: none;
}

/* ==================== 主题切换功能 ==================== */

/* CSS 变量定义 */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* 主题切换按钮样式 */
.theme-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.theme-toggle .theme-icon {
    transition: all 0.3s ease;
}

.theme-toggle .theme-icon-dark {
    display: none;
}

/* 浅色主题样式 */
body.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

body.theme-light .theme-toggle {
    color: rgba(0, 0, 0, 0.7);
}

body.theme-light .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 1);
}

/* 浅色主题下的主标题渐变 */
body.theme-light .hero-title {
    /* 浅色主题下使用黑色文字 */
    color: #212529 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    animation: none !important;
}

/* 支持background-clip的浏览器使用透明文字 - 仅适用于深色主题 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    body:not(.theme-light) .hero-title {
        color: transparent !important;
    }
}

/* 浅色主题下的意见反馈表单 */
body.theme-light .feedback-form {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

body.theme-light .form-label {
    color: #212529;
}

body.theme-light .form-input,
body.theme-light .form-select,
body.theme-light .form-textarea {
    background: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

body.theme-light .form-input:focus,
body.theme-light .form-select:focus,
body.theme-light .form-textarea:focus {
    border-color: #c54043;
    box-shadow: 0 0 0 2px rgba(197, 64, 67, 0.2);
}

body.theme-light .form-input::placeholder,
body.theme-light .form-textarea::placeholder {
    color: #6c757d;
}

/* 浅色主题下的导航栏 */
body.theme-light .navbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 4px var(--shadow-color) !important;
}

body.theme-light .navbar .nav-link {
    color: var(--text-primary) !important;
}

body.theme-light .navbar .nav-link:hover {
    color: #c54043 !important;
}

body.theme-light .navbar-brand {
    color: var(--text-primary) !important;
}

/* 浅色主题下的logo替换 */
body.theme-light .logo img {
    content: url('/assets/images/logof.png') !important;
}

body.theme-light .logo:hover {
    background: none !important;
    text-decoration: none;
}

body.theme-light .navbar-toggler {
    border-color: var(--border-color) !important;
}

body.theme-light .dropdown-menu {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 8px var(--shadow-color) !important;
}

body.theme-light .dropdown-item {
    color: var(--text-primary) !important;
}

body.theme-light .dropdown-item:hover {
    background: var(--bg-secondary) !important;
    color: #c54043 !important;
}

body.theme-light .nav-item-desktop {
    color: var(--text-primary);
}

body.theme-light .nav-item-desktop:hover {
    color: #c54043;
}

body.theme-light .nav-left a:hover {
    background: var(--bg-secondary) !important;
    color: #c54043 !important;
}

body.theme-light .nav-left .logo:hover {
    background: none !important;
    color: inherit !important;
}

/* 浅色主题下的导航按钮 */
body.theme-light .nav-login {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.theme-light .nav-login:hover {
    background: #c54043 !important;
    border-color: #c54043 !important;
    color: white !important;
}

body.theme-light .nav-platform {
    background: linear-gradient(135deg, #c54043, #dd98ff) !important;
    border: none !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.theme-light .nav-platform:hover {
    background: linear-gradient(135deg, #a73336, #c785e6) !important;
    transform: translateY(-1px) !important;
}

/* 浅色主题下的功能图片容器背景 */
body.theme-light .feature-image {
    background: var(--bg-primary) !important;
}

body.theme-light .feature-image.assistant-container {
    background: var(--bg-primary) !important;
}

/* 浅色主题下的页面背景 */
body.theme-light {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* 浅色主题下的页面元素适配 */
body.theme-light .hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.theme-light .hero-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 50px;
}

body.theme-light .hero-subtitle {
    color: var(--text-secondary);
}

body.theme-light .feature-card,
body.theme-light .content-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

body.theme-light .btn-primary {
    background: #c54043;
    border-color: #c54043;
    color: white;
}

body.theme-light .btn-primary:hover {
    background: #a73336;
    border-color: #a73336;
}

body.theme-light .btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.theme-light .btn-secondary:hover {
    background: var(--border-color);
}

/* 浅色主题下的表单元素 */
body.theme-light input,
body.theme-light textarea,
body.theme-light select {
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
}

body.theme-light input:focus,
body.theme-light textarea:focus,
body.theme-light select:focus {
    border-color: #c54043;
}

/* 浅色主题下的助手页面按钮样式 */
body.theme-light .mode-button {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .mode-button:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .mode-button.active {
    background: #c54043 !important;
    border-color: #c54043 !important;
    color: #ffffff !important;
}

body.theme-light .clear-chat-button {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .clear-chat-button:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .clear-chat-button:disabled {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
}

body.theme-light .fullscreen-button {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .fullscreen-button:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .fullscreen-button:disabled {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
}

body.theme-light .send-button {
    background: #c54043 !important;
    color: white !important;
}

body.theme-light .send-button:hover:not(:disabled) {
    background: linear-gradient(133deg, #c54043 17.88%, #dd98ff 98.36%) !important;
}

body.theme-light .send-button:disabled {
    background: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* 浅色主题下的消息操作按钮 */
body.theme-light .message-action {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
}

body.theme-light .message-action:hover {
    color: #c54043 !important;
    background: rgba(197, 64, 67, 0.1) !important;
}

/* 浅色主题下的登录页面按钮 */
body.theme-light .login-btn {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .login-btn:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .login-btn[data-platform="huawei"] {
    background: #c54043 !important;
    color: white !important;
}

body.theme-light .login-btn[data-platform="huawei"]:hover {
    background: #a73336 !important;
}

body.theme-light .login-btn[data-platform="phone"] {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .login-btn[data-platform="phone"]:hover {
    background: var(--bg-secondary) !important;
}

body.theme-light .login-btn[data-platform="phone"] svg path {
    fill: #212529 !important;
}

body.theme-light .close-btn {
    background: none !important;
    border: none !important;
    color: var(--text-primary) !important;
}

body.theme-light .close-btn:hover {
    color: #c54043 !important;
    background: rgba(197, 64, 67, 0.1) !important;
}

/* 浅色主题下的发送验证码按钮 */
body.theme-light .send-code-btn {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .send-code-btn:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .send-code-btn:disabled {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
}

/* 浅色主题下的第三方登录按钮 */
body.theme-light .third-party-btn {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .third-party-btn:hover {
    background: var(--bg-secondary) !important;
    border-color: #c54043 !important;
}

body.theme-light .third-party-btn.huawei {
    background: #c54043 !important;
    color: white !important;
}

body.theme-light .third-party-btn.huawei:hover {
    background: #a73336 !important;
}

/* 浅色主题下的登录提交按钮 */
body.theme-light .login-submit-btn {
    background: #c54043 !important;
    border: none !important;
    color: white !important;
}

body.theme-light .login-submit-btn:hover {
    background: #a73336 !important;
}

body.theme-light .login-submit-btn:disabled {
    background: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
}   box-shadow: 0 0 0 2px rgba(197, 64, 67, 0.2);
}

/* 浅色主题下的链接 */
body.theme-light a {
    color: #c54043;
}

body.theme-light a:hover {
    color: #a73336;
}

/* 浅色主题下的代码块 */
body.theme-light code,
body.theme-light pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* 浅色主题下的分割线 */
body.theme-light hr {
    border-color: var(--border-color);
}

/* 浅色主题下的表格 */
body.theme-light table {
    border-color: var(--border-color);
}

body.theme-light th,
body.theme-light td {
    border-color: var(--border-color);
}

body.theme-light th {
    background: var(--bg-secondary);
}

/* 浅色主题下的模态框 */
body.theme-light .modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

body.theme-light .modal-header {
    border-bottom: 1px solid var(--border-color);
}

body.theme-light .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* 浅色主题下的登录模态框 */
body.theme-light .login-modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
}

body.theme-light .login-modal-header h2 {
    color: var(--text-primary);
}

/* Light theme login form inputs */
body.theme-light .login-form input {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #212529;
}

body.theme-light .login-form input:focus {
    border-color: #c54043;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(197, 64, 67, 0.25);
}

body.theme-light .login-form input::placeholder {
    color: #6c757d;
}

body.theme-light .login-form input::selection {
    background: rgba(197, 64, 67, 0.3);
    color: #212529;
}

/* 浅色主题下的页面背景覆盖 */
body.theme-light {
    background: var(--bg-primary) !important;
}

/* 浅色主题下的容器和区域背景 */
body.theme-light .container,
body.theme-light .main-content,
body.theme-light .content-wrapper {
    background: transparent !important;
}

/* 浅色主题下的卡片和面板 */
body.theme-light .card,
body.theme-light .panel,
body.theme-light .widget,
body.theme-light .box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 浅色主题下的文字颜色覆盖 */
body.theme-light .text-white,
body.theme-light .white-text {
    color: var(--text-primary) !important;
}

body.theme-light .text-gray,
body.theme-light .gray-text,
body.theme-light .text-muted {
    color: var(--text-secondary) !important;
}

/* 浅色主题下的边框颜色 */
body.theme-light .border,
body.theme-light .border-top,
body.theme-light .border-bottom,
body.theme-light .border-left,
body.theme-light .border-right {
    border-color: var(--border-color) !important;
}

/* 浅色主题下的特定组件背景覆盖 */
body.theme-light .navbar-nav,
body.theme-light .nav-tabs,
body.theme-light .nav-pills {
    background: transparent !important;
}

body.theme-light .tab-content,
body.theme-light .tab-pane {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* 浅色主题下的列表和菜单 */
body.theme-light .list-group-item,
body.theme-light .menu-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .list-group-item:hover,
body.theme-light .menu-item:hover {
    background: var(--border-color) !important;
}

/* 浅色主题下的工具栏和状态栏 */
body.theme-light .toolbar,
body.theme-light .statusbar,
body.theme-light .footer {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 浅色主题下的弹出层和提示 */
body.theme-light .tooltip,
body.theme-light .popover,
body.theme-light .alert {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 浅色主题下的加载和占位符 */
body.theme-light .loading,
body.theme-light .placeholder,
body.theme-light .skeleton {
    background: var(--bg-secondary) !important;
}

/* 浅色主题下的滚动条 */
body.theme-light ::-webkit-scrollbar {
    background: #f9fafb !important;
    width: 8px;
    height: 8px;
}

body.theme-light ::-webkit-scrollbar-track {
    background: #f9fafb !important;
    border-radius: 4px;
}

body.theme-light ::-webkit-scrollbar-thumb {
    background: #d1d5db !important;
    border-radius: 4px;
    transition: background 0.3s ease;
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af !important;
}

body.theme-light ::-webkit-scrollbar-corner {
    background: #f9fafb !important;
}

/* 浅色主题下的首页特定区域 */
body.theme-light .hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: var(--text-primary) !important;
}

body.theme-light .hero-description {
    color: var(--text-secondary) !important;
}

body.theme-light .hero-button-subtitle {
    color: var(--text-secondary) !important;
}

/* 浅色主题下的首页按钮 */
body.theme-light .hero-button {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .hero-button-primary {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .hero-button-primary:hover {
    background: var(--bg-primary) !important;
    border-color: #c54043 !important;
    color: #c54043 !important;
}

body.theme-light .hero-button-secondary {
    background: linear-gradient(135deg, #c54043, #dd98ff) !important;
    border: none !important;
    color: white !important;
}

body.theme-light .hero-button-secondary:hover {
    background: linear-gradient(135deg, #a73336, #c785e6) !important;
    transform: translateY(-2px) !important;
}

/* 浅色主题下的ALYR预览窗口 */
body.theme-light .ALYR-preview {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px var(--shadow-color) !important;
}

body.theme-light .ALYR-titlebar {
    background: var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

body.theme-light .ALYR-content {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* 浅色主题下的功能区域 */
body.theme-light .features {
    background: var(--bg-primary) !important;
}

body.theme-light .feature-section {
    background: transparent !important;
}

body.theme-light .content-section {
    background: transparent !important;
}

body.theme-light .feature-content h3 {
    color: var(--text-primary) !important;
}

body.theme-light .feature-content p {
    color: var(--text-secondary) !important;
}

body.theme-light .feature-tag {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .feature-tag:hover,
body.theme-light .clickable-tag:hover {
    background: var(--border-color) !important;
    color: #c54043 !important;
}

/* 浅色主题下的快捷问题区域 */
body.theme-light .quick-questions {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

body.theme-light .quick-questions-title {
    color: var(--text-primary) !important;
}

body.theme-light .quick-question-item {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .quick-question-item:hover {
    background: var(--border-color) !important;
    color: #c54043 !important;
}

/* 浅色主题下的隐私安全区域 */
body.theme-light .privacy-security {
    background: #ffffff !important;
}

body.theme-light .privacy-container {
    background: transparent !important;
    padding: 0 1rem !important;
}

body.theme-light .privacy-title {
    color: var(--text-primary) !important;
}

body.theme-light .privacy-description {
    color: var(--text-secondary) !important;
}

body.theme-light .privacy-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 8px var(--shadow-color) !important;
}

body.theme-light .privacy-card:hover {
    background: var(--bg-primary) !important;
    border-color: #c54043 !important;
    transform: translateY(-2px) !important;
}

body.theme-light .privacy-card-title {
    color: var(--text-primary) !important;
}

body.theme-light .privacy-card-title-h4 {
    color: var(--text-primary) !important;
}

body.theme-light .privacy-card-desc {
    color: var(--text-secondary) !important;
}

/* 浅色主题下的底部下载按钮 */
body.theme-light .bottom-button {
    background: linear-gradient(135deg, #c54043, #dd98ff) !important;
    color: white !important;
    border: none !important;
}

body.theme-light .bottom-button:hover {
    background: linear-gradient(135deg, #a73336, #c785e6) !important;
    transform: translateY(-2px) !important;
}

body.theme-light .bottom-section {
    background: var(--bg-primary) !important;
}

body.theme-light .bottom-title {
    color: var(--text-primary) !important;
}

body.theme-light .bottom-subtitle {
    color: var(--text-secondary) !important;
}

/* 移动端主题切换按钮 */
.mobile-theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-theme-toggle .theme-icon {
    flex-shrink: 0;
}

.mobile-theme-toggle .theme-icon-dark {
    display: none;
}

body.theme-light .mobile-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 平板模式优化 - 769px到1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* 容器适配 */
    .container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    /* 导航栏适配 */
    .navbar {
        padding: 0 24px;
    }
    
    .nav-container {
        max-width: 100%;
    }
    
    /* 主要内容区域 */
    .main-content {
        padding: 0 24px;
    }
    
    /* 卡片布局适配 */
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    /* 表单适配 */
    .form-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 24px;
    }
    
    /* 按钮适配 */
    .btn-group {
        flex-direction: row;
        gap: 16px;
    }
    
    /* 模态框适配 */
    .modal-content {
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* 页脚适配 */
    .footer {
        padding: 40px 24px;
    }
    
    .footer-content {
        max-width: 100%;
    }
    
    /* 隐私政策页面适配 */
    .privacy-container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    .privacy-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* 联系页面适配 */
    .contact-container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    /* 关于页面适配 */
    .about-container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    /* 用户菜单适配 */
    .user-dropdown {
        right: 24px;
    }
    
    /* 主题切换按钮适配 */
    .theme-toggle {
        margin-right: 12px;
    }
}
