/* Teduh Khairat —— 官方网站 */
@font-face { font-family: 'Playfair Display'; src: url('PlayfairDisplay.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root {
  --em-900: #0b2e23; --em-800: #0f3d2e; --em-700: #14523d; --em-600: #1b6a4f; --em-100: #e7f0ec;
  --gold: #b8975a; --gold-deep: #8a6d35; --gold-soft: #e9dcc0;
  --ivory: #f7f4ee; --line: #e6e0d4; --text: #1f2a26; --text-2: #55605b; --text-3: #8a918c;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Noto Sans Tamil', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--ivory); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--em-800); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* 顶栏 */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--serif); color: #fff; font-size: 21px; letter-spacing: .3px; }
.lang { position: relative; }
.lang select { appearance: none; background: transparent; color: var(--gold-soft); border: 1px solid rgba(233, 220, 192, .45); border-radius: 999px; padding: 8px 34px 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.lang select option { color: var(--text); }
.lang::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border: solid var(--gold-soft); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* 首屏 */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(165deg, var(--em-700) 0%, var(--em-800) 45%, var(--em-900) 100%); padding: 150px 0 110px; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('pattern.svg') center / 80px; opacity: .07; }
.hero::after { content: ''; position: absolute; top: -280px; left: 50%; width: 1100px; height: 1100px; margin-left: -550px; background: radial-gradient(circle, rgba(184, 151, 90, .22), transparent 62%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.12; margin: 18px 0 20px; white-space: pre-line; }
.hero p.lead { color: rgba(255, 255, 255, .76); font-size: 18px; max-width: 540px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 26px; border-radius: 14px; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .75; letter-spacing: .3px; }
.btn .t { text-align: left; line-height: 1.25; }
.btn-gold { background: linear-gradient(135deg, #c9ab70, var(--gold) 55%, var(--gold-deep)); color: var(--em-900); box-shadow: 0 10px 30px rgba(184, 151, 90, .28); }
.btn-line { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(233, 220, 192, .45); }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }
.hotline { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.hotline a { color: var(--gold); font-weight: 700; font-size: 18px; letter-spacing: .5px; text-decoration: none; }

/* 手机样机 */
.phone { justify-self: center; width: 300px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px; background: #0a1f18; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(233, 220, 192, .25); position: relative; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ivory); position: relative; display: flex; flex-direction: column; }
.s-hero { background: linear-gradient(165deg, var(--em-700), var(--em-900)); padding: 34px 18px 58px; color: #fff; position: relative; }
.s-hero::before { content: ''; position: absolute; inset: 0; background: url('pattern.svg') center / 50px; opacity: .08; }
.s-hero * { position: relative; }
.s-top { display: flex; align-items: center; gap: 7px; font-family: var(--serif); color: var(--gold-soft); font-size: 12px; }
.s-top img { width: 18px; height: 18px; }
.s-hi { margin-top: 14px; font-size: 11px; opacity: .7; }
.s-name { font-family: var(--serif); font-size: 21px; }
.s-card { margin-top: 14px; border: 1px solid rgba(184, 151, 90, .45); border-radius: 12px; padding: 11px 12px; background: rgba(255, 255, 255, .07); display: flex; justify-content: space-between; }
.s-card b { display: block; font-family: var(--serif); font-size: 14px; font-weight: 600; }
.s-card span { font-size: 8.5px; opacity: .65; }
.s-body { padding: 0 14px; margin-top: -40px; position: relative; }
.s-report { background: #fff; border: 1.5px solid var(--gold); border-radius: 14px; padding: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 20px rgba(11, 46, 35, .14); }
.s-report i { width: 36px; height: 36px; border-radius: 50%; background: var(--em-800); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.s-report i img { width: 22px; }
.s-report b { font-family: var(--serif); color: var(--em-900); font-size: 14px; display: block; }
.s-report span { font-size: 8.5px; color: var(--text-2); }
.s-case { margin-top: 10px; background: #fff; border-radius: 12px; border-top: 3px solid var(--em-700); padding: 11px 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-case small { color: var(--gold-deep); font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; }
.s-case b { display: block; font-family: var(--serif); color: var(--em-900); font-size: 13px; margin: 2px 0 8px; }
.s-bar { height: 6px; background: #e4dfd2; border-radius: 3px; overflow: hidden; }
.s-bar div { width: 38%; height: 100%; background: linear-gradient(90deg, var(--em-600), var(--gold)); }
.s-meta { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--text-2); margin-top: 6px; }
.s-meta b { display: inline; font-family: var(--serif); font-size: 13px; color: var(--em-700); margin: 0; }
.s-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #fff; border-radius: 12px; padding: 10px 6px; border: 1px solid var(--line); }
.s-grid div { text-align: center; font-size: 7.5px; color: var(--text-2); }
.s-grid i { display: block; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 9px; background: var(--em-100); }

/* 区块 */
section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head .eyebrow { color: var(--gold-deep); }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 42px); color: var(--em-900); margin: 14px 0 12px; line-height: 1.2; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: 0 2px 8px rgba(15, 61, 46, .04); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--em-800); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature .ic svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--serif); color: var(--em-900); font-size: 21px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

.steps-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold-soft), transparent); }
.step { text-align: center; position: relative; }
.step .n { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--gold); color: var(--gold-deep); font-family: var(--serif); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; }
.step h3 { font-family: var(--serif); color: var(--em-900); font-size: 19px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.faith { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faith-card { border-radius: 22px; padding: 38px 36px; position: relative; overflow: hidden; }
.faith-card.islam { background: linear-gradient(145deg, var(--em-800), var(--em-900)); color: #fff; }
.faith-card.islam::before { content: ''; position: absolute; inset: 0; background: url('pattern.svg') center / 70px; opacity: .08; }
.faith-card.general { background: #fff; border: 1px solid var(--line); }
.faith-card > * { position: relative; }
.faith-card h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 10px; }
.faith-card.islam h3 { color: var(--gold-soft); }
.faith-card.general h3 { color: var(--em-900); }
.faith-card p { margin: 0 0 18px; opacity: .85; }
.faith-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.faith-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.faith-card li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; background: var(--gold); transform: rotate(45deg); }
.verse { font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: 22px !important; font-size: 15px; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.langs span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* 下载区 */
.download { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--em-800), var(--em-900)); color: #fff; text-align: center; }
.download::before { content: ''; position: absolute; inset: 0; background: url('pattern.svg') center / 80px; opacity: .07; }
.download .container { position: relative; }
.download h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); margin: 16px 0 12px; }
.download p { color: rgba(255, 255, 255, .7); margin: 0 auto; max-width: 560px; }
.download .cta { justify-content: center; }
.dl-meta { margin-top: 18px; font-size: 13px; color: rgba(233, 220, 192, .6); }
.ios-soon { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* 页脚 */
footer { background: var(--em-900); color: rgba(255, 255, 255, .6); padding: 56px 0 36px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { color: var(--gold-soft); font-family: var(--serif); font-weight: 600; font-size: 16px; margin: 0 0 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .brand { margin-bottom: 14px; }
.copy { border-top: 1px solid rgba(233, 220, 192, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* 法律页面 */
.doc-hero { background: linear-gradient(165deg, var(--em-700), var(--em-900)); color: #fff; padding: 130px 0 60px; position: relative; overflow: hidden; }
.doc-hero::before { content: ''; position: absolute; inset: 0; background: url('pattern.svg') center / 80px; opacity: .07; }
.doc-hero .container { position: relative; }
.doc-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 46px); margin: 12px 0 6px; }
.doc-hero p { margin: 0; color: rgba(255, 255, 255, .65); }
.doc { max-width: 780px; margin: -30px auto 80px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 48px 52px; position: relative; }
.doc h2 { font-family: var(--serif); color: var(--em-900); font-size: 22px; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-2); }
.doc a { color: var(--em-700); }
.note-demo { margin-top: 30px; padding: 14px 18px; border-radius: 12px; background: #fbf6ea; border: 1px dashed var(--gold); color: var(--gold-deep); font-size: 14px; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .cta, .hotline { justify-content: center; }
  .eyebrow { justify-content: center; }
  .phone { width: 270px; margin-top: 12px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .faith, .foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 116px 0 80px; }
  .hero p.lead { font-size: 16px; }
  .cta { flex-direction: column; }
  .btn { width: 100%; }
  section { padding: 72px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .phone { display: none; }
  .brand span { font-size: 18px; }
  .doc { padding: 32px 24px; margin: -24px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 各端入口卡片 */
.portals { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.portal { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.portal:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(15, 61, 46, .1); }
.portal h3 { font-size: 19px; }
