/* 二次元粉色系模板样式 */

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    min-height: 100vh;
}

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

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 当横幅公告显示时，导航栏下移 */
.navbar.with-banner {
    top: 50px;
}

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

.navbar-brand a {
    text-decoration: none !important;
    color: #ff69b4 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
    padding: 0;
}

.navbar-menu .nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 15px;
    border-radius: 25px;
}

.navbar-menu .nav-link:hover {
    color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
    transform: translateY(-2px);
}

.navbar-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 15px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #ffb6c1);
    transition: width 0.3s ease;
}

.navbar-menu .nav-link:hover::after {
    width: calc(100% - 30px);
}

.download-buttons-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff69b4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    color: #ff1493;
    transform: rotate(90deg);
}

/* 移动端菜单样式 */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-right: 1px solid rgba(255, 105, 180, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.show {
        left: 0;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu .nav-link {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 8px;
    }
    
    .navbar-menu .nav-link:hover::after {
        width: calc(100% - 40px);
        left: 20px;
    }
    
    .download-buttons-nav {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    
    /* 当横幅公告显示时，移动端菜单也下移 */
    .navbar.with-banner .navbar-menu {
        top: 120px;
        height: calc(100vh - 120px);
    }
}

/* 英雄区域样式 */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #fff0f5 0%, #ffffff 70%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

/* 英雄区域移动端适配 */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        align-items: center;
    }
    
    .hero-downloads {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-downloads {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #ff69b4;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
    border-color: #ff69b4;
}

.btn-download i {
    font-size: 2.5rem !important;
    width: auto !important;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7), 0 0 20px rgba(255, 105, 180, 0.5), 0 0 30px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.btn-download:hover i {
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.9), 0 0 25px rgba(255, 105, 180, 0.7), 0 0 35px rgba(255, 105, 180, 0.5);
}

.btn-download div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-download strong {
    color: #ff69b4;
    font-size: 1rem;
}

.btn-download-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #ff69b4;
    border: 2px solid #ffb6c1;
    text-decoration: none;
}

.btn-download-nav:hover {
    transform: scale(1.1);
    border-color: #ff69b4;
}

/* 英雄图片区域 */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
    padding: 15px;
    border: 8px solid #f0f0f0;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* 功能特色区域 */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #ff69b4;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.feature-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem !important;
}

.feature-card h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 应用截图区域 */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
}

.screenshots-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.screenshots-carousel {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.1);
    background: white;
    padding: 1rem;
}

.screenshots-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.screenshot-item {
    min-width: calc(50% - 0.5rem);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.main-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ffb6c1;
    color: #ff69b4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: #ff69b4;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-left {
    left: -25px;
}

.carousel-control-right {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    transform: scale(1.2);
}

/* 统计数据区域 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffebf3 0%, #ffe6ee 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem !important;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* 客户评价区域 */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 2rem;
    color: #ffb6c1;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: #ff69b4;
    margin-bottom: 0.25rem;
}

.testimonial-info .testimonial-role {
    color: #999;
    font-size: 0.9rem;
}

.testimonial-rating {
    margin: 0.25rem 0;
}

/* 联系我们区域 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem !important;
    color: #ff69b4;
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem !important;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #ff69b4;
    transform: translateY(-2px);
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright, .footer-beian {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
}

/* 下载密码验证弹窗 */
.download-password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.download-password-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
    text-align: center;
}

.download-password-content h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.download-password-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.download-password-content input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ffb6c1;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

.download-password-content input:focus {
    border-color: #ff69b4;
}

.error-message {
    color: #f56c6c;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .navbar-menu.show {
        display: flex;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        align-items: center;
    }
    
    .hero-downloads {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .carousel-control-left {
        left: 10px;
    }
    
    .carousel-control-right {
        right: 10px;
    }
    
    .screenshot-item {
        min-width: calc(100% - 1rem);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-download {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .btn-download i {
        font-size: 2rem !important;
    }
    
    .btn-download div {
        text-align: center;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons-nav {
        display: none;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
}

/* Font Awesome 7 图标样式修复 */
.fa, .fas, .far, .fal, .fab, .fa-brands, .fa-classic, .fa-regular, .fa-solid {
    font-family: 'Font Awesome 7 Free' !important;
    font-weight: 900 !important;
    line-height: inherit !important;
    vertical-align: middle !important;
    width: auto !important;
    font-size: inherit !important;
}

/* 移除i标签的字体大小继承，直接设置具体大小 */
i.fab,
i.fas,
i.far,
i.fa-brands,
i.fa-regular,
i.fa-solid {
    font-size: inherit !important;
}

/* 导航栏图标大小 */
.navbar-brand i {
    font-size: 2rem !important;
}

/* 英雄区域图标大小 */
.hero-icon i {
    font-size: 4rem !important;
}

/* 统计项图标大小 */
.stat-item i {
    font-size: 2.5rem !important;
}

/* 下载按钮图标大小 */
.btn i {
    font-size: inherit !important;
}

.btn-download i {
    font-size: 2.5rem !important;
}

/* 下载区域按钮图标大小 */
.download-buttons .btn-download i {
    font-size: 2.5rem !important;
}

/* 下载按钮图标样式 */
.btn-download-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 联系项图标大小 */
.contact-item i {
    font-size: 1.8rem !important;
}

/* 页脚图标大小 */
.footer-logo i {
    font-size: 2rem !important;
}

/* 回到顶部按钮图标大小 */
.back-to-top i {
    font-size: 1.5rem !important;
}

/* 功能图标大小 */
.feature-icon i {
    font-size: 2.5rem !important;
}

/* 测试评价星级大小 */
.testimonial-rating i {
    font-size: 1.2rem !important;
}

/* 截图轮播控制图标大小 */
.carousel-control i {
    font-size: 18px !important;
}