/* Bulma颜色主题覆盖 - 统一为蓝色主题 */
:root {
    /* 覆盖Bulma默认的primary颜色 */
    --bulma-primary: #1976d2;
    --bulma-primary-h: 207deg;
    --bulma-primary-s: 90%;
    --bulma-primary-l: 42%;
    --bulma-primary-invert: #ffffff;

    /* 覆盖Bulma默认的success颜色，改为蓝色系 */
    --bulma-success: #1e88e5;
    --bulma-success-h: 207deg;
    --bulma-success-s: 74%;
    --bulma-success-l: 51%;
    --bulma-success-invert: #ffffff;

    /* 覆盖Bulma默认的link颜色 */
    --bulma-link: #1976d2;
    --bulma-link-h: 207deg;
    --bulma-link-s: 90%;
    --bulma-link-l: 42%;
    --bulma-link-invert: #ffffff;
}

/* 强制覆盖Bulma的颜色变量 */
.is-primary {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}

.has-background-primary {
    background-color: #1976d2 !important;
}

.has-text-primary {
    color: #1976d2 !important;
}

.button.is-primary {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
}

.button.is-primary:hover,
.button.is-primary.is-hovered {
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
}

.button.is-primary:active,
.button.is-primary.is-active {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

.navbar.is-primary {
    background-color: #1976d2 !important;
}

.navbar.is-primary .navbar-brand>.navbar-item,
.navbar.is-primary .navbar-brand .navbar-link {
    color: #ffffff !important;
}

.navbar.is-primary .navbar-brand>a.navbar-item:focus,
.navbar.is-primary .navbar-brand>a.navbar-item:hover,
.navbar.is-primary .navbar-brand .navbar-link:focus,
.navbar.is-primary .navbar-brand .navbar-link:hover {
    background-color: #1565c0 !important;
    color: #ffffff !important;
}

.hero.is-primary {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}

.tag.is-primary {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}

.notification.is-primary {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}

.progress.is-primary::-webkit-progress-value {
    background-color: #1976d2 !important;
}

.progress.is-primary::-moz-progress-bar {
    background: #1976d2 !important;
}

.progress.is-primary {
    background-color: rgba(25, 118, 210, 0.2) !important;
}

/* 将success颜色也改为蓝色系，保持一致性 */
.button.is-success {
    background-color: #1e88e5 !important;
    border-color: #1e88e5 !important;
    color: #ffffff !important;
}

.button.is-success:hover,
.button.is-success.is-hovered {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
}

.has-text-success {
    color: #1e88e5 !important;
}

.notification.is-success {
    background-color: #1e88e5 !important;
    color: #ffffff !important;
}

/* 自定义主题色彩 */
:root {
    --primary-color: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --secondary-color: #1e88e5;
    --info-color: #29b6f6;
    --background-light: #f8f9fa;
}

/* 自定义主色调 */
.is-primary {
    background-color: var(--primary-color) !important;
}

.has-text-primary {
    color: var(--primary-color) !important;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 导航栏样式 */
.navbar.is-fixed-top {
    backdrop-filter: blur(10px);
    background: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.2);
}

/* 覆盖Bulma导航栏图片高度限制，允许更大的图标 */
.navbar-item img {
    max-height: 48px !important;
    margin-right: 10px;
}

/* 导航栏图标样式 - 大圆角矩形 */
#appIcon {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#appIcon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero区域样式调整 - 白色背景 */
.hero.is-white {
    background: #ffffff;
}

/* 手机样机样式 */
.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
}

.phone-mockup img {
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
}

/* Hero截图轮播 */
.hero-screenshot-carousel {
    max-width: 350px;
    margin: 0 auto;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-swiper .phone-mockup {
    transition: transform 0.3s ease;
}

.hero-swiper .swiper-slide-active .phone-mockup {
    transform: scale(1.02);
}

.hero-pagination {
    position: relative !important;
    margin-top: 20px;
}

.hero-pagination .swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.3;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.hero-next,
.hero-prev {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.9);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-next:hover,
.hero-prev:hover {
    background: white;
    transform: scale(1.1);
}

/* 功能卡片增强 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 截图轮播样式 */
.screenshot-carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.screenshot-swiper {
    padding-bottom: 3rem;
}

.screenshot-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.screenshot-swiper .swiper-slide img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot-swiper .swiper-slide img:hover {
    transform: scale(1.05);
}

.screenshot-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}

