/* 非关键CSS - 异步加载 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--neutral-white);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--neutral-white);
}

/* Banner 轮播 - 不对称布局 */
.banner {
    /* use min-height so padding can expand the hero without being clipped */
    min-height: 640px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
    /* ensure hero content is not hidden behind a fixed navbar */
    /* remove extra internal top padding so content can truly center vertically;
       header is fixed so we keep outer spacing via margin-top */
    padding-top: 0;
    margin-top: 70px;
    /* make banner a flex container so its child (.container) can be vertically centered reliably */
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(240, 98, 146, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.banner-asymmetric {
    display: grid;
    grid-template-columns: 3fr 2fr;
    height: 100%;
    align-items: center;
    gap: 60px;
}

.banner-main {
    position: relative;
    z-index: 3;
}

.banner-content-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    justify-content: center;
}

.content-layer {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.layer-1 { animation-delay: 0.1s; }
.layer-2 { animation-delay: 0.3s; }
.layer-3 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--neutral-white);
    margin-bottom: 10px;
    line-height: 1.1;
}
.hero-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.banner-logo-wrapper {
    margin-right: 16px;
    flex: 0 0 auto;
}
.banner-logo {
    width: 96px;
    height: auto;
    display: block;
}
.hero-title-block {
    display: flex;
    flex-direction: column;
}

.banner-subtitle {
    font-size: 20px;
    color: var(--secondary-yellow);
    font-weight: 600;
    margin-bottom: 0;
}

.banner-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--neutral-white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
}
/* hero button styled like the floating cards on the right */
.banner .btn-primary.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--neutral-white);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: box-shadow 220ms ease, background 180ms ease;
}
/* animation removed to keep button stationary */
.banner .btn-primary.btn-large svg {
    color: var(--neutral-white);
    width: 20px;
    height: 20px;
}
.banner .btn-primary.btn-large:hover,
.banner .btn-primary.btn-large:focus {
    background: rgba(255,255,255,0.14);
    /* ensure no translation on hover so the button doesn't move */
    transform: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
    outline: none;
}
@media (max-width: 768px) {
    .banner .btn-primary.btn-large {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
}

.banner-side {
    position: relative;
    z-index: 3;
}

.floating-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; }
.card-3 { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card svg {
    color: var(--neutral-white);
}

/* ensure svgs inside badges are treated as block-level so inline-flex centers them perfectly */
.feature-badge svg {
    display: block;
    width: 16px;
    height: 16px;
}

.floating-card div {
    color: var(--neutral-white);
    font-weight: 500;
    font-size: 14px;
}

.banner-stats {
    display: flex;
    gap: 30px;
}

.banner-stats .stat-item {
    text-align: center;
}

.banner-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-yellow);
    display: block;
    margin-bottom: 5px;
}

.banner-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation: pulse 3s ease-in-out infinite reverse;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 漫画分镜边框 */
.comic-frame {
    position: relative;
    background: var(--neutral-white);
    border-radius: 8px;
    overflow: hidden;
}

.comic-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-green);
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 15px 0, 15px 15px, 0 15px);
}

/* 模块样式 */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-title-gray);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--neutral-dark-gray);
    opacity: 0.7;
}

/* 热门漫画 */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.manga-card {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.manga-image {
    height: 200px;
    background: linear-gradient(45deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.manga-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(46, 125, 50, 0.1) 10px, rgba(46, 125, 50, 0.1) 20px);
}

.manga-content {
    padding: 20px;
}

.manga-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    margin-bottom: 10px;
}

.manga-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.tag::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
}

/* Use a slightly different green for small tags so they remain visible when a card is selected.
   Avoid using the primary brand green (#2E7D32) here. */
.tag-green {
    background: #43A047;
    color: var(--neutral-white);
}

.tag-yellow {
    background: var(--secondary-yellow);
    color: var(--neutral-white);
}

.tag-pink {
    background: var(--secondary-pink);
    color: var(--neutral-white);
}

