/* --- Global Styles & Variables --- */
:root {
    --primary-color: #4A90E2;
    --secondary-color: linear-gradient(to right, #42aef7, #0a89ff);
    --dark-blue: #0d253f;
    --text-color: #333;
    --light-gray: #f4f7f6;
    --white-color: #ffffff;
    --font-family: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
}

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

/* --- Header --- */
.header {
    background: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: #f3f8ff;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 8px;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #aaa;
    padding: 5px;
}

.lang-switcher button.active {
    color: var(--primary-color);
}

.lang-switcher span {
    color: #ddd;
    margin: 0 5px;
}

/* --- Hero Section --- */
.hero-main-content {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(80, 227, 194, 0.4);
}

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

.hero-btn {
    background-color: var(--white-color);
    color: #333;
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn.secondary {
    background: none;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.platforms {
    margin-top: 30px;
    font-size: 1.8rem;
}

.platforms i {
    margin: 0 15px;
    opacity: 0.8;
}

/* --- Info Section (New) --- */
.info-section {
    padding: 60px 0;
    background-color: var(--white-color);
    overflow-x: hidden;
    /* Prevents scrollbar during animation */
}

.info-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.info-text {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.info-image {
    transform: translateX(50px);
}

.info-section.is-visible .info-text,
.info-section.is-visible .info-image {
    opacity: 1;
    transform: translateX(0);
}

.info-text .tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-text h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.info-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.info-image img {
    max-width: 100%;
    height: auto;
}

/* --- Features Section --- */
.features-section {
    padding: 60px 0;
}

.features-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

.hot-app-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--white-color);
}

/* --- Platform Downloads Section (New) --- */
.platform-downloads {
    padding: 60px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.download-button {
    background: linear-gradient(135deg, #6a82fb, #8d70fe);
    color: var(--white-color);
    text-decoration: none;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 130, 251, 0.4);
}

.download-button i {
    font-size: 2rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white-color);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #666;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if answer is longer */
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

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

.download-grid .download-button {
    display: flex;
    /* 或者 block, 根据您的布局需求 */
}


/* 如果是iOS设备，则隐藏其他三个按钮 */
body.is-ios .download-button.platform-pc,
body.is-ios .download-button.platform-android,
body.is-ios .download-button.platform-mac {
    display: none;
}

/* 如果是安卓设备，则隐藏其他三个按钮 */
body.is-android .download-button.platform-pc,
body.is-android .download-button.platform-ios,
body.is-android .download-button.platform-mac {
    display: none;
}

/* On mobile, hide all buttons first */
body.is-mobile .download-grid {
    grid-template-columns: 1fr;
    /* a single column for mobile */
}

body.is-mobile .download-button {
    display: none;
}

/* Then, show only the relevant one */
body.is-ios .platform-ios,
body.is-android .platform-android {
    display: flex;
}

/* If mobile but not iOS/Android, show all as a fallback */
body.is-mobile.is-unknown .download-button {
    display: flex;
}

/* Hide mobile-specific hero button on desktop */
body.is-desktop .hero-btn.mobile-only {
    display: none;
}

/* Hide desktop-specific hero buttons on mobile */
body.is-mobile .hero-btn.desktop-only {
    display: none;
}

/* --- Responsive for Tablets & Desktops --- */
@media (max-width: 991px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .info-section .container {
        flex-direction: column;
        text-align: center;
    }

    .info-text {
        transform: translateY(-30px);
    }

    .info-image {
        margin-top: 30px;
        transform: translateY(30px);
    }

    .features-section .container {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section .subtitle {
        font-size: 1.5rem;
    }

    .features-section .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-section .container {
        grid-template-columns: repeat(4, 1fr);
    }
}





/* 按钮 */
/* --- New Platform Download Buttons Section (with visibility logic) --- */
/* .new-downloads-section {
    padding: 50px 0;
    background-color: var(--light-gray);
} */

.new-downloads-grid {
    display: grid;
    /* We use flexbox here instead of grid to better handle a single visible item */
    display: flex;
    justify-content: left;
    gap: 25px;
    flex-wrap: wrap;
    /* Allows buttons to wrap on smaller screens if needed */
}

.platform-dl-button {
    /* Step 1: Hide all buttons by default */
    display: none;

    /* Step 2: Define button styles */
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    padding: 20px 40px;
    /* Increased padding for a better look */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #3b4a62;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
    min-width: 280px;
    /* Give the button a minimum width */
    text-align: center;
}

.platform-dl-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.platform-dl-button i {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--primary-color);
}


/* --- Visibility Logic --- */
/* Step 3: Show ONLY the correct button based on the body class */
body.is-windows .platform-dl-button.windows,
body.is-mac .platform-dl-button.mac,
body.is-android .platform-dl-button.android,
body.is-ios .platform-dl-button.ios {
    display: flex;
    /* This overrides the 'display: none' default */
}

/* Fallback: If OS is unknown (like Linux), show all buttons */
body.is-unknown .platform-dl-button {
    display: flex;
}

.show-app {
    width: 100%;
    height: 100%;
}

.show-app>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- 响应式并排布局 --- */
.hero-main-content {
    display: flex;
    justify-content: center;
    /* 两侧分开 */
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    /* 与上方文字的间距 */
}

.new-downloads-section {
    flex-grow: 1;
    /* 让下载按钮部分占据多余空间 */
}

.show-app {
    width: 6.1rem;
    height: 6.7rem;
    flex-shrink: 0;
    /* 防止图片被压缩 */
}

.show-app>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 在移动端，改为垂直堆叠 */
@media (max-width: 768px) {
    .hero-main-content {
        flex-direction: column;
        /* 垂直排列 */
        justify-content: center;
    }

    .show-app {
        margin-top: 30px;
        /* 在下载按钮下方增加间距 */
    }
}


/* --- 新的下拉语言选择器样式 --- */
.language-selector {
    position: relative;
    width: 110px;
    font-family: sans-serif;
}

.lang-selected {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f3f8ff;
    /* 深蓝色背景 */
    color: rgb(14, 13, 13);
    border-radius: 8px;
    cursor: pointer;
}

.lang-selected:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    /* 深蓝色背景 */
}

.lang-selected img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}

.lang-selected span {
    font-weight: bold;
    flex-grow: 1;
}

.lang-selected .fa-caret-down {
    transition: transform 0.3s ease;
}

.language-selector.open .fa-caret-down {
    transform: rotate(180deg);
}

.lang-options {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    list-style: none;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 5px 0;
    margin: 0;
    z-index: 10;
    border: 1px solid #ffffff;
}

.language-selector.open .lang-options {
    display: block;
    /* 点击后显示 */
}

.lang-options li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    color: rgb(14, 13, 13);
}

