/* ===== 主体 ===== */
.apps-box {
	background: #fff;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
	min-width: 0;
}

.apps-title {
	display: flex;
	align-items: center;
	gap: 12px;

	font-size: 28px;
	line-height: 1.45;
	color: #222;
	margin-bottom: 14px;
	font-weight: 700;
}

.apps-logo{
	width: 40px;
	height: 40px;
	object-fit: cover;
	flex-shrink: 0;
	border-radius: 6px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.apps-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 14px;
	color: #888;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 24px;
}

.apps-cover {
	margin-bottom: 24px;
	border-radius: 12px;
	overflow: hidden;
	background: #eee;
}

.apps-cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.apps-content {
	font-size: 17px;
	color: #555;
}

.apps-content p {
	line-height: 1.8;
	margin: 0 0 24px;
	word-break: break-word;
	letter-spacing: 0.04em;
}

.apps-content p img {
    display: block;
    max-width: 100%;
}

.apps-content h2 {
	font-size: 26px;
	color: #222;
	margin: 32px 0 14px;
	line-height: 1.4;
}

.apps-content h3 {
	color: #222;
	line-height: 1.4;
	font-size: 22px;
	font-weight: 700;
	margin: 36px 0 26px;
	padding: 12px 16px;
	padding-left: 16px;
	background: linear-gradient(90deg, #fff1f0, #ffffff);
	border-left: 5px solid #ff4d4f;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.apps-content h3:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.apps-content h4 {
	font-size: 19px;
	color: #333;
	margin: 36px 0 26px 0;
	line-height: 1.4;
}

.apps-content ul, .apps-content ol {
	margin: 0 0 18px 24px;
}

.apps-content li {
	margin-bottom: 10px;
}

.apps-content blockquote {
	margin: 22px 0;
	padding: 16px 18px;
	background: #faf7f7;
	border-left: 4px solid #d62828;
	color: #666;
	border-radius: 8px;
}

.apps-content img {
	margin: 22px auto;
	border-radius: 10px;
	height: auto !important;
}

.apps-content a {
	color: #ff3b3b!important;
}

.apps-content a:hover {
	color: #ff0000!important;
}

.apps-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid #f0f0f0;
}

.apps-tags a {
	display: inline-block;
	padding: 7px 14px;
	background: #f7f7f7;
	border-radius: 999px;
	font-size: 13px;
	color: #666;
}

.apps-tags a:hover {
	background: #d62828;
	color: #fff;
}