.manga-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--neutral-disabled-gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 功能亮点 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--neutral-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 24px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--neutral-dark-gray);
    line-height: 1.6;
}

.feature-card::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-yellow), var(--primary-green));
    margin: 20px auto 0;
    border-radius: 1px;
}

/* 产品介绍 */
.product-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.intro-card {
    background: var(--neutral-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
}

.intro-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    margin-bottom: 15px;
}

.intro-card p {
    font-size: 15px;
    color: var(--neutral-dark-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-features {
    list-style: none;
    text-align: left;
}

.intro-features li {
    font-size: 14px;
    color: var(--neutral-dark-gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.intro-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: var(--secondary-yellow);
    border-radius: 50%;
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Sidebar software cards: make '查看详情' a unified pill-style button */
.product-sidebar .software-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.04);
    color: var(--primary-green);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: none;
    text-decoration: none;
}
.product-sidebar .software-card .btn:hover {
    background: rgba(0,0,0,0.06);
}

/* Force four stat boxes in one row on wide screens */
@media (min-width: 992px) {
    .product-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    background: var(--neutral-white);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-dark-gray);
    font-weight: 500;
}

/* 热门漫画横向滚动 */
.manga-showcase {
    position: relative;
    overflow: hidden;
}

.manga-scroll-container {
    position: relative;
    overflow: hidden;
}

.manga-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.manga-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.manga-scroll-wrapper.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.manga-scroll-item {
    flex-shrink: 0;
    width: 300px;
}

/* Ensure featured items do not deviate from standard card size */
.manga-scroll-item.featured {
    width: 300px;
}

/* 选中与未选中状态 */
.manga-scroll-item {
    transition: transform 0.25s ease, opacity 0.25s ease;
    outline: none;
}

.manga-scroll-item:not(.selected) {
    opacity: 0.65;
    transform: scale(0.98);
}

.manga-scroll-item.selected {
    opacity: 1;
    transform: scale(1.02);
}

.manga-scroll-item .manga-vertical-card,
.manga-scroll-item .manga-hero-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Carousel-specific fixes: remove tag caret and ensure nav buttons don't overlap card content */
.manga-showcase .tag::after {
    display: none;
}

.manga-showcase .scroll-nav {
    z-index: 1;
}

.manga-showcase .manga-scroll-item {
    position: relative;
    z-index: 2;
}

/* Selected cards should visually match the hero (card1) */
.manga-scroll-item.selected .manga-vertical-card,
.manga-scroll-item.selected .manga-hero-card {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--neutral-white);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transform: translateY(-6px);
    height: 280px;
}

.manga-scroll-item.selected .vertical-content,
.manga-scroll-item.selected .hero-content {
    background: rgba(255,255,255,0.08);
}

.manga-scroll-item.selected .vertical-content h4,
.manga-scroll-item.selected .hero-title,
.manga-scroll-item.selected .vertical-rating {
    color: var(--neutral-white);
}

/* Unselected cards should look like the vertical card (card2) */
.manga-scroll-item:not(.selected) .manga-vertical-card,
.manga-scroll-item:not(.selected) .manga-hero-card {
    background: var(--neutral-white);
    color: var(--neutral-title-gray);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: none;
    height: 280px;
}

.manga-scroll-item:not(.selected) .vertical-content,
.manga-scroll-item:not(.selected) .hero-content {
    background: transparent;
}

.manga-scroll-item:not(.selected) .vertical-content h4,
.manga-scroll-item:not(.selected) .hero-title,
.manga-scroll-item:not(.selected) .vertical-rating {
    color: var(--neutral-title-gray);
}

/*
 * Make hero and vertical cards share the same base layout and size.
 * Unselected state shows neutral white card; selected state will apply hero look.
 */
.manga-hero-card,
.manga-vertical-card {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    color: var(--neutral-title-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.hero-image,
.vertical-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.hero-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neutral-title-gray);
}