.lang-options li:hover {
    background-color: #c9d8ec;
}

.lang-options li img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}

.lang-options li span {
    font-weight: bold;
}

.hot-apps {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2%;
    margin-right: 2%;
}


/* 2. 定义动画的具体关键帧 */
@keyframes pulse-animation {

    /* 动画开始时 (0%)，保持原始大小 */
    0% {
        transform: scale(1);
    }

    /* 动画进行到一半时 (50%)，放大到原始尺寸的1.1倍 */
    50% {
        transform: scale(1.1);
    }

    /* 动画结束时 (100%)，恢复到原始大小，为下一次循环做准备 */
    100% {
        transform: scale(1);
    }
}

.hot-apps-logo {
    width: 80%;
    animation: pulse-animation 4s ease-in-out infinite;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6.64rem;
    height: 6.64rem;
    z-index: 2;
    /* 确保它在背景图之上 */
}






/* --- 用户评价 Section (轮播滚动版) --- */
.testimonial-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

/* 轮播容器：创建视窗，隐藏超出部分 */
.testimonial-slider-container {
    width: 100%;
    overflow: hidden;
    /* 关键：隐藏轨道上超出视窗的内容 */
    margin-top: 40px;
    /* 可选：为视窗两侧添加渐变遮罩，效果更好 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* 轮播轨道：实际移动的元素 */
.testimonial-slider-track {
    display: flex;
    /* 让卡片横向排列 */
    width: fit-content;
    /* 宽度由内容决定 */
    /* 应用动画 */
    animation: scroll-animation 60s linear infinite;
}

/* 鼠标悬停时暂停动画 */
.testimonial-slider-container:hover .testimonial-slider-track {
    animation-play-state: paused;
}

/* 评价卡片样式调整 */
.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    width: 380px;
    /* 为每个卡片设置固定宽度 */
    margin-right: 30px;
    /* 卡片之间的间距 */
    flex-shrink: 0;
    /* 防止卡片被压缩 */
}

