/* VoiceTally Website Styles - Glassmorphic Design */

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

:root {
    /* 颜色变量 - 与app保持一致 */
    --primary-orange: #FF9500;
    --secondary-orange: #FFB347;
    --accent-gold: #FFD700;
    --dark-text: #1A202C;
    --light-text: #4A5568;
    --income-green: #22C55E;
    --expense-red: #EF4444;
    --white: #FFFFFF;
    --glass-white: rgba(255, 255, 255, 0.3);
    --glass-white-light: rgba(255, 255, 255, 0.2);
    
    /* 玻璃效果 */
    --glass-blur: 20px;
    --glass-radius: 16px;
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange), var(--accent-gold));
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo h2 {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

/* 英雄区域 */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--glass-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--glass-white);
    color: var(--dark-text);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: var(--glass-white);
    transform: translateY(-2px);
}

/* 手机模型 */
.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 30px;
    padding: 10px 0; /* 左右内边距设置为0 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 应用截图样式优化 */
.app-screenshot {
    max-width: 300px;
    width: 100%;
    height: auto;
    max-height: 65vh; /* 增加最大高度以允许图片更宽 */
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* 保持图片比例 */
}

/* 功能特性区域 */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--glass-blur));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(255, 149, 0, 0.2);
    background: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 截图区域 */
.screenshots {
    padding: 80px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    text-align: center;
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(255, 149, 0, 0.2);
}

/* 截图区域图片样式优化 */
.screenshot-img,
.lazy {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.lazy {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.screenshot-item p {
    color: var(--light-text);
    font-weight: 500;
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--glass-blur));
    text-align: center;
}

.download-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 3rem;
}

.download-btn img {
    height: 50px;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: scale(1.05);
}

.system-requirements {
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.system-requirements h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.system-requirements ul {
    list-style: none;
    text-align: left;
}

.system-requirements li {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.system-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--income-green);
    font-weight: bold;
}

/* 支持区域 */
.support {
    padding: 80px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.support-item {
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(255, 149, 0, 0.2);
}

.support-item h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-item p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: var(--secondary-orange);
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(var(--glass-blur));
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--light-text);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-text);
}

.footer-bottom a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-orange);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none; /* 默认隐藏 */
    background: none;
    border: none;
    color: var(--dark-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.language-switcher {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    color: var(--primary-orange);
    background: rgba(255, 149, 0, 0.1);
}

.language-switcher span {
    color: var(--light-text);
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* 导航栏移动端优化 */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; /* 从顶部开始 */
        left: 0;
        width: 100%;
        height: 100%; /* 占据整个屏幕 */
        background: rgba(255, 255, 255, 0.8); /* 更强的背景模糊 */
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center; /* 垂直居中 */
        align-items: center; /* 水平居中 */
        padding: 1rem 0;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%); /* 从上方滑入 */
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 1rem 0; /* 增加菜单项间距 */
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.5rem; /* 增大字体 */
        border-bottom: none; /* 移除下划线 */
    }
    
    .nav-menu a:hover {
        background: rgba(255, 149, 0, 0.1);
        border-radius: var(--glass-radius);
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: block; /* 在移动端显示 */
    }
    
    /* 英雄区域移动端优化 */
    .hero {
        padding: 100px 0 60px;
        min-height: auto; /* 移除最小高度 */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem; /* 调整标题大小 */
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .phone-mockup {
        order: -1; /* 将手机模型移到最上方 */
        margin-bottom: 2rem;
    }
    
    /* 功能特性移动端优化 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    /* 截图区域移动端优化 */
     .screenshots-grid {
         grid-template-columns: 1fr; /* 单列显示 */
         gap: 1.5rem;
     }
     
     .screenshot-item {
         margin: 0 auto;
     }
     
     /* 移动端图片尺寸优化 */
     .app-screenshot {
         max-height: 40vh; /* 移动端进一步限制高度 */
     }
     
     .screenshot-img,
     .lazy {
         max-height: 40vh; /* 移动端进一步限制高度 */
     }
    
    /* 下载区域移动端优化 */
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* 支持区域移动端优化 */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 页脚移动端优化 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    /* 按钮移动端优化 */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    /* 超小屏幕优化 */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .support-item {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 导航栏超小屏幕优化 */
    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .nav-logo-img {
        width: 36px;
        height: 36px;
    }
    
    /* 截图超小屏幕优化 */
     .screenshot-item {
         max-width: 280px; /* 调整宽度 */
     }
     
     /* 超小屏幕图片尺寸优化 */
     .app-screenshot {
         max-height: 35vh; /* 超小屏幕进一步限制高度 */
         max-width: 250px;
     }
     
     .screenshot-img,
     .lazy {
         max-height: 35vh; /* 超小屏幕进一步限制高度 */
         max-width: 200px; /* 调整宽度 */
     }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .screenshot-item:hover,
    .support-item:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(255, 149, 0, 0.15);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 149, 0, 0.1);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero,
    .features,
    .screenshots,
    .download,
    .support {
        background-size: cover;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .download,
    .footer {
        display: none;
    }
    
    .hero,
    .features,
    .screenshots,
    .support {
        background: white;
        color: black;
    }
    
    .feature-card,
    .screenshot-item,
    .support-item {
        border: 1px solid #ccc;
        background: white;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

.feature-card,
.screenshot-item,
.support-item {
    animation: fadeInUp 0.6s ease-out;
}

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

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