/* ============ ARTICLE PAGE STYLES ============ */

/* ===== Reading progress ===== */
.art-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1300; background: transparent; pointer-events: none; }
.art-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-deep), var(--cyan-bright)); transition: width .12s linear; }

/* ===== Hero ===== */
.art-hero { position: relative; overflow: hidden; padding: 150px 0 64px; }
.art-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,12,24,.55) 0%, rgba(4,12,24,.8) 55%, rgba(4,12,24,.95) 100%); }
.art-hero-inner { position: relative; z-index: 2; }
.art-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); flex-wrap: wrap; }
.art-breadcrumb a { color: var(--cyan-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.art-hero .art-breadcrumb { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.art-hero .art-breadcrumb a { color: #FFFFFF; }
.art-breadcrumb a:hover { text-decoration: underline; }

.art-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.art-meta .news-tag { margin: 0; }
.art-hero .news-tag { color: var(--cyan-bright); }
.art-hero .news-date { color: rgba(255,255,255,.72); }
.art-readtime { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: 6px; }
.art-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.art-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.14; color: #FFFFFF; margin-bottom: 18px; letter-spacing: -.5px; }
.art-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: rgba(255,255,255,.82); max-width: 820px; }
.art-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.art-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); color: #FFFFFF; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; letter-spacing: .5px; flex-shrink: 0; }
.art-byline-txt { display: flex; flex-direction: column; }
.art-author { font-size: 14px; font-weight: 700; color: #FFFFFF; }
.art-byline-role { font-size: 12px; color: rgba(255,255,255,.66); }

/* ===== Layout ===== */
.art-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; max-width: 1120px; margin: 56px auto 0; align-items: start; }
.art-article { min-width: 0; }
.art-body p { font-size: 17px; line-height: 1.95; color: var(--ink-soft); margin-bottom: 22px; }
[data-theme="deep"] .art-body p { color: rgba(240,247,250,.84); }
.art-body > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.1em; line-height: .82; font-weight: 800; float: left; margin: .06em .12em -.02em 0; color: var(--cyan-deep); }
[dir="rtl"] .art-body > p:first-of-type::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; }
[data-theme="deep"] .art-body > p:first-of-type::first-letter { color: var(--cyan-bright); }
.art-sub { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.3; color: var(--ink); margin: 40px 0 16px; }
[data-theme="deep"] .art-sub { color: #FFFFFF; }
.art-quote { margin: 32px 0; padding: 22px 26px 22px 30px; border-left: 4px solid var(--cyan-deep); background: var(--silver-mist); border-radius: 0 18px 18px 0; }
[dir="rtl"] .art-quote { border-left: 0; border-right: 4px solid var(--cyan-deep); border-radius: 18px 0 0 18px; padding: 22px 30px 22px 26px; }
[data-theme="deep"] .art-quote { background: rgba(255,255,255,.04); border-color: var(--cyan-bright); }
.art-quote p { margin: 0; font-size: 18px; line-height: 1.7; font-style: italic; font-weight: 500; color: var(--ink); }
[data-theme="deep"] .art-quote p { color: #EAF3FA; }
.art-list { list-style: none; margin: 0 0 24px; padding: 0; }
.art-list li { position: relative; padding-inline-start: 30px; margin-bottom: 12px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
[data-theme="deep"] .art-list li { color: rgba(240,247,250,.84); }
.art-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .6em; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); transform: rotate(45deg); }

/* ===== Article footer ===== */
.art-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.art-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art-share-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-inline-end: 4px; }
.art-share-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s var(--ease); }
.art-share-btn:hover { transform: translateY(-2px); border-color: var(--cyan-deep); color: var(--cyan-deep); }
[data-theme="deep"] .art-share-btn:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.art-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--cyan-deep); text-decoration: none; transition: gap .3s var(--ease); }
[data-theme="deep"] .art-back { color: var(--cyan-bright); }
.art-back:hover { gap: 12px; }

/* ===== Sidebar ===== */
.art-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.art-nl { background: var(--card-bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow-soft); }
.art-nl-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); color: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.art-nl h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
[data-theme="deep"] .art-nl h3 { color: #FFFFFF; }
.art-nl p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; }
.art-nl form { display: flex; flex-direction: column; gap: 10px; }
.art-nl input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-family: inherit; }
.art-nl input:focus { outline: none; border-color: var(--cyan-deep); }
.art-nl button { padding: 12px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); color: #FFFFFF; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .25s var(--ease); font-family: inherit; }
.art-nl button:hover { transform: translateY(-2px); }
.art-nl-note { font-size: 11.5px; color: var(--ink-soft); margin: 12px 0 0 !important; opacity: .8; }

/* ===== Related ===== */
.art-more { max-width: 1120px; margin: 90px auto 0; }
.art-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.art-more-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--ink); font-family: var(--font-display); }
[data-theme="deep"] .art-more-title { color: #FFFFFF; }
.art-more-link { font-size: 14px; font-weight: 700; color: var(--cyan-deep); text-decoration: none; }
[data-theme="deep"] .art-more-link { color: var(--cyan-bright); }

/* ===== Comments ===== */
.art-comments { max-width: 800px; margin: 80px auto 0; }
.art-comments h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
[data-theme="deep"] .art-comments h2 { color: #FFFFFF; }
.art-comments-intro { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 24px; }
.art-comment-form { background: var(--card-bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-comment-form .full { grid-column: 1 / -1; }
.art-comment-form input, .art-comment-form textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-family: inherit; resize: vertical; }
.art-comment-form textarea { min-height: 120px; }
.art-comment-form input:focus, .art-comment-form textarea:focus { outline: none; border-color: var(--cyan-deep); }
.art-comment-form button { grid-column: 1 / -1; justify-self: start; padding: 13px 28px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); color: #FFFFFF; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: transform .25s var(--ease); }
.art-comment-form button:hover { transform: translateY(-2px); }
.art-thanks { display: none; grid-column: 1 / -1; background: rgba(31,191,143,.12); border: 1px solid rgba(31,191,143,.4); color: #0B5C46; border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
[data-theme="deep"] .art-thanks { color: #5FE3BC; }
.art-thanks.show { display: block; }

.art-comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.art-comment { display: flex; gap: 14px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-tight); }
.art-comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright)); color: #FFFFFF; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .5px; }
.art-comment-main { min-width: 0; flex: 1; }
.art-comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.art-comment-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
[data-theme="deep"] .art-comment-name { color: #FFFFFF; }
.art-comment-role { font-size: 12px; color: var(--cyan-deep); font-weight: 600; }
[data-theme="deep"] .art-comment-role { color: var(--cyan-bright); }
.art-comment-date { font-size: 12px; color: var(--ink-soft); margin-inline-start: auto; }
.art-comment-text { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
[data-theme="deep"] .art-comment-text { color: rgba(240,247,250,.84); }

.art-empty { text-align: center; padding: 80px 20px; }
.art-empty h1 { font-size: 26px; margin-bottom: 18px; color: var(--ink); }
[data-theme="deep"] .art-empty h1 { color: #FFFFFF; }

@media (max-width: 1000px) {
  .art-layout { grid-template-columns: 1fr; gap: 40px; }
  .art-side { position: static; }
}
@media (max-width: 700px) {
  .art-hero { padding: 120px 0 48px; }
  .art-more { margin-top: 60px; }
  .art-comment-form { grid-template-columns: 1fr; padding: 20px; }
}