/* 之前已有的样式，保持不变 */
.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--light-gray);
}

.testimonial-author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-blue);
}

.author-platform {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-rating {
    color: #FFC107;
    font-size: 0.9rem;
}

.testimonial-cta {
    text-align: center;
    margin-top: 50px;
}

/* 定义滚动的动画关键帧 */
@keyframes scroll-animation {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 移动的距离是一个轨道宽度的一半（因为我们复制了一份） */
        transform: translateX(-50%);
    }
}















/* --- 全局和基础样式 --- */
:root {
    --primary-color: #007bff;
    --dark-blue: #1a2c48;
    --text-color: #333;
    --header-height: 70px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    /* 为固定的页头留出空间 */
    padding-top: var(--header-height);
}

body.mobile-menu-open {
    overflow: hidden;
    /* 当移动菜单打开时，禁止背景滚动 */
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* --- 页头 Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo img {
    height: 30px;
    /* 根据您的logo调整 */
}


/* --- 桌面导航 --- */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* 下拉子菜单 */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 10px 20px;
}

.submenu li a {
    white-space: nowrap;
}


/* --- 右侧操作区 --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch a {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 5px;
}

.lang-switch img {
    width: 20px;
    border-radius: 50%;
}

.action-icon {
    font-size: 1.1rem;
    color: #555;
    padding: 5px;
}

.btn {
    padding: 8px 40px 8px 40px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-register:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* --- 移动端样式 --- */
.mobile-menu-toggle {
    display: none;
    /* 默认隐藏 */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-blue);
    color: #fff;
    z-index: 1010;
    transform: translateX(100%);
    /* 默认隐藏在右侧 */
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

body.mobile-menu-open .mobile-nav-panel {
    transform: translateX(0);
    /* 滑入屏幕 */
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #3a4c68;
    flex-shrink: 0;
}

.mobile-logo img {
    height: 25px;
}

.mobile-menu-close {
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-menu {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid #3a4c68;
}

.mobile-nav-menu ul li a {
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-nav-footer {
    padding: 20px;
    flex-shrink: 0;
    text-align: center;
}

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

.mobile-nav-buttons .btn {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.lang-switch-mobile {
    margin-top: 20px;
    padding: 10px;
    background-color: #3a4c68;
    border-radius: 8px;
    display: inline-block;
}

.lang-switch-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lang-switch-mobile img {
    width: 20px;
    border-radius: 50%;
}

.social-links-mobile {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links-mobile a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-footer-logo {
    margin-top: 20px;
    opacity: 0.5;
}

.mobile-footer-logo img {
    height: 30px;
}


/* --- 响应式断点 --- */
@media (max-width: 992px) {

    .main-nav,
    .header-actions {
        display: none;
        /* 隐藏桌面导航和操作区 */
    }

    .mobile-menu-toggle {
        display: block;
        /* 显示汉堡按钮 */
    }
}


/* --- 页脚 Footer --- */
/* --- 新的详细页脚样式 --- */
.site-footer-detailed {
    background-color: #1a2c48;
    /* 深蓝色背景 */
    color: #a9b3c9;
    /* 浅灰蓝色文字 */
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    /* 4列布局，按比例分配宽度 */
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    /* 标题大写 */
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.copyright-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-methods img {
    max-width: 200px;
    /* 限制支付图片宽度 */
    margin-bottom: 20px;
}

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

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2c3e5a;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    /* 使用您之前定义的蓝色 */
}

.footer-col.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.links ul li {
    margin-bottom: 12px;
}

.footer-col.links ul a {
    color: #a9b3c9;
    transition: color 0.3s ease;
}

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

.footer-col.contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-col.contact li i {
    margin-right: 12px;
    margin-top: 4px;
    color: #fff;
}

/* --- 页脚响应式适配 --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 平板：2列 */
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* 手机：1列 */
        text-align: center;
        /* 内容居中 */
    }

    .footer-logo,
    .footer-social,
    .footer-col.contact li {
        justify-content: center;
    }

    .footer-col.contact li {
        text-align: left;
    }
}



/* --- 推广伙伴计划页面样式 --- */
/* --- 推广伙伴计划页面样式 (修正并整合版) --- */

/* 顶部Hero区块 */
.affiliate-hero {
    background-color: #1a2c48; /* 深色背景 */
    color: #fff;
    padding: 80px 20px;
    display: flex; /* 确保内容可以垂直居中 */
    align-items: center;
    min-height: 400px;
}

/* 【新增的关键样式】
  定义在桌面端的flex布局，让文字和图片左右并排。
*/
.affiliate-hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.affiliate-hero-text {
    flex: 1;
    max-width: 550px;
    text-align: left; /* 桌面端文字左对齐 */
}

.affiliate-hero-image {
    flex: 1;
    max-width: 500px;
}

.affiliate-hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.affiliate-hero-subtitle {
    font-size: 1.1rem;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.affiliate-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 10px;
}


/* 通用Section样式 */
.affiliate-section {
    padding: 60px 0;
}

/* 优势区块 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 10px;
}


/* 运作流程区块 */
.process {
    background-color: #f8f9fa;
}

.process-flow {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 40px;
    gap: 20px;
}

.process-step {
    text-align: center;
    max-width: 250px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.process-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #ccc;
    margin-top: 50px;
}

/* 底部CTA区块 */
.final-cta {
    /* 【修正】背景色改为深色，否则白色文字看不见 */
    background-color: var(--dark-blue);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}


/* --- 佣金结构区块样式 --- */
.commission-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.commission-section .section-title-wrapper {
    margin-bottom: 50px;
}

.commission-section .section-title-wrapper p {
    max-width: 600px;
    margin: 15px auto 0;
    color: #6c757d;
}

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

.commission-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.commission-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-blue);
}