.screenshot-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.screenshot-swiper .swiper-button-next,
.screenshot-swiper .swiper-button-prev {
    color: var(--primary-color);
    font-weight: bold;
}

/* 下载选项卡片 */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.platform-icon.android {
    color: var(--secondary-color);
    /* 改为蓝色 */
}

.platform-icon.ios {
    color: var(--primary-dark);
    /* 改为深蓝色 */
}

/* 版本历史样式 */
.version-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.version-platform-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.version-platform-tag.android {
    background-color: #e3f2fd;
    /* 改为浅蓝色 */
    color: var(--secondary-color);
    /* 改为蓝色 */
}

.version-platform-tag.ios {
    background-color: #e8eaf6;
    /* 改为浅蓝紫色 */
    color: var(--primary-dark);
    /* 改为深蓝色 */
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 顶部导航栏间距调整 */
body {
    padding-top: 52px;
}

/* 手机端优化 */
@media screen and (max-width: 768px) {

    /* Hero区域调整 */
    .hero.is-large .hero-body {
        padding: 4rem 1.5rem;
    }

    .title.is-1 {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }

    .subtitle.is-4 {
        font-size: 1.25rem !important;
    }

    .phone-mockup {
        max-width: 250px;
        margin-top: 2rem;
    }

    /* 按钮堆叠 */
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .buttons .button {
        margin-bottom: 0.75rem;
    }

    /* 截图轮播移动端优化 */
    .screenshot-swiper .swiper-slide img {
        max-width: 220px;
    }

    .screenshot-swiper .swiper-button-next,
    .screenshot-swiper .swiper-button-prev {
        display: none;
        /* 移动端隐藏箭头，使用滑动 */
    }

    /* 功能卡片移动端 */
    .feature-card {
        margin-bottom: 1rem;
    }

    /* 下载卡片移动端 */
    .download-card {
        margin-bottom: 1rem;
    }

    /* 导航栏移动端优化 */
    .navbar-burger {
        color: white;
    }

    .navbar-menu {
        background-color: var(--primary-color);
    }

    .navbar-menu .navbar-item {
        color: white;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    .hero.is-large .hero-body {
        padding: 3rem 1rem;
    }

    .title.is-1 {
        font-size: 2rem !important;
    }

    .phone-mockup {
        max-width: 200px;
    }

    .screenshot-swiper .swiper-slide img {
        max-width: 180px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* 平板端优化 */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .screenshot-swiper .swiper-slide img {
        max-width: 250px;
    }

    .phone-mockup {
        max-width: 280px;
    }
}

/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画优化 */
.modal .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

/* 截图画廊 - 保留原有的网格布局作为备用 */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 250px;
    width: 100%;
    height: auto;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

/* 下载选项卡片样式 */
.download-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.download-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.1);
    transform: translateY(-5px);
}

.download-option.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fbff, #e3f2fd);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.platform-icon.android {
    color: var(--secondary-color);
}

.platform-icon.ios {
    color: var(--dark-color);
}

.version-info {
    margin: 1.5rem 0;
}

.version-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.file-size {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.download-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.download-btn.is-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.download-btn.is-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.download-btn.is-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.download-btn.is-dark:hover {
    background-color: #263238;
    border-color: #263238;
    transform: scale(1.05);
}

/* 版本历史样式 */
.version-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.version-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.version-tag.android {
    background: #e3f2fd;
    color: var(--secondary-color);
}

.version-tag.ios {
    background: #f5f5f5;
    color: var(--dark-color);
}

.version-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: var(--text-color);
    line-height: 1.6;
}

.no-versions {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-versions .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 下载下拉菜单样式 */
#downloadDropdown .dropdown-menu {
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

#downloadDropdown .dropdown-content {
    padding: 0.5rem 0;
}

#downloadDropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

#downloadDropdown .dropdown-item:last-child {
    border-bottom: none;
}

#downloadDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.download-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.download-dropdown-item:hover {
    color: inherit;
}

.download-item-info {
    flex: 1;
}

.download-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.download-item-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.download-item-icon {
    font-size: 1.5rem;
    margin-left: 1rem;
    color: var(--primary-color);
}

.download-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}