* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

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

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #ff6b6b;
}

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}


nav ul li a.active {
    color: #ff6b6b;
}

.download-btn.active {
    background-color: #ff5252;
}


.download-btn {
    background-color: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #ff5252;
}

.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #fff6f6 0%, #ffe9e9 100%);
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


.hero-image {
    max-width: 800px;
    width: 80%;
    margin: 30px auto 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.secondary-btn {
    background-color: white;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background-color: #fff0f0;
}

.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.feature-icon i {
    color: #ff6b6b;
    font-size: 24px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

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

.screenshots {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.screenshots-slider {
    margin-top: 40px;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
}

.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot {
    min-width: 280px;
    height: 500px;
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.downloads {
    padding: 80px 0;
    background-color: white;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.platform-card {
    text-align: center;
    padding: 20px;
}

.platform-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.platform-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

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

.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff6f6 0%, #ffe9e9 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: #999;
}

.cta {
    padding: 100px 0;
    text-align: center;
    background-color: white;
}

.cta h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.cta p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom p a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.social-links a {
    color: #bbb;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h2 {
        font-size: 32px;
    }

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

    .hero-image {
        width: 95%;
    }

    .section-title h3 {
        font-size: 28px;
    }
}


.footer .beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 确保 SVG 图标颜色跟随文字颜色 */
.platform-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.platform-card {
    text-align: center;
    padding: 20px;
}

.platform-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.platform-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.platform-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.platform-download-btn {
    display: inline-block;
    font-size: 14px;
    padding: 8px 15px;
    margin-top: 10px;
}

/* ==================== QQ登录入口与用户信息样式 ==================== */
/* 统一 QQ 品牌标准色 #12B7F5 */
.qq-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #12B7F5;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    line-height: 1.4;
}

.qq-login-btn:hover {
    background-color: #0ea4dd;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(18, 183, 245, 0.4);
    transform: translateY(-1px);
}

.qq-login-btn i {
    font-size: 16px;
}

/* 导航栏用户头像与下拉菜单 */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.user-profile-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #12B7F5;
    background-color: #f0f0f0;
}

.user-name-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    z-index: 1001;
    border: 1px solid #eee;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu .menu-user-info {
    padding: 8px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.user-dropdown-menu .menu-user-info .menu-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu .menu-user-info .menu-detail {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.user-dropdown-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-dropdown-menu .menu-item:hover {
    background-color: #f8f9fa;
    color: #ff6b6b;
}

.user-dropdown-menu .menu-item.logout-item:hover {
    color: #e74c3c;
}

/* 全屏加载遮罩层 (用于OAuth回调中转) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 16px;
    color: #333;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #12B7F5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