.commission-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commission-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
}

.commission-card li:last-child {
    border-bottom: none;
}

.commission-percent {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}


/* --- 推广页面响应式适配 (已整合) --- */
@media (max-width: 768px) {
    .affiliate-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .affiliate-hero-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .affiliate-hero-title {
        font-size: 2rem;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}















/* --- 定价页面样式 --- */
.pricing-section {
    padding: 60px 0;
    background-color: #f4f7f6;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    padding: 10px 25px;
    border: none;
    background-color: transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.toggle-btn.active {
    background-color: #fff;
    color: var(--primary-color, #007bff);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.promo-badge {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.pricing-card {
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: var(--primary-color, #007bff);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color, #007bff);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue, #1a2c48);
    margin: 0;
}

.plan-price-original {
    text-decoration: line-through;
    color: #adb5bd;
    margin: 5px 0 10px;
}

.plan-price-monthly {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.discount-badge {
    background-color: #ffe0e6;
    color: #f14668;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.plan-features li i {
    color: #28a745;
    margin-right: 10px;
}

.pricing-footer {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.pricing-footer h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- 定价页面响应式适配 --- */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 定价页面交互样式 --- */

/* 套餐组容器 */
.pricing-groups-container {
    position: relative;
}

/* 默认隐藏所有套餐组 */
.pricing-group {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center; 
}

/* 只显示带有 .active 类的套餐组 */
.pricing-group.active {
    display: flex;
    /* 【新增】让网格内的项目水平居中 */
    justify-content: center; 
}

/* 支付与订单信息区块 */
.payment-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.payment-methods-box h4, .order-summary-box h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-option {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
.payment-option:hover {
    border-color: var(--primary-color, #007bff);
}
.payment-option.active {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 2px var(--primary-color, #007bff);
}
.payment-option img {
    height: 24px;
    margin-right: 10px;
}

.order-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.order-summary-box li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #6c757d;
}
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.order-total span {
    font-size: 1rem;
    font-weight: 600;
}
.order-total strong {
    font-size: 2rem;
    color: var(--primary-color, #007bff);
}
.order-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.order-actions .btn {
    flex-grow: 1;
    padding: 12px;
}

/* --- 响应式适配更新 --- */
@media (max-width: 992px) {
    .pricing-group.active {
        grid-template-columns: repeat(2, 1fr);
    }
    .payment-section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .pricing-group.active {
        grid-template-columns: 1fr;
    }
}
.toggle-btn {
    /* ... 您已有的其他样式，如 padding, border, background 等 ... */

    /* 【请确保或添加以下样式】 */
    display: flex;         /* 1. 将按钮设置为 flex 容器 */
    align-items: center;   /* 2. 让所有子元素（文字、图片）垂直居中对齐 */
    gap: 8px;              /* 3. 在子元素之间创建8像素的间距 */
}

/* 【新增】为按钮内的图片设置一个合适的尺寸 */
.toggle-btn img {
    height: 16px; /* 您可以根据需要调整这个高度 */
    width: auto;
}







/* --- Dashboard 页面样式 --- */
.dashboard-main { padding: 40px 0; }
.dashboard-title { font-size: 2rem; margin-bottom: 30px; }
.dashboard-layout { display: flex; gap: 30px; align-items: flex-start; }

/* 侧边栏 */
.dashboard-sidebar {
    flex: 0 0 220px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    padding: 15px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}
.sidebar-link i { width: 20px; margin-right: 15px; text-align: center; }
.sidebar-link:hover { background-color: #f4f7f6; color: var(--primary-color); }
.sidebar-link.active { background-color: var(--primary-color); color: #fff; }
.sidebar-link.danger { color: #f14668; }
.sidebar-link.danger:hover, .sidebar-link.danger.active { background-color: #f14668; color: #fff; }

/* 内容区 */
.dashboard-content { flex: 1; flex-basis: 0; min-width: 0; }
.dashboard-content .content-panel {
    width: 100%;                  /* !-- 关键 --! 面板宽度必须是100% */
    box-sizing: border-box;       /* 确保 padding 不会撑破宽度 */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.panel-header h3 { margin: 0; font-size: 1.2rem; }
.panel-body { padding: 25px; }
.user-info-bar { display: flex; gap: 30px; color: #6c757d; font-size: 0.9rem; }
.status-expired { color: #f14668; font-weight: bold; }
.panel-actions { display: flex; gap: 10px; margin-bottom: 10px; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid #e9ecef; }
.data-table th { font-weight: 600; color: #6c757d; font-size: 0.9rem; }

/* 空状态 */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px; text-align: center; color: #adb5bd; }
.empty-state i { font-size: 3rem; margin-bottom: 15px; }

/* 加载动画 */
.loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 50px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 删除按钮 loading 状态 */
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin-top: -8px; margin-left: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}


/* 通用的 panel-header 样式，服务于“会员中心”等布局 */
.panel-header {
    display: flex;
    justify-content: space-between; /* 默认将内容两端对齐 */
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

/* 【新增】为设备管理的 header 创建一个特殊的修饰符样式 */
.panel-header.panel-header--metrics {
    justify-content: flex-start; /* 覆盖上面的 space-between，让内容从左开始排列 */
    padding: 0; /* 移除内边距，让子元素来控制 */
}

/* 确保 info-metric 样式正确 */
.info-metric {
    text-align: center;
    flex: 1; /* 【关键】让每个指标块主动撑开，平分空间 */
    padding: 20px 15px; /* 将内边距从父元素移到这里 */
}

/* 在两个指标块之间添加分割线 */
.info-metric + .info-metric {
    border-left: 1px solid #e9ecef;
}

.metric-value { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); }
.invitation-link-box { padding: 20px 25px; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; }
.link-input-group { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.link-input-group input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
.link-input-group button { font-size: 1rem; cursor: pointer; }
.tabs { display: flex; border-bottom: 1px solid #e9ecef; }
.tab-btn { padding: 15px 25px; border: none; background: none; font-weight: 600; cursor: pointer; position: relative; color: #6c757d; }
.tab-btn.active { color: var(--primary-color); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background-color: var(--primary-color); }
.tab-content { display: none; padding: 25px; }
.tab-content.active { display: block; }

/* 响应式 */
@media (max-width: 992px) {
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar { flex: 1 1 auto; width: 100%; }
    .dashboard-content {
        width: 100%;
        min-width: 0;
        padding: 0;
    }
}


/* 移动端菜单中的退出按钮样式 */
.mobile-nav-buttons .btn-logout {
    background-color: transparent;
    border: 1px solid #f14668; /* 危险操作的红色边框 */
    color: #f14668;
}

.mobile-nav-buttons .btn-logout:hover {
    background-color: #f14668;
    color: #fff;
}