/* 全局样式 */
:root {
    --primary-color: #0066CC;
    --secondary-color: #FF6B00;
    --accent-color: #34C759;
    --text-color: #222222;
    --text-light: #666666;
    --bg-color: #f8f8f8;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --card-radius: 16px;
    --button-radius: 8px;
    --transition: all 0.3s ease;
    
    /* 响应式字体大小 */
    --font-size-h1-mobile: 1.6rem;
    --font-size-h1-tablet: 2.5rem;
    --font-size-h1-desktop: 3.5rem;
    
    --font-size-h2-mobile: 1.3rem;
    --font-size-h2-tablet: 2rem;
    --font-size-h2-desktop: 2.5rem;
    
    --font-size-body-mobile: 0.9rem;
    --font-size-body-tablet: 1.1rem;
    --font-size-body-desktop: 1.2rem;
    
    /* 断点 */
    --mobile-breakpoint: 576px;
    --tablet-breakpoint: 768px;
    --desktop-breakpoint: 992px;
    --large-breakpoint: 1200px;
    --xlarge-breakpoint: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 移动设备优化 */
.mobile-device {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 触摸设备可点击区域优化 */
.touch-device .btn,
.touch-device .slider-btn,
.touch-device .nav-links ul li a,
.touch-device .feature-card,
.touch-device .download-card {
    touch-action: manipulation;
    cursor: pointer;
}

/* 触摸设备滚动优化 */
.touch-device {
    -webkit-overflow-scrolling: touch;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--button-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

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

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
}

.btn-download:hover {
    background-color: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-color);
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.fa-bars, .fa-times {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 10px;
}

/* 主页横幅样式 */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
    max-width: 1400px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: var(--font-size-h1-desktop);
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: var(--font-size-h2-desktop);
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: var(--font-size-body-desktop);
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 80%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 功能特点样式 */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* 应用截图样式 */
.screenshots {
    background-color: #f0f7ff;
}

.screenshot-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    gap: 0;
    white-space: nowrap;
    margin-bottom: 30px;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.screenshot-slider:active {
    cursor: grabbing;
}

.screenshot-tab {
    min-width: 100%;
    display: none;
    text-align: center;
    padding: 0 15px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshot-tab.active {
    display: block;
    opacity: 1;
    z-index: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.screenshot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot img {
    max-height: min(600px, 70vh);
    width: auto;
    max-width: min(100%, 400px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot img:hover {
    transform: scale(1.02);
}

.screenshot p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 15px;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: #0055aa;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 下载部分样式 */
.download {
    background-color: white;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.download-card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.download-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.qrcode {
    margin: 20px auto;
    max-width: 150px;
}

/* 关于我们样式 */
.about {
    background-color: #f0f7ff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: white;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f0f7ff;
}

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

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}