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

:root {
    --primary-color: #FF9FB2;
    --primary-hover: #FF80A0;
    --secondary-color: #ff6b6b;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --text-color: #4a5568;
    --text-light: #718096;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    transition: all 0.3s ease;
}

.menu-open {
    transform: translateY(0) !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.download-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.download-btn::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: all 0.5s ease;
}

.download-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.download-btn::after {
    display: none;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 159, 178, 0.1);
    transform: scale(1.1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 英雄区域样式 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/app-icon.svg') no-repeat right -100px top 0;
    background-size: 500px;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.download-section {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 159, 178, 0.3);
}

.btn-primary::before,
.btn-secondary::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: all 0.5s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 159, 178, 0.4);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) translateY(-10px);
}

/* 通用标题样式 */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 特色功能样式 */
.features {
    padding: 100px 0;
    background-color: white;
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 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: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 30px;
    color: var(--primary-color);
}

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

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

/* 应用展示样式 */
.app-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.screenshots {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.screenshots img {
    max-width: 45%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.screenshots img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* 关于应用样式 */
.about {
    padding: 100px 0;
    background-color: white;
}

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

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-content h2::after {
    left: 0;
    transform: none;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background-color: rgba(108, 99, 255, 0.1);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 用户评价样式 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.user-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.prev-btn::before,
.next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 159, 178, 0.3), transparent);
    transition: all 0.5s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 159, 178, 0.3);
}

.prev-btn:hover::before,
.next-btn:hover::before {
    left: 100%;
}

.prev-btn:active,
.next-btn:active {
    transform: translateY(0) scale(0.95);
}

.prev-btn:focus,
.next-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* 下载区域样式 */
.download {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
}

.download h2::after {
    background-color: white;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: transparent;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.download-app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.download-app-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.download-clicked {
    transform: scale(0.95);
}

.store-icon {
    width: 200px;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.download-app-btn:hover .store-icon {
    filter: brightness(1.05) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.download-app-btn.apple:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.download-app-btn.google:hover {
    background-color: rgba(255, 159, 178, 0.05);
}

.app-info {
    margin-top: 40px;
    text-align: center;
}

.app-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.app-details dd {
    margin: 0;
    padding: 10px 15px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
    padding-left: 5px;
}

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-icp a:hover {
    color: white;
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中屏幕平板设备 */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .feature-cards {
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 小平板和大屏手机 */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
        text-align: center;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .download-section {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .screenshots img {
        max-width: 80%;
    }
    
    .about .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-icon {
        width: 180px;
        height: auto;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 手机设备 */
@media (max-width: 576px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .screenshots img {
        max-width: 90%;
    }
    
    .stat-item {
        padding: 12px 15px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.85rem;
    }
    
    .testimonial-item {
        padding: 25px 20px;
    }
    
    .testimonial-item p {
        font-size: 0.9rem;
    }
    
    .store-icon {
        width: 160px;
        height: auto;
    }
    
    .app-details {
        gap: 10px;
    }
    
    .app-details dd {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        padding: 20px 0;
        gap: 10px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .download-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .download-app-btn {
        text-align: center;
        padding: 8px;
    }
    
    .download-buttons {
        gap: 15px;
        margin-top: 30px;
    }
    
    .store-icon {
        width: 140px;
        height: auto;
    }
    
    .screenshots img {
        max-width: 100%;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-controls {
        gap: 15px;
        margin-top: 30px;
    }
}

/* 动画和过渡效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

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

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

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

/* 防止滚动时背景固定 */
.body-fixed {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 图片加载动画 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 焦点样式 */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}