/* New homepage layout: left sidebar nav, right content, footer at bottom */

/* Base reset & utilities migrated from ershuo.css */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; line-height:1.6; color:#333; background:#FFF7F0; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
.clearfix::after { content:""; display:table; clear:both; }
.fl{ float:left; } .fr{ float:right; } .clearboth{ clear:both; }

/* Scope to homepage only to avoid affecting other pages */
.wrapper.home-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	grid-template-rows: 1fr auto;
	min-height: 100vh;
}

/* Sidebar: reuse existing header as a vertical nav occupying full height */
.wrapper.home-layout #doc-hd {
	grid-row: 1 / span 2;
	grid-column: 1;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.wrapper.home-layout .ershuo-header .topbar {
	height: 100%;
	background: linear-gradient(180deg,#ff7a18 0%, #c2410c 100%);
	box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}

.wrapper.home-layout .ershuo-header .topbar .container {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 16px;
	align-items: center;
}

.wrapper.home-layout .hd-logo { margin-bottom: 24px; width:100%; display:flex; justify-content:center; }

.wrapper.home-layout .brand-slogan{ color:#cfe6f4; font-size:12px; margin:-12px 0 12px; text-align:center; opacity:.95; }


.wrapper.home-layout .hd-nav { flex: 1 1 auto; }
.wrapper.home-layout .hd-nav ul { display: flex; flex-direction: column; gap: 8px; align-items: stretch; list-style: none; padding-left: 0; margin: 0; }

.wrapper.home-layout .hd-nav .item { margin: 0; }
.wrapper.home-layout .hd-nav .item a {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	color: #e8f1f8;
	background: transparent;
	text-decoration: none;
	text-align: center;
	width: 100%;
}
.wrapper.home-layout .hd-nav .item a::before{
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-right: 8px;
	border-radius: 50%;
	background: transparent;
}
.wrapper.home-layout .hd-nav .item a:hover {
	background: rgba(255,140,0,.16);
	color: #fff;
	text-decoration: none;
}
.wrapper.home-layout .hd-nav .item a.current {
	background: rgba(255,140,0,.28);
	color: #fff;
}
.wrapper.home-layout .hd-nav .item a.current::before{ background:#ffb020; }

.wrapper.home-layout .hd-login { margin-top: 16px; width:100%; display:flex; justify-content:center; }
.wrapper.home-layout .hd-login .tologin {
	display: block;
	text-align: center;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff;
	color: #c2410c;
	font-weight: 600;
	text-decoration: none;
	margin: 0 auto;
}

/* Sidebar QR download block */
.wrapper.home-layout .sidebar-download { margin-top: 16px; width:100%; display:flex; flex-direction:column; align-items:center; }
.wrapper.home-layout .sidebar-download img { width:120px; height:120px; border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.wrapper.home-layout .sidebar-download .download-tip { margin-top:6px; color:#cbd5e1; font-size:12px; }

.wrapper.home-layout .hd-login .tologin:hover { text-decoration: none; }

/* Hide original top separator on homepage */
.wrapper.home-layout .top_line { display: none; }

/* Main area placed on the right */
.wrapper.home-layout main.home-main {
	grid-row: 1;
	grid-column: 2;
	padding: 24px clamp(16px,4vw,48px) 48px;
	background:
		conic-gradient(from 180deg at 10% 20%, rgba(255,163,26,.12), rgba(255,163,26,0) 35%),
		radial-gradient(1200px 600px at 80% -10%, rgba(255,122,24,.10), rgba(255,122,24,0) 60%),
		linear-gradient(180deg,#fffaf5 0%, #ffffff 100%);
	overflow: auto;
}

/* Main container width: fill available space */
.wrapper.home-layout main.home-main > * { width: 100%; max-width: none; box-sizing: border-box; }

/* Footer stays in the flow at the bottom (grid row 2) */
.wrapper.home-layout footer.area-ft {
	grid-row: 2;
	grid-column: 2;
	background: #1f2937;
	color: #cbd5e1;
}

/* Home hero and card refresh */
.wrapper.home-layout .home-left-content,
.wrapper.home-layout .home-right-content {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(15, 76, 129, 0.08);
	padding: 28px;
}

.wrapper.home-layout .home-main {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
}

.wrapper.home-layout .home-title { font-size: 22px; margin: 0 0 12px; }
.wrapper.home-layout .home-subtitle { color: #4b5563; margin: 4px 0 16px; }
.wrapper.home-layout .home-qr-img { width: 220px; height: 220px; border-radius: 12px; }
.wrapper.home-layout .home-download-tip { color: #6b7280; }

/* New hero */
.wrapper.home-layout .hero{ display:grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.wrapper.home-layout .hero-content{ background:#0f172a; color:#e5e7eb; border-radius:18px; padding:32px 28px; position:relative; overflow:hidden; }
.wrapper.home-layout .hero-content::after{ content:""; position:absolute; inset:auto -20% -30% -20%; height:120px; background:radial-gradient(60% 60% at 50% 50%, rgba(47,211,255,.25), rgba(47,211,255,0)); filter:blur(20px); }
.wrapper.home-layout .hero-title{ font-size:30px; letter-spacing:.02em; margin:0 0 8px; color:#ffffff; }
.wrapper.home-layout .hero-subtitle{ color:#b6c1d1; margin:0 0 18px; }
.wrapper.home-layout .hero-actions{ display:flex; gap:12px; }
.wrapper.home-layout .btn-secondary{ display:inline-block; padding:10px 16px; border-radius:10px; background:#ffffff1a; color:#e5e7eb; text-decoration:none; backdrop-filter:saturate(130%) blur(4px); }
.wrapper.home-layout .btn-secondary:hover{ background:#ffffff26; color:#fff; }

.wrapper.home-layout .hero-qr{ background:#ffffff; border-radius:18px; padding:24px; text-align:center; box-shadow:0 10px 30px rgba(0,0,0,.06); }
.wrapper.home-layout .hero-qr-img{ width:220px; height:220px; border-radius:14px; }
.wrapper.home-layout .hero-qr-tip{ color:#6b7280; margin-top:8px; }

/* Feature strip */
.wrapper.home-layout .feature-strip{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin: 18px 0 28px; }
.wrapper.home-layout .feature-item{ background:#ffffff; border:1px solid #ffe0bf; border-radius:14px; padding:14px; display:flex; align-items:center; gap:10px; box-shadow:0 2px 10px rgba(255,122,24,.08); }
.wrapper.home-layout .feature-icon{ width:28px; height:28px; display:grid; place-items:center; font-size:18px; }
.wrapper.home-layout .feature-text{ color:#334155; font-weight:600; }

/* Live grid */
.wrapper.home-layout .live-section{ background:#ffffff; border-radius:18px; padding:20px 20px 8px; box-shadow:0 10px 30px rgba(0,0,0,.06); }
.wrapper.home-layout .section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.wrapper.home-layout .section-title{ font-size:20px; color:#0f172a; }
.wrapper.home-layout .link-more{ color:#ff7a18; text-decoration:none; font-weight:600; }
.wrapper.home-layout .link-more:hover{ text-decoration:underline; }
.wrapper.home-layout .live-grid{ display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:14px; }
.wrapper.home-layout .live-card{ display:block; background:#0b1220; border-radius:14px; overflow:hidden; text-decoration:none; color:#e5e7eb; position:relative; }
.wrapper.home-layout .live-cover{ width:100%; aspect-ratio: 5/7; object-fit: cover; display:block; }
.wrapper.home-layout .live-info{ position:absolute; left:0; right:0; bottom:0; padding:10px 12px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 85%); }
.wrapper.home-layout .live-name{ font-weight:700; font-size:14px; }
.wrapper.home-layout .live-meta{ font-size:12px; color:#cbd5e1; }

/* Compliance note */
.wrapper.home-layout .compliance-note{ margin-top:28px; background:#f7fafc; border:1px dashed #cfe6f4; color:#334155; border-radius:12px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.wrapper.home-layout .compliance-note .note-links{ display:flex; gap:12px; }
.wrapper.home-layout .compliance-note a{ color:#ff7a18; text-decoration:none; font-weight:600; }
.wrapper.home-layout .compliance-note a:hover{ text-decoration:underline; }

.wrapper.home-layout .home-cta-group { margin-top: 16px; display: flex; gap: 12px; }
.wrapper.home-layout .btn-primary {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: #ff7a18;
	color: #fff;
	font-weight: 600;
	transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.wrapper.home-layout .btn-primary:hover { box-shadow: 0 6px 16px rgba(255,122,24,.25); transform: translateY(-1px); background:#ff6a00; }
.wrapper.home-layout .btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(255,122,24,.2); }

/* Footer polishing */
.wrapper.home-layout footer.area-ft .footer-title { color:#F2F3F5; font-weight:600; }
.wrapper.home-layout footer.area-ft a { color:#FFB020; }
.wrapper.home-layout footer.area-ft a:hover { color:#FF7A18; }

/* Footer QR size */

/* Footer content migrated */
.ershuo-footer { background:linear-gradient(90deg,#2A1F1A 0%,#1E1B16 100%); color:#f5f5f7; padding:48px 0 0 0; font-size:15px; letter-spacing:.02em; margin-top:auto; }
.ershuo-footer .down-ft { max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:40px; }
.ershuo-footer .footer-block{ flex:1 1 320px; min-width:220px; display:flex; flex-direction:column; gap:10px; }
.ershuo-footer .footer-block:nth-child(2){ flex:1 1 220px; min-width:180px; }
.ershuo-footer .footer-block:nth-child(3){ flex:1 1 180px; min-width:160px; align-items:center; }
.ershuo-footer ul{ list-style:none; padding:0; margin:0; line-height:2.1; }
.ershuo-footer .contact-icon,.ershuo-footer .report-icon{ margin-right:7px; font-style:normal; font-size:16px; }
.ershuo-footer .contact-icon{ color:#ffb020; } .ershuo-footer .report-icon{ color:#ffb020; }
.ershuo-footer .download-tip{ font-size:13px; color:#bbb; margin-top:6px; }
.ershuo-footer .copyright-section{ border-top:1px solid #3a2e28; margin-top:40px; padding:20px 0 0 0; text-align:center; font-size:13px; color:#A8AFB8; }
.ershuo-footer .copyright-section span{ margin-right:12px; }
.ershuo-footer .copyright-section a{ color:#FFB020; text-decoration:underline; }

/* About page content migrated */
.about-content{ max-width:100%; margin:0 auto; padding:40px 20px; background:#fff; border-radius:15px; box-shadow:0 8px 25px rgba(255,122,24,.08); border:1px solid #FFE0BF; line-height:1.8; color:#333; }
.about-content h1{ font-size:28px; font-weight:bold; color:#2c3e50; margin-bottom:30px; text-align:center; border-bottom:3px solid #3498db; padding-bottom:15px; }
.about-content h2{ font-size:22px; font-weight:600; color:#34495e; margin:25px 0 15px; }
.about-content h3{ font-size:18px; font-weight:600; color:#2c3e50; margin:20px 0 10px; }
.about-content p{ margin-bottom:15px; text-align:justify; font-size:16px; }
.about-content ul,.about-content ol{ margin:15px 0; padding-left:30px; }
.about-content li{ margin-bottom:8px; font-size:16px; }
.about-content strong{ font-weight:600; color:#2c3e50; }
.about-content em{ font-style:italic; color:#7f8c8d; }
.about-content blockquote{ border-left:4px solid #3498db; padding-left:20px; margin:20px 0; font-style:italic; color:#7f8c8d; background:#f8f9fa; padding:15px 20px; border-radius:0 8px 8px 0; }
.about-content .contact-info{ background:#f8f9fa; padding:20px; border-radius:8px; margin:30px 0; border-left:4px solid #3498db; }
.about-content .contact-info h3{ margin-top:0; color:#2c3e50; }
.about-content .contact-info p{ margin:8px 0; font-size:15px; }
.about-content .contact-info strong{ color:#2c3e50; margin-right:10px; }
.about-content table{ width:100%; border-collapse:collapse; margin:20px 0; }
.about-content table th,.about-content table td{ border:1px solid #ddd; padding:12px; text-align:left; }
.about-content table th{ background:#f8f9fa; font-weight:600; color:#2c3e50; }
.about-content a{ color:#FF7A18; text-decoration:none; transition:color .3s ease; }
.about-content a:hover{ color:#FF6A00; text-decoration:underline; }

.wrapper.home-layout .home-streamer-photo { width: 200px; height: 260px; object-fit: cover; border-radius: 12px; }
.wrapper.home-layout .home-streamer-info { color: #4b5563; margin-top: 8px; }

/* Responsive */
@media (max-width: 1024px) {
	.wrapper.home-layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
	}
	.wrapper.home-layout #doc-hd {
		grid-row: 1;
		grid-column: 1;
		height: auto;
		position: static;
	}
	.wrapper.home-layout .ershuo-header .topbar .container { flex-direction: row; align-items: center; }
	.wrapper.home-layout .hd-nav ul { flex-direction: row; flex-wrap: wrap; }
	.wrapper.home-layout main.home-main { grid-row: 2; grid-column: 1; }
	.wrapper.home-layout footer.area-ft { grid-row: 3; grid-column: 1; }
	.wrapper.home-layout .home-main { grid-template-columns: 1fr; }
	.wrapper.home-layout .hero{ grid-template-columns: 1fr; }
	.wrapper.home-layout .feature-strip{ grid-template-columns: repeat(2, minmax(0,1fr)); }
	.wrapper.home-layout .live-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}


