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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 446px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header with App Icon and Title */
.header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e5e5e7;
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.app-icon {
    flex-shrink: 0;
}

.icon-background {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-letter {
    font-size: 64px;
    font-weight: 900;
    color: #FF6B9D;
    text-shadow: 2px 2px 0px white;
    z-index: 2;
    position: relative;
}

.icon-wings { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.wing { position: absolute; width: 80px; height: 40px; background: rgba(255,255,255,0.8); border-radius: 50%; }
.left-wing { top: 15px; left: -25px; transform: rotate(-15deg); }
.right-wing { top: 15px; right: -25px; transform: rotate(15deg); }

.icon-sparkles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; }
.sparkle { position: absolute; font-size: 16px; color: white; animation: sparkle 2s infinite; }
.sparkle:nth-child(1){ top:20px; left:20px; animation-delay:0s; }
.sparkle:nth-child(2){ top:35px; right:25px; animation-delay:.5s; }
.sparkle:nth-child(3){ bottom:25px; left:30px; animation-delay:1s; }
@keyframes sparkle { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }

.app-title-section { flex: 1; padding-top: 4px; }
.app-title { font-size: 18px; font-weight: 700; color: #1d1d1f; margin-bottom: 4px; line-height: 1.2; }
.app-subtitle { font-size: 12px; color: #86868b; font-weight: 400; line-height: 1.3; }

/* App Info */
.app-info { display: flex; justify-content: space-between; align-items: stretch; padding: 20px; background: white; border-bottom: 1px solid #e5e5e7; }
.info-column { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.info-column:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: #e5e5e7; }
.info-label { font-size: 11px; color: #86868b; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.info-value { font-size: 20px; font-weight: 700; color: #1d1d1f; margin-bottom: 6px; }
.info-subtext { font-size: 12px; color: #86868b; font-weight: 400; }
.stars { display: flex; gap: 2px; margin-top: 4px; }
.star { font-size: 14px; color: #d2d2d7; }
.star.filled { color: #FFD700; }
.star.half-filled { color: #FFD700; opacity: .6; }

.developer-icon { width: 32px; height: 32px; background: #f2f2f2; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.person-silhouette { width: 16px; height: 16px; background: #86868b; border-radius: 50%; position: relative; }
.person-silhouette::after { content: ''; position: absolute; bottom: -8px; left: 2px; width: 12px; height: 8px; background: #86868b; border-radius: 6px 6px 0 0; }

/* Preview Section */
.preview-section { padding: 30px 20px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; text-align: left; color: #1d1d1f; }

/* 横向滚动，纵向高度不变 */
.preview-carousel { position: relative; overflow-x: auto; overflow-y: hidden; background: white; border-radius: 12px; padding-bottom: 6px; }
.preview-images { display: flex; gap: 16px; /* 取消transform过渡 */ }
.preview-item { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; }
.preview-img { width: 335px; height: 768px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
/* 隐藏预览图片标签名 */
.device-label { display: none; }
.device-icon { font-size: 14px; }
.device-text { font-weight: 500; }

/* Description */
.description-section { padding: 0 20px 30px; }
.description { font-size: 14px; line-height: 1.7; color: #1d1d1f; text-align: justify; }

/* Developer Info */
/* 开发者信息：左对齐更紧凑 */
.developer-info { text-align: left; padding: 12px 20px; background: white; margin: 0; border-bottom: 1px solid #e5e5e7; border-radius: 0; }
.developer-name-large { font-size: 14px; font-weight: 600; color: #007AFF; margin-bottom: 2px; }
.developer-title { font-size: 12px; color: #86868b; }

/* Ratings & Reviews 顶部线与间距 */
.reviews-section { border-top: 1px solid #e5e5e7; margin-top: 16px; padding: 0 0 30px; }

/* 评分数字与说明字号 */
.overall-rating { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 20px 0; background: white; border-radius: 12px; }
.rating-left { text-align: left; display: flex; flex-direction: column; justify-content: center; margin-right: 30px; }
.overall-score { font-size: 64px; font-weight: 700; color: #1d1d1f; line-height: 1; }
.overall-text { font-size: 16px; color: #86868b; }

/* 星级条形图：整体高度48px，居右对齐 */
.rating-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.star-bars { display: flex; flex-direction: column; justify-content: space-between; height: 48px; margin: 0; width: 80%; max-width: 320px; }
.star-bar { display: flex; align-items: center; gap: 6px; }
.star-icons { font-size: 12px; color: #a9acb3; min-width: 60px; }
.bar-container { flex: 1; height: 6px; background: #ececef; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: #6c6e73; border-radius: 3px; transition: width .3s ease; }
.total-ratings { font-size: 14px; color: #86868b; text-align: center; margin-left: 16px; }

/* 评论区域垂直排列，不滚动 */
.reviews-container { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.review-item { width: 100%; height: 80px; padding: 16px; background: #f4f5f7; border-radius: 16px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.review-title { font-size: 18px; font-weight: 700; color: #1d1d1f; margin: 0; }
.review-stars { color: #FF9500; font-size: 16px; margin: 0; }
.review-text { font-size: 14px; color: #1d1d1f; line-height: 1.4; margin: 0; }
.review-badge { background: #28a745; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.review-date { font-size: 14px; color: #86868b; margin: 0; }
.review-author { font-size: 14px; color: #86868b; font-weight: 500; }

/* Responsive adjustments */
@media (max-width: 446px) {
    .container { max-width: 100%; }
    .app-info { flex-direction: column; gap: 20px; }
    .info-column { width: 100%; }
    .info-column:not(:last-child)::after { display: none; }
    .overall-rating { flex-direction: column; align-items: center; }
    .rating-left { margin-right: 0; margin-bottom: 20px; }
    .preview-img { width: 280px; height: 640px; }
    .review-item { flex-basis: 100%; max-width: 100%; }
} 

/* 顶部Logo图片样式 */
.app-logo { width: 112px; height: 112px; border-radius: 22px; object-fit: cover; background: linear-gradient(135deg,#FF6B9D 0%,#C44569 100%); display: block; } 

/* 布局覆盖：所有主要区块取消左右内边距，与分割线同宽 */
.header{padding:20px 0;}
.app-info{padding:20px 0;}
.preview-section{padding:30px 0;}
.description-section{padding:0 0 30px;}
.developer-info{padding:12px 0;}
.reviews-section{padding:0 0 30px;} 

/* 开发者信息微调：移除底线，强制上下结构 */
.developer-info{border-bottom:none;}
.developer-name-large,.developer-title{display:block;} 

/* 覆盖：评分区改为Grid两行两列，左分数/说明与右条形图/总评分对齐 */
.overall-rating{display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:24px; align-items:center; padding:20px 0;}
/* 展平容器，便于将子元素作为Grid项对齐 */
.rating-left{display:contents; margin-right:0;}
.rating-right{display:contents;}
.overall-score{grid-column:1; grid-row:1; font-size:64px; line-height:1;}
.overall-text{grid-column:1; grid-row:2;}
.star-bars{grid-column:2; grid-row:1; justify-self:end; width:250px; height:48px; margin:0;}
.total-ratings{grid-column:2; grid-row:2; justify-self:end; margin-left:0; align-self:start;} 

/* 标题行左右对齐 */
.reviews-header{display:flex; align-items:center; justify-content:space-between; margin:16px 0;} 

/* 强制 See All 为蓝色样式 */
.see-all{color:#007AFF !important; text-decoration:none; font-weight:600;}

/* 星级条形图高度与间距修正，避免与总评分重叠 */
.overall-rating{row-gap:12px;}
.star-bars{width:250px; height:48px; margin:0;}
.total-ratings{align-self:start;} 

/* 覆盖修正：See All 取消加粗 */
.see-all{color:#007AFF !important; font-weight:400 !important; text-decoration:none;}

/* 覆盖修正：评分区间距与条形图高度 */
.overall-rating{row-gap:16px !important;}
.star-bars{height:44px !important;}
.total-ratings{margin-top:6px !important;} 

/* 缩小星级条形图至更紧凑尺寸 */
.star-bars{height:36px !important;}
.star-bar{gap:4px !important;}
.star-icons{font-size:11px !important; min-width:56px !important;}
.bar-container{height:5px !important; border-radius:2.5px !important;}
.bar-fill{border-radius:2.5px !important;}

/* 评论卡片文案字号调整为14px，保证98px高度内展示 */
.review-text{font-size:14px !important;}
.review-stars{font-size:16px !important;} 

/* 星级条形图：24px 高度的紧凑布局 */
.star-bars{height:24px !important; width:250px; justify-content:flex-start !important; gap:2px !important;}
.star-bar{gap:3px !important;}
.bar-container{height:3px !important;}
.star-icons{font-size:10px !important; min-width:52px !important;} 

/* 防重叠：增加条形图与总评分文字的垂直距离 */
.overall-rating{row-gap:20px !important;}
.total-ratings{margin-top:12px !important; display:block; line-height:1.2;}
/* 细化条形图内部行距，使24px容器内更紧凑但不触底 */
.star-bars{display:grid !important; grid-auto-rows:1fr; row-gap:3px !important; padding-bottom:2px;} 

/* 评论区：顶部外边距10px */
.reviews-container{margin-top:10px;}

/* 卡片结构 - 两行布局 */
.review-item{display:flex; flex-direction:column; justify-content:space-between;}
.review-line-1{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;}
.review-line-2{display:flex; align-items:center; justify-content:space-between;}
.review-title{font-size:18px; font-weight:700; color:#1d1d1f;}
.review-date{font-size:14px; color:#86868b;}
.review-text{font-size:14px; color:#1d1d1f; line-height:1.4;}
.review-stars{color:#FF9500; font-size:16px;} 

/* 条形图在24px高度内：每条4px厚、行距1px，更清晰 */
.star-bars{height:24px !important; row-gap:1px !important;}
.bar-container{height:4px !important; background:#e9e9eb !important;}
.bar-fill{background:#6b6d72 !important;} 

/* 强化条形图布局，确保可见 */
.star-bars{width:250px !important; height:24px !important; display:grid !important; grid-auto-rows:1fr; row-gap:1px !important;}
.star-bar{display:grid !important; grid-template-columns:52px 1fr; align-items:center; column-gap:6px !important;}
.star-icons{font-size:10px !important; min-width:52px !important;}
.bar-container{height:4px !important; background:#e9e9eb !important; border-radius:2px !important;}
.bar-fill{height:100% !important; background:#6b6d72 !important; border-radius:2px !important;}

/* 评论区顶部间距调整为8px */
.reviews-container{margin-top:8px !important;} 

/* --- Mobile/touch enhancements appended --- */
/* 横向滚动启用 iOS 惯性与滚动捕捉 */
.preview-carousel { -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.preview-item { scroll-snap-align: start; }

/* 隐藏横向滚动条（保留可滚动性） */
.preview-carousel::-webkit-scrollbar { display: none; height: 0; }
.preview-carousel { scrollbar-width: none; }

/* 适配安全区域（如 iPhone 刘海/圆角） */
.container { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }

/* 预览图在移动端按照视口宽度自适应，保持纵横比 */
@media (max-width: 446px) {
    .app-logo { width: 96px; height: 96px; }
    .app-title { font-size: 16px; }
    .app-subtitle { font-size: 11px; }

    /* 使用 aspect-ratio 保持 335x768 的比例，宽度占视口 80vw，且不超过容器 */
    .preview-img { width: 80vw !important; max-width: 335px; height: auto !important; aspect-ratio: 335 / 768; }

    /* 预览卡片的两侧规避安全区，滚动更自然 */
    .preview-carousel { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* 极小屏（≤360px）进一步压缩字号与卡片宽度 */
@media (max-width: 360px) {
    .app-title { font-size: 15px; }
    .overall-score { font-size: 56px; }
    .overall-text, .total-ratings { font-size: 13px; }
    .review-item { flex-basis: 100%; max-width: 100%; }
} 

/* --- Force mobile layout across all viewports --- */
.container { max-width: 100%; }

/* 预览图在所有视口保持移动端尺寸与比例 */
.preview-img { width: 80vw; max-width: 335px; height: auto; aspect-ratio: 335 / 768; }

/* 信息区在所有视口按移动端纵向排列 */
.app-info { flex-direction: column; gap: 20px; }
.info-column:not(:last-child)::after { display: none; }

/* 评论卡片在所有视口保持100%宽度 */
.review-item { flex-basis: 100%; max-width: 100%; } 

/* --- Top GET button --- */
.app-header { position: relative; }
.cta-get { position: absolute; right: 0; top: 0; transform: translateY(4px); display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 16px; background: #f2f2f7; color: #007AFF; font-weight: 700; text-decoration: none; font-size: 14px; }

/* --- Fixed top CTA bar --- */
.bottom-cta { position: fixed; left: 0; right: 0; top: 0; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); display: flex; align-items: center; justify-content: space-between; z-index: 999; }
.bottom-cta__left { display: flex; align-items: center; gap: 10px; }
.bottom-cta__icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,#FF6B9D 0%,#C44569 100%); }
.bottom-cta__info { display: flex; flex-direction: column; line-height: 1.2; }
.bottom-cta__title { font-size: 14px; font-weight: 700; color: #1d1d1f; }
.bottom-cta__subtitle { font-size: 12px; color: #86868b; }
.bottom-cta__btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 17px; background: #007AFF; color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }

/* 给主体顶部留出空间避免被 CTA 遮挡 */
.container { padding-top: calc(72px + env(safe-area-inset-top)); }

@media (min-width: 768px) {
	.bottom-cta { left: 50%; right: auto; transform: translateX(-50%); width: 446px; border-left: 1px solid rgba(0,0,0,.06); border-right: 1px solid rgba(0,0,0,.06); }
} 

/* --- Page horizontal gutters (left/right spacing) --- */
/* 参照参考站点的左右留白：主要区块统一 16px 边距 */
.header, .app-info, .preview-section, .description-section, .developer-info, .reviews-section { padding-left: 16px !important; padding-right: 16px !important; }

/* 横向滚动区在任何视口始终保持两侧留白 */
.preview-carousel { padding-left: 16px !important; padding-right: 16px !important; } 

/* --- App Info: force single-row, equal columns, visible dividers --- */
.app-info { flex-direction: row !important; flex-wrap: nowrap !important; gap: 0 !important; }
.info-column { flex: 1 0 0 !important; }
.info-column:not(:last-child)::after { display: block !important; } 

/* --- Top CTA visibility controlled by scroll --- */
.bottom-cta { transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .28s ease, opacity .28s ease; }
.bottom-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; } 

/* --- Header: place GET under title/subtitle using grid --- */
.app-header { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.app-icon { grid-column: 1; grid-row: 1 / span 2; }
.app-title-section { grid-column: 2; grid-row: 1; }
.cta-get { position: static !important; transform: none !important; grid-column: 2; grid-row: 2; justify-self: start; margin-top: 8px; height: 30px; padding: 0 12px; border-radius: 15px; background: #f2f2f7; color: #007AFF; font-weight: 700; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; }

/* --- Top CTA spacing refinement --- */
.bottom-cta { padding: calc(6px + env(safe-area-inset-top)) 12px 6px; }
/* Reduce reserved space at top to match gutters */
.container { padding-top: env(safe-area-inset-top) !important; } 

/* --- Restore font size adjustments --- */
.header { padding-top: 16px !important; padding-bottom: 12px !important; }
.app-header { row-gap: 6px !important; }
.app-title { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 2px !important; }
.app-subtitle { font-size: 13px !important; margin-top: 0 !important; }
.cta-get { margin-top: 6px !important; height: 32px !important; padding: 0 14px !important; border-radius: 16px !important; }
.app-info { padding-top: 16px !important; padding-bottom: 16px !important; } 

/* --- Ratings & Reviews: match reference layout --- */
/* 左侧小星星三角装饰，隐藏文字星标 */
.star-icons { display: none !important; }
.star-bars { position: relative !important; padding-left: 40px !important; width: 100% !important; max-width: none !important; height: auto !important; display: grid !important; grid-auto-rows: 6px !important; row-gap: 6px !important; }
.star-bars::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 48px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='48'><g fill='%23c0c3cc' font-family='-apple-system,BlinkMacSystemFont,Segoe UI,Roboto' font-size='8'><text x='0' y='9'>★★★★★</text><text x='2' y='18'>★★★★</text><text x='4' y='27'>★★★</text><text x='6' y='36'>★★</text><text x='8' y='45'>★</text></g></svg>") no-repeat center/contain; }

/* 条形图更细、更浅色 */
.star-bar { display: flex !important; align-items: center !important; column-gap: 8px !important; }
.bar-container { height: 6px !important; background: #ececf0 !important; border-radius: 3px !important; overflow: hidden !important; }
.bar-fill { height: 100% !important; background: #a9acb3 !important; border-radius: 3px !important; }

/* 左侧整体评分与说明的层级和配色 */
.overall-score { font-size: 56px !important; color: #4a4b50 !important; }
.overall-text { color: #9da3ae !important; }

/* 右侧总评分文案靠右、浅色 */
.total-ratings { color: #9da3ae !important; justify-self: end !important; margin-top: 8px !important; } 

/* --- Ratings & Reviews precise alignment (3-column grid) --- */
.overall-rating { display: grid !important; grid-template-columns: auto 1fr auto !important; grid-template-rows: auto auto !important; column-gap: 16px !important; row-gap: 4px !important; align-items: center !important; }
/* 放置：左侧分数两行；中间为条形图（占两行）；右侧总评分（占两行，垂直居中） */
.overall-score { grid-column: 1 !important; grid-row: 1 !important; font-size: 60px !important; line-height: 1 !important; }
.overall-text { grid-column: 1 !important; grid-row: 2 !important; }
.star-bars { grid-column: 2 !important; grid-row: 1 / span 2 !important; align-self: center !important; width: 100% !important; max-width: none !important; padding-left: 44px !important; display: grid !important; grid-auto-rows: 5px !important; row-gap: 5px !important; }
/* 小星星三角尺寸与高度匹配 5 条 x 5px + 4 间距 x 5px = 45px */
.star-bars::before { width: 36px !important; height: 45px !important; left: 0 !important; top: 0 !important; }
.total-ratings { grid-column: 3 !important; grid-row: 1 / span 2 !important; align-self: center !important; justify-self: end !important; margin-top: 0 !important; }
/* 条形图更细圆角 */
.bar-container { height: 5px !important; background: #ececf0 !important; border-radius: 3px !important; }
.bar-fill { background: #b6b8bf !important; border-radius: 3px !important; } 

/* --- Star ratings with horizontal bars --- */
.star-bars { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.star-bar { display: flex !important; align-items: center !important; gap: 12px !important; }
.star-icons { display: block !important; font-size: 12px !important; color: #a9acb3 !important; min-width: 60px !important; }
.bar-container { flex: 1 !important; height: 8px !important; background: #ececf0 !important; border-radius: 4px !important; overflow: hidden !important; }
.bar-fill { height: 100% !important; background: #a9acb3 !important; border-radius: 4px !important; transition: width 0.3s ease !important; }

/* 隐藏之前的装饰性星星 */
.star-bars::before { display: none !important; }

/* 调整条形图容器布局 */
.star-bars { padding-left: 0 !important; width: 100% !important; max-width: 320px !important; } 

/* --- Top CTA icon override: use uploaded logo1.png --- */
.bottom-cta__icon { background: url("assets/logo1.png") center/cover no-repeat !important; } 

/* --- Hide entire top CTA bar --- */
.bottom-cta { display: none !important; } 