.apps-page-nav {
	margin-top: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.apps-page-nav a {
	display: block;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 15px 16px;
	color: #555;
	min-height: 72px;
	font-size: 14px;
}

.apps-page-nav a:hover {
	border-color: #d62828;
	color: #d62828;
	background: #fff;
}

.page-nav-label {
	display: block;
	font-size: 12px;
	color: #999;
	margin-bottom: 6px;
}

.related-box, .sidebar-box {
	background: #fff;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.related-box {
	margin-top: 24px;
}

.box-title {
	font-size: 20px;
	color: #222;
	margin-bottom: 18px;
	padding-left: 12px;
	border-left: 4px solid #d62828;
	line-height: 1.2;
}

.related-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.related-item {
	background: #fafafa;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #f1f1f1;
}

.related-item:hover {
	transform: translateY(-2px);
}

.related-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.related-content {
	padding: 8px 14px 14px 14px;
}

.related-content h3 {
	font-size: 16px;
	line-height: 1.5;
	color: #222;
	margin-bottom: 8px;
}

.related-meta {
	font-size: 12px;
	color: #999;
}

.sidebar-box + .sidebar-box {
	margin-top: 20px;
}

.sidebar-list {
	list-style: none;
}

.sidebar-list li + li {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #f3f3f3;
}

.sidebar-list a {
	font-size: 15px;
	color: #333;
	line-height: 1.6;
}

.sidebar-list a:hover {
	color: #d62828;
}

.sidebar-list span {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 5px;
}

.apps-content a:hover {
	color: #d62828;
	font-weight: bold;
}

/* ===== 平板 ===== */
@media (max-width: 980px) {
	.content-wrap {
		grid-template-columns: 1fr;
	}

	.related-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ===== 手机 ===== */
@media (max-width: 768px) {
	.main {
		padding-top: 18px;
	}

	.apps-box, .related-box, .sidebar-box {
		padding: 18px;
		border-radius: 0;
	}
	
	.related-box, .sidebar-box {
	    box-shadow: none!important;
	}

	.apps-title {
		align-items: flex-start;
		font-size: 26px;
	}

	.apps-meta {
		gap: 10px;
		font-size: 13px;
	}

	.apps-content {
		font-size: 16px;
	}

	.apps-content h2 {
		font-size: 22px;
	}

	.apps-content h3 {
		font-size: 19px;
	}

	.apps-content h4 {
		font-size: 17px;
	}

	.apps-page-nav {
		grid-template-columns: 1fr;
	}

	.related-list {
		grid-template-columns: 1fr;
	}
}

/* 代码块样式 */
.apps-content pre {
	display: none;
}

.code-block {
	position: relative;
	width: 100%;
	background: #1f2430;
	border-radius: 6px;
	overflow: hidden;
	margin: 16px 0;
}

.code-line {
	display: flex;
	align-items: center;
	min-height: 42px;
	color: #fff;
	transition: background 0.15s ease;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-line:last-child {
	border-bottom: none;
}

.code-line:hover {
	background: #262c3a;
}

.line-number {
	width: 50px;
	min-width: 50px;
	text-align: right;
	padding-right: 10px;
	font-size: 14px;
	color: #34416a;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.line-text {
	flex: 1;
	padding: 0 48px 0 12px;
	font-size: 14px;
	white-space: pre-wrap;
	word-break: break-word;
}

.code-copy-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 10px;
	padding: 6px 10px;
	font-size: 12px;
	border: none;
	border-radius: 4px;
	background: #3a4152;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: all 0.2s ease;
}

.code-block:hover .code-copy-btn {
	opacity: 1;
}

@media (max-width: 600px) {
	.line-number {
		width: 40px;
		min-width: 40px;
		font-size: 12px;
	}

	.line-text {
		font-size: 13px;
		padding: 0 44px 0 8px;
	}

	.code-copy-btn {
		font-size: 11px;
		padding: 3px 8px;
		top: 50%;
		transform: translateY(-50%);
		right: 8px;
	}
}

/* 表格 */
.apps-content table{
  width:100%;
  border-collapse:collapse;
margin: 0 0 24px;
}
.apps-content table thead tr{
    background:#f2f3f5;
    font-weight:600;
}
.apps-content th,
.apps-content td{
  border:1px solid #ddd;
  padding:10px;
  text-align:center;
}

.apps-content th{
  background:#f5f5f5;
  font-weight:600;
}

/* 猜你喜欢 */
.guess-like-title {
  width: 100%;
  text-align: center;
  margin: 0 0 22px;
  position: relative;
}

.guess-like-title span {
  display: inline-block;
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 600;
  color: #333;
  padding: 6px 20px;
  position: relative;
    background: linear-gradient(90deg, #ff4d4f, #ff8a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guess-like-title::before,
.guess-like-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ff4d4f);
}

.guess-like-title::before {
  left: 0;
}

.guess-like-title::after {
  right: 0;
  background: linear-gradient(to left, transparent, #ff4d4f);
}

.right-ad {
    display: none;
    padding: 0!important;
    text-align: center;
}

.right-ad .adsbygoogle {
    margin: 0 auto;
}


/* 移动端优化 */
@media (max-width: 1000px) {
  .guess-like-title::before,
  .guess-like-title::after {
    width: 15%;
  }
  
    .guess-like-title {
        margin: 0 0 14px;
    }

  .apps-content table{
    font-size:14px;
  }
    .right {
        display: none;
    }
    .main {
        padding: 18px 0 0 0;
    }
}

/* 下载地址 */
.download-box {
    max-width: 916px;
    margin: 30px auto;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.download-item {
    background: #fff;
    border-radius: 18px;
    padding: 22px 16px;
    text-decoration: none;
    transition: .25s ease;
    border: 1px solid #ececec;
    text-align: center;
}
.download-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
/* 图标 */
.download-icon {
    width: 64px;
    height: 64px;
    margin: auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.download-icon i {
    font-size: 34px;
}
/* 标题 */
.download-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}
/* 按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}
/* Android */
.android .download-icon {
    background: rgba(61,220,132,.12);
    color: #3DDC84;
}
.android .download-btn {
    background: #23e378;
    color: #fff;
}
/* iPhone */
.iphone .download-icon {
    background: rgba(0,0,0,.08);
    color: #111;
}
.iphone .download-btn {
    background: #111;
    color: #fff;
}
/* Windows */
.windows .download-icon {
    background: rgba(0,120,215,.12);
    color: #0078D7;
}
.windows .download-btn {
    background: #0078D7;
    color: #fff;
}
/* macOS */
.macos .download-icon {
    background: rgba(120,120,120,.12);
    color: #666;
}
.macos .download-btn {
    background: #666;
    color: #fff;
}

/* 自适应 */
@media (max-width:768px) {
.download-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width:480px) {
.download-grid {
    grid-template-columns: 1fr;
}
}


/* 谷歌广告自适应 */
ins.adsbygoogle {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}

div[id^="aswift"] {
  width: 100% !important;
  max-width: 100% !important;
}

iframe[id^="aswift"] {
  max-width: 100% !important;
}