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

/* 全局样式 */
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    box-shadow: 0 2px 10px rgba(0,102,204,0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.nav-logo img {
    width: 180px;
    height: 50px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 主页面 */
.hero {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 80px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-left {
    order: 1;
    width: 100%;
}

.hero-right {
    order: 2;
    width: 100%;
}

.app-info h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0066cc;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.features-brief {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.feature-tag {
    background-color: #0066cc;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* 下载区域 */
.download-section {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0,102,204,0.15);
    max-width: 450px;
    margin: 0 auto;
}

.qr-download {
    margin-bottom: 30px;
}

.qr-code-box {
    background: white;
    border: 3px solid #e6f3ff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
}

.qr-code-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.qr-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
}

.download-btn {
    display: block;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn img {
    width: 140px;
    height: 40px;
    border-radius: 6px;
}

.phone-preview {
    margin-top: 20px;
}

.phone-preview img {
    width: 100px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,102,204,0.2);
}

/* 二维码占位符样式 */
.qr-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    border: 2px dashed #ddd;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.qr-placeholder p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

/* 下载按钮样式 */
.app-store-btn, .android-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    min-width: 180px;
    height: 45px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.2s ease;
}

.app-store-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.android-btn {
    background: linear-gradient(135deg, #01875F 0%, #00A076 100%);
}

.app-store-btn:hover, .android-btn:hover {
    transform: translateY(-2px);
}

.app-store-btn i, .android-btn i {
    font-size: 1.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-text small {
    font-size: 10px;
    opacity: 0.8;
}

.btn-text strong {
    font-size: 14px;
    font-weight: 600;
}

/* 手机预览占位符 */
.phone-mockup {
    width: 120px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    color: #666;
    border: 1px solid #ddd;
    margin: 0 auto;
}

.phone-mockup i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.phone-mockup p {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

/* 建筑占位符 */
.building-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ebfa 100%);
    border-radius: 15px;
    color: #0066cc;
    border: 1px solid #c8e1f5;
}

.building-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.building-placeholder p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* 功能介绍 */
.about {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #333;
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,102,204,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #0066cc;
    /* FontAwesome图标样式 */
}

.feature-icon i {
    color: #0066cc;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* 关于学会 */
.intro {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.intro-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 联系方式 */
.contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    color: #0066cc;
    /* FontAwesome图标样式 */
}

.contact-icon i {
    color: #0066cc;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
}

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

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,102,204,0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* 主页面 */
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .app-info h1 {
        font-size: 2.2rem;
    }

    .features-brief {
        justify-content: center;
    }

    .download-section {
        max-width: 100%;
        padding: 30px 20px;
    }

    .qr-code-container img {
        width: 120px;
        height: 120px;
    }

    .qr-placeholder {
        width: 120px;
        height: 120px;
    }

    .qr-placeholder i {
        font-size: 2.5rem;
    }

    .phone-mockup {
        width: 100px;
        height: 160px;
    }

    .phone-mockup i {
        font-size: 2rem;
    }

    .building-placeholder {
        height: 200px;
    }

    .building-placeholder i {
        font-size: 3rem;
    }

    .download-buttons {
        align-items: center;
    }

    /* 区块间距调整 */
    .about,
    .intro,
    .contact {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* 网格布局调整 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .stats {
        justify-content: center;
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .app-info h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .feature-tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .download-section {
        max-width: 100%;
        padding: 25px 15px;
    }

    .qr-code-container {
        width: 120px;
        height: 120px;
    }

    .qr-code-container img {
        width: 120px;
        height: 120px;
    }

    .qr-placeholder {
        width: 100px;
        height: 100px;
    }

    .qr-placeholder i {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .qr-placeholder p {
        font-size: 12px;
    }

    .download-btn img {
        width: 120px;
        height: 36px;
    }

    .app-store-btn, .android-btn {
        min-width: 120px;
        height: 36px;
        padding: 6px 12px;
        gap: 8px;
    }

    .app-store-btn i, .android-btn i {
        font-size: 1.2rem;
    }

    .btn-text small {
        font-size: 9px;
    }

    .btn-text strong {
        font-size: 12px;
    }

    .phone-preview img {
        width: 100px;
    }

    .phone-mockup {
        width: 80px;
        height: 140px;
    }

    .phone-mockup i {
        font-size: 1.8rem;
    }

    .phone-mockup p {
        font-size: 11px;
    }

    .building-placeholder {
        height: 180px;
    }

    .building-placeholder i {
        font-size: 2.5rem;
    }

    .building-placeholder p {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .contact-item {
        padding: 20px;
    }

    .stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* 小屏幕轮播画廊适配 */
    .app-gallery {
        width: 140px;
    }

    .gallery-container {
        height: 240px;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .nav-btn.prev {
        margin-left: -10px;
    }

    .nav-btn.next {
        margin-right: -10px;
    }

    .dot {
        width: 5px;
        height: 5px;
    }
}

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

/* 选中文本样式 */
::selection {
    background-color: #0066cc;
    color: white;
}

/* 无障碍优化 */
.nav-link:focus,
.download-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* App截图样式 */
.app-screenshot {
    width: 100px;
}

/* 小屏幕轮播画廊适配 */
.app-gallery {
    width: 160px;
}

.gallery-container {
    height: 280px;
}

.nav-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
}

.nav-btn.prev {
    margin-left: -10px;
}

.nav-btn.next {
    margin-right: -10px;
}

/* App画廊轮播 */
.app-gallery {
    position: relative;
    width: 200px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 导航点 */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0,102,204,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #0066cc;
    transform: scale(1.2);
}

/* 导航按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,102,204,0.2);
}

.nav-btn.prev {
    margin-left: -15px;
}

.nav-btn.next {
    margin-right: -15px;
} 