/* ============================================
   全局样式重置
   ============================================ */
* {
    padding: 0;
    margin: 0;
    border: 0;
    list-style: none;
    outline: none;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3436;
    background: #f5f6f8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: #e17055;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   顶部导航栏
   ============================================ */
.site-header {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-section {
    flex-shrink: 0;
}

.brand-link {
    display: block;
}

.brand-link img {
    height: 50px;
    width: auto;
}

.main-nav {
    flex: 1;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 0 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    height: 70px;
    line-height: 70px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.nav-item a:hover,
.nav-item-active a {
    background: rgba(255, 255, 255, 0.15);
}

.search-section {
    width: 320px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 3px;
    position: relative;
}

.search-type-box {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.search-type-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #2d3436;
    font-size: 13px;
    padding: 0 18px 0 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    height: 28px;
    border-radius: 14px 0 0 14px;
}

.search-type-select option {
    background: #ffffff;
    color: #2d3436;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px 0 0 20px;
    padding: 0 45px 0 85px;
    height: 32px;
    font-size: 14px;
    color: #2d3436;
}

.search-input::placeholder {
    color: #999999;
}

.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: #f0f0f0;
}

.search-icon {
    display: block;
    width: 16px;
    height: 16px;
    background: url(../img/search.png) center center no-repeat;
    background-size: 16px 16px;
}

/* 如果search.png不存在，使用通用搜索图标样式 */
.search-icon::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: #e17055;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e17055' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e17055' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E");
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb-nav {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 45px;
    display: flex;
    align-items: center;
}

.breadcrumb-label {
    color: #666666;
    font-size: 14px;
    margin-right: 8px;
}

.breadcrumb-link {
    color: #666666;
    font-size: 14px;
}

.breadcrumb-link:hover {
    color: #e17055;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #cccccc;
}

/* ============================================
   主内容区域
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
}

/* ============================================
   首页布局
   ============================================ */
.site-layout-wrapper {
    width: 100%;
}

.hero-showcase,
.mid-showcase,
.bottom-showcase {
    margin-bottom: 35px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.highlight-zone,
.news-corner,
.rank-corner {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.zone-heading {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heading-label {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
}

/* 查看更多链接 */
.view-more-link {
    font-size: 12px;
    color: #999999;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.view-more-link:hover {
    color: #e17055;
}

.view-more-link::after {
    content: "→";
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.view-more-link:hover::after {
    transform: translateX(3px);
}

.label-decor {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #e17055 0%, #d63031 100%);
    border-radius: 2px;
    margin-right: 10px;
}

/* 应用展示列表 */
.app-showcase-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.showcase-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
}

.showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-link-full {
    display: block;
    padding: 18px;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.card-image-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8e8e8;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.card-meta-info {
    margin-bottom: 10px;
}

.meta-category {
    display: block;
    font-size: 12px;
    color: #e17055;
    margin-bottom: 4px;
}

.meta-date {
    display: block;
    font-size: 11px;
    color: #999999;
}

.card-action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.card-action-btn:hover {
    opacity: 0.9;
}

/* 资讯列表 */
.news-article-list {
    padding: 15px 20px;
}

.news-card-prominent {
    margin-bottom: 15px;
}

.news-link-prominent {
    display: block;
}

.news-cover-box {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f5f5f5;
}

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

.news-headline {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-simple {
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

.news-item-simple:first-of-type {
    border-top: none;
}

.news-link-simple {
    display: flex;
    align-items: center;
}

.item-bullet {
    color: #e17055;
    margin-right: 8px;
    font-size: 10px;
}

.item-title {
    font-size: 13px;
    color: #555555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 排行榜 */
.rank-list {
    padding: 15px 20px;
}

.rank-row-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.rank-row-item:hover {
    background: #f8f9fa;
}

.rank-row-item:last-child {
    margin-bottom: 0;
}

.rank-link-row {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.rank-badge {
    width: 26px;
    height: 26px;
    background: #e8e8e8;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-badge-top {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: #ffffff;
}

.rank-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.rank-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info-box {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.rank-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    max-width: 100%;
}

.rank-cat {
    font-size: 11px;
    color: #999999;
    display: block;
}

/* ============================================
   分类筛选
   ============================================ */
.category-filter-zone,
.category-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 25px;
}

.filter-row,
.filter-row-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill,
.filter-item,
.filter-item-box {
    display: block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333333;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-item:hover,
.filter-item-box:hover {
    background: #e8e8e8;
}

.filter-pill-active,
.filter-item-active,
.filter-item-box-active {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #ffffff;
}

.filter-pill-active:hover,
.filter-item-active:hover,
.filter-item-box-active:hover {
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
}

/* ============================================
   文章列表页
   ============================================ */
.article-page-layout,
.article-detail-wrapper,
.article-detail-page {
    width: 100%;
}

.layout-split,
.detail-split-layout,
.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.article-main-zone,
.article-core-content,
.article-content-main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 25px;
}

.zone-header {
    margin-bottom: 20px;
}

.zone-title,
.article-list-title,
.article-list-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3436;
}

.article-card-grid {
    display: grid;
    gap: 18px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.news-card:hover {
    background: #f0f1f3;
}

.news-card-inner {
    display: flex;
    padding: 15px;
}

.news-visual-box,
.article-thumb-box {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
}

.news-visual-box img,
.article-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-inner,
.article-content-box {
    flex: 1;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-heading,
.article-headline {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary,
.article-excerpt {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-zone,
.pagination-area,
.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 6px;
    align-items: center;
}

.pagination-zone::after,
.pagination-area::after,
.pagination-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.pagination-zone a,
.pagination-area a,
.pagination-wrapper a,
.pagination-zone span,
.pagination-area span,
.pagination-wrapper span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #2d3436;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
    float: none !important;
    line-height: 36px;
}

.pagination-zone a:hover,
.pagination-area a:hover,
.pagination-wrapper a:hover {
    border-color: #e17055;
    color: #e17055;
}

.pagination-zone .current,
.pagination-area .current,
.pagination-wrapper .current,
.pagination-zone .active,
.pagination-area .active,
.pagination-wrapper .active {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border-color: #e17055;
    color: #ffffff;
}

.pagination-zone .disabled,
.pagination-area .disabled,
.pagination-wrapper .disabled {
    color: #cccccc;
    cursor: not-allowed;
}

/* 强制分页元素横向排列 */
.pagination-zone *,
.pagination-area *,
.pagination-wrapper * {
    float: none !important;
    display: inline-flex !important;
}

.pagination-zone > *,
.pagination-area > *,
.pagination-wrapper > * {
    display: inline-flex !important;
}

/* 侧边栏 */
.article-side-zone,
.article-side-rail,
.article-sidebar,
.article-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-widget-box,
.side-rank-box,
.sidebar-widget,
.sidebar-rank-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.widget-top-bar,
.widget-header,
.rank-box-header,
.rank-widget-header {
    padding: 15px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-label,
.widget-title,
.rank-box-title,
.rank-widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.widget-list,
.widget-content,
.rank-box-list,
.rank-widget-list {
    padding: 15px 18px;
}

.widget-list-item,
.sidebar-article-item,
.side-list-item,
.sidebar-app-item {
    margin-bottom: 12px;
}

.widget-list-item:last-child,
.sidebar-article-item:last-child,
.side-list-item:last-child,
.sidebar-app-item:last-child {
    margin-bottom: 0;
}

.widget-item-link,
.sidebar-article-link,
.side-item-link,
.sidebar-app-link {
    display: block;
}

.widget-thumb-frame,
.sidebar-article-thumb {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f5f5f5;
}

.widget-thumb-frame img,
.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-item-label,
.sidebar-article-title {
    font-size: 13px;
    font-weight: 500;
    color: #2d3436;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-list-row,
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rank-list-row:last-child,
.rank-item:last-child {
    margin-bottom: 0;
}

.rank-row-link,
.rank-item-link {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.rank-row-thumb,
.rank-icon-wrapper,
.sidebar-icon-wrapper,
.rank-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.rank-row-thumb img,
.rank-icon-wrapper img,
.sidebar-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-row-details,
.rank-item-info,
.sidebar-app-info {
    flex: 1;
    min-width: 0;
}

.rank-row-name,
.rank-item-name,
.sidebar-app-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row-cat,
.rank-item-category,
.sidebar-app-category {
    font-size: 11px;
    color: #999999;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧边栏详情页项目样式 */
.side-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.side-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.side-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.side-item-cat {
    font-size: 11px;
    color: #999999;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   文章详情页
   ============================================ */
.article-top-bar,
.article-header-box {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-head,
.article-page-title {
    font-size: 26px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-meta-strip,
.article-meta-info {
    display: flex;
    align-items: center;
}

.publish-time,
.article-publish-date {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #999999;
}

.time-icon,
.meta-icon {
    width: 14px;
    height: 14px;
    background: #e8e8e8;
    border-radius: 50%;
    margin-right: 6px;
}

.article-text-body,
.article-body-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

/* 文章内容图片：默认居中，限制最大宽度 */
.article-text-body img,
.article-body-content img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 600px;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 文章段落：首行缩进 */
.article-text-body p,
.article-body-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

/* 文章标题 h3：首行缩进 */
.article-text-body h3,
.article-body-content h3 {
    margin: 20px 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-indent: 2em;
}

/* 居中的段落不需要缩进（如图片说明） */
.article-text-body p[style*="text-align: center"],
.article-body-content p[style*="text-align: center"] {
    text-indent: 0;
}

/* 相关应用 */
.related-zone,
.related-apps-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.related-header-box,
.related-header {
    margin-bottom: 15px;
}

.related-heading,
.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
}

.heading-marker,
.title-badge {
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #e17055 0%, #d63031 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.related-grid-list,
.related-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.related-item-card,
.related-app-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.related-item-card:hover,
.related-app-card:hover {
    background: #f0f1f3;
}

.related-card-link,
.related-app-link {
    display: block;
}

.related-icon-frame,
.related-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #e8e8e8;
}

.related-icon-frame img,
.related-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-name,
.related-app-name {
    font-size: 12px;
    font-weight: 500;
    color: #2d3436;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   产品列表页
   ============================================ */
.app-showcase-page,
.listing-page-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 25px;
}

.page-header-box,
.listing-header {
    margin-bottom: 20px;
}

.page-heading,
.listing-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3436;
}

.apps-grid-display,
.app-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.app-item-tile,
.app-listing-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
}

.app-item-tile:hover,
.app-listing-card:hover {
    background: #f0f1f3;
    transform: translateY(-2px);
}

.tile-link-full,
.app-listing-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.tile-image-frame,
.listing-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e8e8e8;
}

.tile-image-frame img,
.listing-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-info-block,
.listing-info {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.tile-name-label,
.listing-app-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.tile-category-tag,
.listing-category-tag {
    display: inline-block;
    font-size: 11px;
    color: #e17055;
    padding: 2px 8px;
    background: rgba(225, 112, 85, 0.1);
    border-radius: 10px;
    margin-bottom: 6px;
}

.tile-publish-time,
.listing-date {
    display: block;
    font-size: 11px;
    color: #999999;
    margin-bottom: 8px;
}

.tile-action-box {
    margin-top: 8px;
}

.action-btn-text,
.listing-download-btn {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #ffffff;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 12px;
    display: inline-block;
}

/* ============================================
   产品详情页
   ============================================ */
.product-detail-page,
.detail-page-container {
    width: 100%;
}

.detail-page-grid,
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.product-main-content,
.detail-main-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 28px;
}

/* 应用展示卡片 */
.product-showcase-card,
.app-info-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 25px;
}

.showcase-left-panel,
.app-info-left {
    display: flex;
    gap: 20px;
    flex: 1;
}

.product-icon-box,
.app-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
}

.product-icon-box img,
.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-group,
.app-meta-data {
    flex: 1;
}

.product-name-text,
.app-name-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
}

.info-row-group,
.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.info-label,
.meta-label {
    font-size: 13px;
    color: #666666;
    margin-right: 8px;
}

.info-text,
.meta-value {
    font-size: 13px;
    color: #2d3436;
}

.showcase-right-panel,
.app-info-right {
    flex-shrink: 0;
}

.download-main-button,
.primary-download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border-radius: 16px;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-main-button:hover,
.primary-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(225, 112, 85, 0.3);
}

.btn-icon-mark,
.btn-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 8px;
}

.btn-label-text,
.btn-text {
    font-size: 16px;
    font-weight: 600;
}

.btn-size-info,
.btn-size {
    font-size: 12px;
    opacity: 0.9;
}

/* 内容导航 */
.content-jump-nav,
.content-anchor-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 10px;
}

.jump-link,
.anchor-link {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666666;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.jump-link:hover,
.anchor-link:hover {
    background: #e8e8e8;
}

.jump-link-active,
.anchor-link-active {
    background: #ffffff;
    color: #e17055;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 区域标题 */
.section-heading-box,
.section-header {
    margin-bottom: 15px;
}

.section-head,
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
}

.head-decor,
.title-marker {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #e17055 0%, #d63031 100%);
    border-radius: 2px;
    margin-right: 10px;
}

/* 截图区域 */
.product-screenshots-section,
.screenshots-section {
    margin-bottom: 25px;
}

.screenshots-scroll-box,
.screenshots-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.screenshots-flex-list,
.screenshots-list {
    display: flex;
    gap: 15px;
}

.screenshot-preview,
.screenshot-item {
    flex-shrink: 0;
    width: 240px;
    height: 430px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

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

/* 介绍区域 */
.product-description-section,
.description-section {
    margin-bottom: 25px;
}

.description-body,
.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

/* 软件内容图片：默认居中，限制最大宽度 */
.description-body img,
.description-content img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 600px;
    height: auto;
    border-radius: 10px;
    margin: 15px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 软件内容段落：首行缩进 */
.description-body p,
.description-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

/* 软件内容标题 h3：首行缩进 */
.description-body h3,
.description-content h3 {
    margin: 20px 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-indent: 2em;
}

/* 居中的段落不需要缩进（如图片说明） */
.description-body p[style*="text-align: center"],
.description-content p[style*="text-align: center"] {
    text-indent: 0;
}

/* 详情表格 */
.product-info-section,
.app-details-table-section {
    margin-bottom: 25px;
}

.info-table-box,
.details-table-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.product-details-table,
.app-info-table {
    width: 100%;
    border-collapse: collapse;
}

.table-row-display,
.table-row {
    display: flex;
}

.row-label,
.table-label {
    width: 100px;
    font-size: 14px;
    color: #666666;
    text-align: right;
    flex-shrink: 0;
}

.row-divider,
.table-divider {
    width: 30px;
    flex-shrink: 0;
}

.row-value,
.table-value {
    flex: 1;
    font-size: 14px;
    color: #2d3436;
}

.row-spacer,
.table-row-spacer {
    height: 15px;
}

/* 下载区域 */
.product-download-section,
.download-section {
    margin-bottom: 0;
}

.download-container,
.download-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
}

.download-app-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.download-links-matrix,
.download-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.download-link-button,
.download-link-item {
    display: block;
    background: #ffffff;
    color: #e17055;
    font-size: 14px;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.download-link-button:hover,
.download-link-item:hover {
    background: #e17055;
    color: #ffffff;
    border-color: #e17055;
}

/* 侧边栏 */
.product-side-rail,
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-recommend-box,
.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.side-box-header,
.widget-header {
    padding: 15px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.side-box-title,
.widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.side-box-list,
.widget-content {
    padding: 15px 18px;
}

/* ============================================
   页脚区域
   ============================================ */
.site-footer {
    background: #2d3436;
    color: #ffffff;
    padding: 45px 0 25px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.footer-brand-link {
    margin-right: 15px;
}

.footer-brand-link img {
    height: 40px;
    width: auto;
}

.footer-slogan {
    font-size: 14px;
    color: #999999;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    display: inline-block;
    color: #999999;
    font-size: 14px;
    margin: 0 12px;
}

.footer-links a:hover {
    color: #e17055;
}

.footer-copyright {
    font-size: 13px;
    color: #666666;
}

.footer-copyright p {
    margin-bottom: 5px;
}

.footer-copyright a {
    color: #666666;
}

.footer-copyright a:hover {
    color: #999999;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

/* ============================================
   404页面
   ============================================ */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-title,
.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #e17055;
    margin-bottom: 20px;
}

.error-subtitle,
.error-message {
    font-size: 24px;
    color: #666666;
    margin-bottom: 40px;
}

.error-btn,
.error-home-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #ffffff;
    font-size: 16px;
    border-radius: 30px;
    transition: transform 0.2s ease;
}

.error-btn:hover,
.error-home-link:hover {
    transform: scale(1.05);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 15px;
    }

    .main-nav {
        margin: 0 20px;
    }

    .nav-item a {
        padding: 0 12px;
        font-size: 15px;
    }

    .search-section {
        width: 250px;
    }

    .showcase-grid,
    .layout-split,
    .detail-split-layout,
    .detail-page-grid,
    .article-detail-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .app-showcase-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-corner,
    .rank-corner,
    .article-side-zone,
    .article-side-rail,
    .article-sidebar,
    .article-detail-sidebar,
    .product-side-rail,
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .brand-section {
        margin-bottom: 10px;
    }

    .main-nav {
        width: 100%;
        margin: 10px 0;
        order: 3;
    }

    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .search-section {
        width: 100%;
        order: 2;
    }

    .app-showcase-list,
    .apps-grid-display,
    .app-listing-grid,
    .related-grid-list,
    .related-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-showcase-card,
    .app-info-card {
        flex-direction: column;
    }

    .showcase-left-panel,
    .app-info-left {
        flex-direction: column;
        text-align: center;
    }

    .product-icon-box,
    .app-icon-large {
        margin: 0 auto 15px;
    }

    .download-main-button,
    .primary-download-btn {
        width: 100%;
        margin-top: 15px;
    }

    .download-links-matrix,
    .download-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   工具类
   ============================================ */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

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

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .breadcrumb-nav,
    .product-side-rail,
    .detail-sidebar,
    .article-side-zone,
    .article-side-rail,
    .article-sidebar,
    .article-detail-sidebar {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }
}