.hero-content,
.vertical-content {
    padding: 15px;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hero-tag-primary {
    background: var(--secondary-yellow);
    color: var(--neutral-dark-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.hero-description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero-stats {
    display: flex;
    gap: 15px;
}

.manga-vertical-card {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.manga-vertical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vertical-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.vertical-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vertical-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    margin-bottom: 8px;
}

.vertical-tags {
    display: flex;
    gap: 6px;
    margin-bottom: auto;
}

.vertical-rating {
    font-size: 14px;
    color: var(--secondary-yellow);
    font-weight: 600;
    margin-top: 8px;
}

.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--neutral-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-nav:hover {
    background: var(--primary-green);
    color: var(--neutral-white);
}

.scroll-prev {
    left: 10px;
}

.scroll-next {
    right: 10px;
}

/* (features-hexagon removed) */

/* 砖石布局 */
.product-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure grid rows are equal height so cards in same row match */
.product-masonry {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.product-masonry .masonry-item {
    display: flex;
    align-items: stretch;
}

.product-masonry .masonry-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* fill the grid row */
    height: 100%;
    /* base text color for regular (light) cards */
    color: var(--neutral-title-gray);
}

/* Make card-header and content layout stable */
.product-masonry .card-header {
    flex: 0 0 auto;
}

.product-masonry .masonry-card p {
    flex: 1 1 auto;
}

/* Two-column layout for product details with right sidebar for related software */
.product-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Align left and right column small titles */
.product-column-header h2,
.product-sidebar .sidebar-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #343A40;
}

.product-sidebar .software-card {
    background: var(--neutral-white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.product-sidebar .software-card .software-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
}

.product-sidebar .software-card h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar top3 icons */
.product-sidebar .sidebar-top .top-list {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.product-sidebar .sidebar-top .top-item {
    flex: 1 1 0;
    text-align: center;
}

.product-sidebar .sidebar-top .top-icon {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 12px;
    background: var(--neutral-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 0 auto 6px auto;
    overflow: hidden;
}

.product-sidebar .sidebar-top .top-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.product-sidebar .software-list .software-card {
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    padding: 12px;
    box-shadow: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.product-sidebar .software-list .software-card .software-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 8px;
}

.product-sidebar .software-list .software-card .software-icon {
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-sidebar .software-list .software-card .software-icon img {
    display: block;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 8px;
}

.product-sidebar .software-list .software-card .software-meta h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.product-sidebar .software-list .software-card .software-meta .caption {
    font-size: 12px;
    color: var(--neutral-disabled-gray);
}

/* Force three columns on wide screens so the three feature cards stay in one row */
@media (min-width: 992px) {
    .product-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Place wide items on the second row so the three small feature cards stay in the first row */
    .product-masonry {
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }
    /* ensure the wide card spans the full row and appears after the small cards */
    /* only move the tech-card wide item to the end; leave other wide cards alone */
    .product-masonry .masonry-item.tech-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 99 !important;
    }
    /* ensure the resources card occupies its own full row (but stays in flow) */
    .product-masonry .masonry-item.resources-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 0 !important;
    }
}

@media (max-width: 768px) {
    .product-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .masonry-item,
    .masonry-item.wide,
    .masonry-item.tall {
        width: 100%;
    }
}

@supports (grid-template-rows: masonry) {
    .product-masonry {
        grid-template-rows: masonry;
    }
}

@supports not (grid-template-rows: masonry) {
    .product-masonry {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .masonry-item {
        width: calc(33.333% - 13.333px);
        margin-bottom: 20px;
    }

    .masonry-item.wide {
        /* wide items should occupy full row in fallback too */
        width: 100%;
        order: 0 !important;
    }
    .masonry-item.wide.tech-card {
        order: 99 !important;
    }

    .masonry-item.tall {
        height: auto;
    }
}

.masonry-item {
    break-inside: avoid;
}

.masonry-item.wide {
    /* allow higher-specificity media query to control spanning */
    grid-column: auto;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-card {
    background: var(--neutral-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
}

.masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.masonry-card.gradient-card {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--neutral-white);
}

.masonry-card.accent-card {
    /* changed to green gradient for '技术创新' card */
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--neutral-white);
}
/* center the big title inside the accent (技术创新) card while keeping its content left-aligned */
.masonry-card.accent-card .card-content h3 {
    text-align: center;
    margin-bottom: 28px;
}
/* reduce visual height of the accent card */
.masonry-card.accent-card {
    padding: 16px !important;
    min-height: 180px;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
}

.masonry-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.masonry-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

/* Center text inside product detailed cards */
.product-masonry .masonry-card {
    text-align: center;
}

.product-masonry .card-icon,
.product-masonry .card-icon-large {
    margin-left: auto;
    margin-right: auto;
}

.product-masonry .feature-tags {
    justify-content: center;
}

.product-masonry .masonry-card p {
    text-align: center;
    margin: 0;
}

.feature-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-icon {
    font-size: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.feature-tag {
    /* pill / bubble base */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.18);
    color: var(--neutral-white);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
/* On regular (white) masonry cards, show feature-tag text in dark color */
.product-masonry .masonry-card .feature-tag {
    color: var(--neutral-title-gray);
}
/* Keep white text on gradient/accent cards */
.masonry-card.gradient-card .feature-tag,
.masonry-card.accent-card .feature-tag {
    color: var(--neutral-white);
}
/* increase spacing between card paragraph and the tag pills */
.product-masonry .masonry-card .feature-tags {
    margin-top: 14px;
}
/* Make pill look more subtle on white cards */
.product-masonry .masonry-card .feature-tag {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* For the accent '技术创新' card: left-align and place its tech items in a single row */
.masonry-card.accent-card .card-content {
    text-align: left;
}
.masonry-card.accent-card .tech-features {
    flex-direction: row;
    gap: 28px;
    justify-content: space-between;
    align-items: flex-start;
}
.masonry-card.accent-card .tech-item {
    flex: 1 1 0;
    align-items: flex-start;
    min-width: 0;
}
.masonry-card.accent-card .tech-item h5,
.masonry-card.accent-card .tech-item p {
    text-align: left;
}

.tech-icon {
    font-size: 24px;
    margin-top: 2px;
}

.tech-item h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tech-item p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* 帮助中心选项卡 */
.help-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    background: var(--neutral-white);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 20px 15px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark-gray);
}

.tab-button:hover {
    background: var(--neutral-light-gray);
}

.tab-button.active {
    background: var(--primary-green);
    color: var(--neutral-white);
}

.tab-button svg {
    width: 20px;
    height: 20px;
}

.tabs-content {
    background: var(--neutral-white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 30px;
}

.tab-panel.active {
    display: block;
}

.help-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--neutral-border-gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary-green);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 20px 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    font-size: 14px;
    color: var(--neutral-dark-gray);
    line-height: 1.6;
    margin: 0;
}

.help-contact {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 12px;
    padding: 40px;
    color: var(--neutral-white);
    text-align: center;
}

.help-contact h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.help-contact p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* 资讯模块 */
.news-section {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.news-list {
    padding: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--neutral-border-gray);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--neutral-light-gray);
}

.news-thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}

.news-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 8px 0, 8px 8px, 0 8px);
}

