/* Reset & Base Styles
---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(125deg, #3000bf, #3bc3ed, #2400b4);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: #fff;
    padding-top: 40px;
}

/* Animations
---------------------------------------- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes starTwinkle {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-250px); opacity: 0.6; }
}

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

/* Background Effects
---------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255,255,255,0.1) 1px, transparent 2px),
        radial-gradient(2px 2px at 30% 30%, rgba(255,255,255,0.2) 1px, transparent 3px),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.2) 1px, transparent 3px);
    background-size: 250px 250px;
    animation: starTwinkle 10s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Download Page (dow.html) Styles
---------------------------------------- */
.main {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8vw 5vw;
    margin: 0 auto;
    max-width: 1200px;
}

/* App Header */
.app-header {
    margin-bottom: 8vw;
}

.app-logo {
    width: 25vw;
    max-width: 160px;
    margin: 0 0 4vw;
    border-radius: 25%;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

.app-title {
    font-size: 6vw;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Download Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 4vw;
    margin: 6vw auto;
    border-radius: 16px;
    padding: 3vw 5vw;
    text-decoration: none;
    max-width: 400px;
    width: 80%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
}

.download-btn .icon {
    width: 8vw;
    height: 8vw;
    margin-right: 3vw;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.download-btn .text {
    text-align: left;
    flex-grow: 1;
}

.download-btn .text span {
    display: block;
    font-size: 0.7em;
    opacity: 0.7;
}

.download-btn .text b {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
}

/* Button Variants */
.android-btn {
    background: linear-gradient(45deg, #fff, #e8f5e9);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.android-btn .icon svg {
    fill: #3ddc84;
}

.android-btn .text {
    color: #2e7d32;
}

.ios-btn {
    background: linear-gradient(45deg, #fff, #f5f5f7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ios-btn .icon svg {
    fill: #000000;
}

.ios-btn .text {
    color: #1d1d1f;
}

/* Installation Guide */
.install-guide {
    text-align: left;
    padding: 6vw;
    margin: 15vw auto 5vw;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.install-guide h2 {
    margin: 0 0 4vw;
    font-size: 5vw;
    color: #1a1a1a;
}

.install-guide-content {
    font-size: 3.8vw;
    color: #4a4a4a;
    line-height: 2;
}

.install-guide-content p {
    margin: 2vw 0;
}

/* Home Page (home.html) Styles
---------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding:80px 60px;
}

.hero-text {
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.desc-en {
    font-size: 1.1em !important;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
}

/* Hero Download Button */
.hero-download-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 30px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 250px;
}

.hero-download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-download-btn .icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
}

.hero-download-btn .text {
    text-align: left;
    flex-grow: 1;
}

.hero-download-btn .text span {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    text-align: left;
}

.hero-download-btn .text b {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

/* App Preview Image */
.hero-image {
    position: relative;
}

.app-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(2deg);
}

/* Responsive Design
---------------------------------------- */
/* Tablet & Desktop */
@media (min-width: 768px) {
    .main {
        padding: 60px 20px;
    }

    .app-header {
        margin-bottom: 50px;
    }

    .app-logo {
        width: 120px;
        margin-bottom: 20px;
    }

    .app-title {
        font-size: 36px;
    }

    .download-btn {
        font-size: 18px;
        margin: 25px auto;
        padding: 20px 30px;
        border-radius: 12px;
        width: 360px;
    }

    .download-btn .icon {
        width: 32px;
        height: 32px;
        margin-right: 15px;
    }

    .install-guide {
        padding: 40px;
        margin: 60px auto;
        max-width: 600px;
        border-radius: 16px;
    }

    .install-guide h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .install-guide-content {
        font-size: 16px;
    }

    .install-guide-content p {
        margin: 15px 0;
    }
}

/* Mobile */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    .desc-en {
        font-size: 0.9em !important;
    }

    .download-buttons {
        justify-content: center;
    }

    .app-preview {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-download-btn {
        margin: 0 auto;
    }

    /* 关于我们部分移动端优化 */
    .about-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-info {
        width: 100%;
    }

    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 服务介绍部分移动端优化 */
    .services-flex {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .service-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .service-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* 联系我们部分移动端优化 */
    .contact-info {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    .contact-card {
        width: 100%;
        max-width: 300px;
        padding: 20px;
    }

    /* 通用标题移动端优化 */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 1.3rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* 内容间距移动端优化 */
    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2em;
		margin-top: 80px;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .app-preview {
        max-width: 250px;
		margin: 35px;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-title {
        font-size: 1.1rem;
    }

    .contact-detail {
        font-size: 0.9rem;
    }

    .about-card {
        padding: 1.2rem;
        margin: 1rem 15px;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.2rem;
        margin: 0;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

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

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .app-preview {
        max-width: 200px;
    }

    .section {
        padding: 30px 0;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .main {
        padding: 80px 20px;
    }

    .app-logo {
        width: 140px;
    }

    .app-title {
        font-size: 42px;
    }

    .download-btn {
        width: 400px;
    }

    .install-guide {
        max-width: 700px;
    }
}

/* 通用样式 */
.section {
    padding: 50px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3bc3ed;
}

.section + .section {
    border-top: 1px solid #f0f0f0;
    background: rgba(255,255,255,0.9);
}

/* 关于我们 */
.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
}

.about-info {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
}

/* 服务介绍 */
.services-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '•';
    color: #36a1ef;
    position: absolute;
    left: 0;
}

/* 联系我们 */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
}

.contact-form-wrapper {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #36a1ef;
    outline: none;
}

.submit-btn {
    background: #36a1ef;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #36a1ef;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 400px;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-top: 10px;;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #36a1ef;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #36a1ef;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

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

.nav-btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 调整锚点位置，补偿固定导航栏的高度 */
section[id] {
    scroll-margin-top: 80px;
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 60px 0 20px;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

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

.footer-section {
    padding: 0 15px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a,
.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.social-link:hover {
    color: white;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 10px 0;
}

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

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

.section-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
}

.contact-title {
    font-size: 1.3rem;
    color: #333;
    margin: 1rem 0;
}

.contact-detail {
    font-size: 1.1rem;
    color: #444;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* 如果需要调整图片圆角 */
.about-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}


/* 通用间距调整 */
@media (max-width: 968px) {
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        margin-bottom: 30px;
    }
}