/* VR女友官方网站 - 自定义样式表 */
/* 主色调：白色+3D虚拟现实风格 */

:root {
    /* 主色调配置 - 白色+3D虚拟现实风 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent-color: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #22d3ee;
    
    /* VR风格渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-vr: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #06b6d4 100%);
    
    /* 3D效果阴影 */
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-vr: 0 20px 40px rgba(102, 126, 234, 0.3);
    
    /* 字体配置 */
    --font-primary: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* 间距配置 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 边框圆角 */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* 动画时长 */
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* 全局样式重置与基础设置 */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 改进的文字渲染 */
body, h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--primary-dark);
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal) ease;
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal) ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color) !important;
}

/* 移动端导航栏优化 */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal) ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggler:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

/* 移动端菜单展开时的样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: var(--border-radius-md);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius-md);
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
        transform: translateX(5px);
    }
    
    /* 防止菜单展开时背景滚动 */
    body.navbar-open {
        overflow: hidden;
    }
}

/* 英雄区域样式 */
.hero-section {
    background: var(--gradient-vr);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.text-accent {
    color: var(--accent-color) !important;
}

.hero-features {
    font-size: 1.1rem;
}

.hero-features i {
    font-size: 1.2rem;
}

.hero-image-container {
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-xl);
    opacity: 0.2;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

/* 按钮样式 */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal) ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow) ease;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 背景渐变样式 */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* 特色卡片样式 */
.feature-card {
    transition: all var(--transition-normal) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal) ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

/* 截图展示样式 */
.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal) ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    transition: all var(--transition-normal) ease;
    border-radius: var(--border-radius-lg);
}

.screenshot-item:hover img {
    filter: brightness(1.1);
}

/* FAQ手风琴样式 */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8fafc;
    border: none;
    font-weight: var(--font-weight-medium);
    padding: 1.25rem 1.5rem;
    transition: all var(--transition-normal) ease;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-accent);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    color: #6b7280;
    line-height: 1.7;
}

/* 下载区域样式 */
.download-info {
    font-size: 1.1rem;
}

.download-info i {
    font-size: 1.3rem;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: white !important;
}

/* 确保页脚内所有文字都是白色 */
footer * {
    color: white !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: white !important;
}

footer p, footer span, footer div {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.social-links a {
    transition: all var(--transition-normal) ease;
    display: inline-block;
    color: white !important;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
}

.compliance-notice {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* 返回顶部按钮 */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
    transition: all var(--transition-normal) ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-vr);
}

.btn-floating.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2.5rem !important;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 20px 20px;
    }
}

/* 深色模式支持 (预留) */
@media (prefers-color-scheme: dark) {
    /* 深色模式样式可以在这里添加 */
}

/* 减少动画效果 (无障碍支持) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .btn-floating,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .feature-card,
    .screenshot-item {
        break-inside: avoid;
    }
}

/* 性能优化 - GPU加速 */
.hero-section,
.feature-card,
.screenshot-item,
.btn,
.btn-floating {
    will-change: transform;
    transform: translateZ(0);
}

/* 自定义滚动条 (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选择文本样式 */
::selection {
    background-color: var(--accent-color);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

/* 焦点样式 (无障碍) */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 加载状态样式 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
}

/* 模态框样式增强 */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-vr);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* 表单样式增强 */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}

/* 徽章样式 */
.badge {
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
}

.badge-primary {
    background: var(--gradient-primary);
}

.badge-accent {
    background: var(--gradient-accent);
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: var(--border-radius-sm);
    background-color: #e5e7eb;
}

.progress-bar {
    background: var(--gradient-accent);
    border-radius: var(--border-radius-sm);
}

/* 卡片阴影层级 */
.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-heavy) !important;
}

/* VR特效增强 */
.vr-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    animation: pulse 2s infinite;
}

.vr-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-vr) border-box;
    border-radius: var(--border-radius-lg);
}

/* 3D变换效果 */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rotate-y-hover:hover {
    transform: rotateY(10deg);
}

.rotate-x-hover:hover {
    transform: rotateX(10deg);
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 霓虹灯效果 */
.neon-text {
    color: var(--accent-color);
    text-shadow: 
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 15px var(--accent-color);
}

/* 渐变文字 */
.gradient-text {
    background: var(--gradient-vr);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 最终优化 - 确保所有交互元素都有合适的过渡效果 */
button, a, input, select, textarea {
    transition: all var(--transition-normal) ease;
}

/* 确保图片加载优化 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