.news-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-title-gray);
    margin-bottom: 8px;
}

.news-content h4 a {
    color: #000000;
    text-decoration: none;
}

.news-meta {
    font-size: 12px;
    color: var(--neutral-disabled-gray);
    margin-bottom: 8px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--neutral-dark-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--neutral-white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.news-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(240, 98, 146, 0.2) 0%, transparent 50%);
}

.news-featured h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.news-featured p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 页脚 */
.footer {
    background: var(--primary-green);
    color: var(--neutral-white);
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    align-items: start;
}
.footer-section {
    text-align: left;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-yellow);
}

/* make footer download button more prominent (flat color, no gradient) */
.footer .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 14px;
    background: var(--neutral-white);
    color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    border: 2px solid rgba(46,125,50,0.14);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    text-decoration: none;
}
.footer .btn-primary svg {
    color: var(--primary-green);
}
.footer .btn-primary:hover,
.footer .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    background: #ffffff;
    outline: none;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.back-to-top::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--neutral-white);
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18,15 12,9 6,15'%3e%3c/polyline%3e%3c/svg%3e") no-repeat center;
    mask-size: contain;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Banner 响应式 */
    .banner-asymmetric {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-desc {
        font-size: 16px;
    }

    .banner-features {
        justify-content: center;
    }

    /* stack logo and title on small screens */
    .hero-header-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .banner-logo-wrapper {
        margin-right: 0;
    }
    .banner-logo {
        width: 80px;
    }

    .floating-cards {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .floating-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        min-width: 80px;
    }

    .banner-stats {
        justify-content: center;
        gap: 40px;
    }

    /* 横向滚动漫画推荐响应式 */
    .manga-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scroll-nav {
        display: none;
    }

    .manga-scroll-item {
        flex-shrink: 0;
        width: 250px;
    }

    .manga-scroll-item.featured {
        width: 320px;
    }

    /* 六边形功能布局响应式 */
    .features-hexagon {
        padding: 40px 20px;
    }

    .hexagon-center {
        display: none;
    }

    .hexagon-item {
        position: static;
        margin-bottom: 20px;
    }

    .hexagon-item.hexagon-1,
    .hexagon-item.hexagon-2,
    .hexagon-item.hexagon-3,
    .hexagon-item.hexagon-4,
    .hexagon-item.hexagon-5,
    .hexagon-item.hexagon-6 {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        right: auto;
    }

    .features-hexagon {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    /* 砖石布局响应式 */
    .product-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .masonry-item,
    .masonry-item.wide,
    .masonry-item.tall {
        width: 100%;
    }

    /* 帮助中心选项卡响应式 */
    .tabs-header {
        flex-direction: column;
        gap: 0;
    }

    .tab-button {
        border-radius: 0;
        border-bottom: 1px solid var(--neutral-border-gray);
    }

    .tab-button:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .tab-button:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-bottom: none;
    }

    .tabs-content {
        border-radius: 0 0 12px 12px;
    }

    /* 动漫资讯响应式 */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-list {
        padding: 20px;
    }

    .news-featured {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner {
        height: auto;
        /* avoid internal top padding so the content can be centered;
           keep outer spacing via margin to compensate for fixed header */
        padding: 0;
        margin-top: 80px;
    }

    .section {
        padding: 40px 0;
    }

    .manga-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neutral-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reduce product card height and reinforce equal-height behaviour */
.product-masonry {
    /* allow grid rows to size to content so cards can center visually */
    grid-auto-rows: auto;
    align-items: start;
}

.product-masonry .masonry-item {
    display: flex;
    /* center the card within the grid row so vertical gaps balance */
    align-items: center;
}

.product-masonry .masonry-card {
    /* let card height be determined by its content, but keep a baseline */
    height: auto !important;
    /* use flex column to ensure vertical centering of multi-line content */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    text-align: center;
    /* ensure cards have a baseline height so centering is visible */
    min-height: 220px;
}

.product-masonry .card-header {
    margin-bottom: 8px !important;
}

.product-masonry .masonry-card p {
    flex: 0 0 auto;
    margin: 8px 0 0 0;
    overflow: hidden;
}

/* inner wrapper to guarantee vertical centering of card contents */
.product-masonry .masonry-card-inner {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/* Force a simple flex row layout on wide screens to avoid grid row-height imbalance */
@media (min-width: 992px) {
    .product-masonry {
        display: flex !important;
        gap: 20px;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .product-masonry .masonry-item {
        width: calc(33.333% - 13.333px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-masonry .masonry-card {
        height: auto !important;
        min-height: 220px;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }
}
