/* ================================================================
   260807riqi - "Gongju" Theme Port
   Clean blue + gray theme, modern UI, rounded corners
   Class prefix: rq-
================================================================ */

:root {
    /* New Theme Variables */
    --rq-primary: #3b82f6;
    --rq-primary-hover: #2563eb;
    --rq-bg: #f9fafb;
    --rq-bg-alt: #f3f4f6;

    /* Legacy Variables mapped to new theme to prevent HTML breakage */
    --rq-orange: #3b82f6;
    --rq-orange-d: #2563eb;
    --rq-orange-l: #60a5fa;
    --rq-amber: #3b82f6;
    --rq-amber-l: #eff6ff;
    --rq-cream: #f9fafb;
    --rq-paper: #ffffff;
    --rq-ink: #1f2937;
    --rq-ink-l: #374151;
    --rq-slate: #6b7280;
    --rq-line: #e5e7eb;
    --rq-line-l: #f3f4f6;
    --rq-red: #ef4444;
    --rq-green: #22c55e;
    --rq-sun: #3b82f6;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--rq-bg);
    background-image: none;
    color: var(--rq-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-size: 16px;
}

/* Container */
.rq-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .rq-wrap { max-width: 640px; } }
@media (min-width: 768px) { .rq-wrap { max-width: 768px; } }
@media (min-width: 1024px) { .rq-wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .rq-wrap { max-width: 1280px; } }
@media (min-width: 1536px) { .rq-wrap { max-width: 1536px; } }

/* Header */
.rq-head {
    background: #ffffff;
    border-bottom: 1px solid var(--rq-line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rq-bar {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.rq-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.rq-logo-img {
    height: 2rem;
}

.rq-logo-txt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rq-primary);
    letter-spacing: normal;
}

/* Language switch */
.rq-lang select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: var(--rq-ink);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.3s;
    outline: none;
}
.rq-lang select:hover {
    border-color: var(--rq-primary);
}
.rq-lang select:focus {
    border-color: var(--rq-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.rq-lang select option {
    background: var(--rq-paper);
    color: var(--rq-ink);
}

/* Footer */
.rq-foot {
    background: #ffffff;
    border-top: 1px solid var(--rq-line);
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.rq-foot-info {
    text-align: center;
    color: var(--rq-slate);
    font-size: 0.875rem;
    max-width: 1280px;
    margin: 0 auto;
}
.rq-foot-info p {
    margin-bottom: 0.5rem;
}
.rq-foot-a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.rq-foot-a:hover {
    color: var(--rq-primary);
}

/* Main content */
.rq-main {
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Tool list area */
.rq-list-area {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.rq-cat {
    margin-bottom: 3rem;
}

.rq-cat-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.rq-cat-mark {
    width: 0.375rem;
    height: 1.5rem;
    background: var(--rq-ink);
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.rq-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 640px) { .rq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .rq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tool card */
.rq-card {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.rq-card::after {
    display: none;
}
.rq-card:hover {
    border-color: var(--rq-line);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: none;
}

.rq-card-ico {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.rq-card-ico svg {
    width: 24px;
    height: 24px;
}

.rq-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.rq-card-desc {
    color: var(--rq-slate);
    font-size: 0.875rem;
    flex-grow: 1;
    line-height: 1.5;
}

/* Theme color variants */
.rq-c-blue .rq-card-ico { background: #eff6ff; color: var(--rq-primary); }
.rq-c-blue:hover { border-color: rgba(59, 130, 246, 0.5); }
.rq-c-blue:hover .rq-card-ico { background: var(--rq-primary); color: #fff; }
.rq-c-blue:hover .rq-card-name { color: var(--rq-primary); }

.rq-c-purple .rq-card-ico { background: #faf5ff; color: #a855f7; }
.rq-c-purple:hover { border-color: rgba(168, 85, 247, 0.5); }
.rq-c-purple:hover .rq-card-ico { background: #a855f7; color: #fff; }
.rq-c-purple:hover .rq-card-name { color: #a855f7; }

.rq-c-green .rq-card-ico { background: #f0fdf4; color: #22c55e; }
.rq-c-green:hover { border-color: rgba(34, 197, 94, 0.5); }
.rq-c-green:hover .rq-card-ico { background: #22c55e; color: #fff; }
.rq-c-green:hover .rq-card-name { color: #22c55e; }

.rq-c-orange .rq-card-ico { background: #fff7ed; color: #f97316; }
.rq-c-orange:hover { border-color: rgba(249, 115, 22, 0.5); }
.rq-c-orange:hover .rq-card-ico { background: #f97316; color: #fff; }
.rq-c-orange:hover .rq-card-name { color: #f97316; }

.rq-c-rose .rq-card-ico { background: #fff1f2; color: #f43f5e; }
.rq-c-rose:hover { border-color: rgba(244, 63, 94, 0.5); }
.rq-c-rose:hover .rq-card-ico { background: #f43f5e; color: #fff; }
.rq-c-rose:hover .rq-card-name { color: #f43f5e; }

.rq-c-yellow .rq-card-ico { background: #fefce8; color: #eab308; }
.rq-c-yellow:hover { border-color: rgba(234, 179, 8, 0.5); }
.rq-c-yellow:hover .rq-card-ico { background: #eab308; color: #fff; }
.rq-c-yellow:hover .rq-card-name { color: #eab308; }

/* Tool page container */
.rq-box {
    max-width: 75rem;
    margin: 0 auto 2rem auto;
    background: transparent;
    padding: 1rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - 200px);
}
@media (max-width: 767px) { .rq-box { padding: 1rem; } }

.rq-box-head {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--rq-line);
    padding-bottom: 2rem;
}
.rq-box-head h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.75rem;
}
.rq-box-head p {
    color: var(--rq-slate);
    font-size: 1rem;
}

/* Grid layout */
.rq-cols2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
@media (min-width: 768px) {
    .rq-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Panels */
.rq-panel-in {
    background: var(--rq-bg);
    padding: 1.5rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
}
.rq-panel-out {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
    .rq-panel-in, .rq-panel-out { padding: 2rem; }
}

.rq-panel-h {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.rq-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--rq-primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.rq-dot-g { background: var(--rq-green); }

/* Form elements */
.rq-field {
    margin-bottom: 1.5rem;
}
.rq-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
.rq-ipt {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--rq-ink);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.rq-ipt:focus {
    border-color: var(--rq-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.rq-ipt::placeholder {
    color: #9ca3af;
}
textarea.rq-ipt {
    resize: vertical;
    min-height: 80px;
}
select.rq-ipt {
    cursor: pointer;
    appearance: none;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
}
select.rq-ipt option {
    background: #ffffff;
    color: var(--rq-ink);
}

/* Range input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #d1d5db;
    border-radius: 9999px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid var(--rq-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid var(--rq-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* Checkbox */
input[type="checkbox"] {
    accent-color: var(--rq-primary);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Buttons */
.rq-btn {
    display: inline-block;
    width: 100%;
    background: var(--rq-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 1.125rem;
    font-family: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.rq-btn:hover {
    background: var(--rq-primary-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: none;
}
.rq-btn-sm {
    width: auto;
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}
.rq-btn-ok {
    background: #22c55e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.rq-btn-ok:hover {
    background: #16a34a;
}
.rq-btn-warn {
    background: #f97316;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.rq-btn-warn:hover {
    background: #ea580c;
}
.rq-btn-def {
    background: var(--rq-bg-alt);
    color: var(--rq-ink);
    border: none;
    box-shadow: none;
}
.rq-btn-def:hover {
    background: var(--rq-line);
    color: var(--rq-ink);
    box-shadow: none;
    transform: none;
}

/* Result details */
.rq-res {
    background: var(--rq-bg);
    padding: 1.25rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.rq-res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rq-line);
    padding-bottom: 0.75rem;
}
.rq-res-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rq-res-name {
    font-size: 0.875rem;
    color: var(--rq-slate);
}
.rq-res-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rq-ink);
    font-family: inherit;
}
.rq-res-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--rq-slate);
}

/* Result highlight */
.rq-res-hi {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}
.rq-res-hi-l {
    font-size: 0.875rem;
    font-weight: 500;
    color: #15803d;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}
.rq-res-hi-v {
    font-size: 2.25rem;
    font-weight: 900;
    color: #22c55e;
    letter-spacing: -0.025em;
    font-family: inherit;
}
.rq-res-hi-d {
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 0.5rem;
}

/* ===== Info / Description Section ===== */
.rq-info {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: none;
}
.rq-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.rq-info-title::before {
    content: '';
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--rq-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}
.rq-info-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}
.rq-info-intro {
    color: var(--rq-slate);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.rq-info-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}
@media (min-width: 768px) { .rq-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rq-info-card {
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--rq-line);
    border-top: 1px solid var(--rq-line);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.rq-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--rq-primary), #60a5fa);
}
.rq-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}
.rq-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1rem;
}
.rq-info-card p {
    color: var(--rq-slate);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.rq-info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.rq-info-card ul li {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}
.rq-info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #93c5fd;
}

/* FAQ section */
.rq-faq {
    padding: 3rem 0;
}
.rq-faq-kicker {
    display: none;
}
.rq-faq-h {
    display: none;
}
.rq-faq-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.rq-faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.75rem 2rem;
    border: 1px solid rgba(219, 230, 244, 0.8);
    border-radius: 1.25rem;
    border-left: 1px solid rgba(219, 230, 244, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: block;
    overflow: hidden;
}
.rq-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rq-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rq-faq-item:hover {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}
.rq-faq-item:hover::before {
    opacity: 1;
}
.rq-faq-num {
    display: none;
}
.rq-faq-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.rq-faq-body h3::before {
    content: 'Q.';
    color: var(--rq-primary);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    font-weight: 900;
    flex-shrink: 0;
}
.rq-faq-body p {
    color: var(--rq-slate);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 2rem;
}

/* Policy page */
.rq-policy {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .rq-policy { padding: 1.5rem 1rem; } }

.rq-policy-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rq-line);
    padding-bottom: 1.5rem;
}
.rq-policy-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
}
.rq-policy-date {
    color: var(--rq-slate);
    font-size: 0.875rem;
}
.rq-policy-body {
    color: var(--rq-ink);
    line-height: 1.7;
    font-size: 1rem;
}
.rq-policy-sec {
    margin-bottom: 1.75rem;
}
.rq-policy-sec:last-child { margin-bottom: 0; }
.rq-policy-sec h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--rq-primary);
    border-radius: 0;
}
.rq-policy-sec p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.rq-policy-sec ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.rq-policy-sec li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #4b5563;
}
.rq-policy-sec a {
    color: var(--rq-primary);
    text-decoration: none;
}
.rq-policy-sec a:hover {
    text-decoration: underline;
}
.rq-policy-back {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rq-line);
}

/* Contact page */
.rq-contact {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .rq-contact { padding: 1.5rem 1rem; } }

.rq-contact-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rq-line);
    padding-bottom: 1.5rem;
}
.rq-contact-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
}
.rq-contact-desc {
    color: var(--rq-slate);
    font-size: 0.875rem;
}

.rq-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 767px) { .rq-contact-grid { grid-template-columns: 1fr; } }

.rq-contact-card {
    padding: 1.5rem;
    background: var(--rq-bg);
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    text-align: center;
}
.rq-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: var(--rq-primary);
    margin-bottom: 1rem;
}
.rq-contact-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
}
.rq-contact-card p {
    color: var(--rq-slate);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.rq-contact-a {
    display: inline-block;
    color: var(--rq-primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.rq-contact-a:hover {
    text-decoration: underline;
}
.rq-contact-icp {
    font-size: 0.875rem;
    color: var(--rq-slate);
}
.rq-contact-note {
    text-align: center;
    padding: 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}
.rq-contact-note p {
    color: #1e40af;
    font-size: 0.875rem;
    margin: 0;
}
.rq-contact-back {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rq-line);
}

/* News list page */
.rq-news-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) { .rq-news-wrap { flex-direction: row; } }
.rq-news-main { flex: 3; }
.rq-news-side { flex: 1; }
@media (max-width: 767px) { .rq-news-side { flex: auto; } }

.rq-news-head {
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.rq-news-head h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.75rem;
}
.rq-news-head p {
    color: var(--rq-slate);
    font-size: 1rem;
}

.rq-news-box {
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.rq-news-list { list-style: none; }
.rq-news-item {
    border-bottom: 1px solid var(--rq-line);
    transition: background 0.3s;
}
.rq-news-item:last-child { border-bottom: none; }
.rq-news-item:hover {
    background: var(--rq-bg);
}
.rq-news-item a {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
}
.rq-news-thumb {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: block;
}
@media (max-width: 640px) {
    .rq-news-item a { flex-direction: column; }
    .rq-news-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}
.rq-news-body { flex: 1; min-width: 0; }
.rq-news-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.rq-news-item:hover .rq-news-body h2 { color: var(--rq-primary); }
.rq-news-body p {
    color: var(--rq-slate);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rq-news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--rq-slate);
}
.rq-news-empty {
    padding: 3rem;
    text-align: center;
    color: var(--rq-slate);
}
.rq-news-page {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.rq-news-side-box {
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.rq-news-side-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    border-radius: 0;
    display: flex;
    align-items: center;
}
.rq-news-side-box h3::before {
    content: '';
    width: 0.25rem;
    height: 1rem;
    background-color: var(--rq-primary);
    border-radius: 9999px;
    margin-right: 0.5rem;
}
.rq-news-side-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rq-news-side-box li a {
    color: var(--rq-slate);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.rq-news-side-box li a:hover { color: var(--rq-primary); }

/* Article detail page */
.rq-article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .rq-article { padding: 1.5rem 1rem; } }

.rq-article-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rq-line);
    padding-bottom: 1.5rem;
}
.rq-article-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 0.5rem;
}
.rq-article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--rq-slate);
}
.rq-article-meta a {
    color: var(--rq-primary);
    text-decoration: none;
}
.rq-article-meta a:hover { text-decoration: underline; }

.rq-article-body {
    color: var(--rq-ink);
    font-size: 1rem;
    line-height: 1.7;
}
.rq-article-body p { margin-bottom: 1.25rem; }
.rq-article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.rq-article-body h2, .rq-article-body h3 {
    color: var(--rq-ink);
    margin: 1.5rem 0 1rem;
}
.rq-article-body a {
    color: var(--rq-primary);
}
.rq-article-body pre {
    background: var(--rq-bg);
    padding: 1.25rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
}
.rq-article-body code {
    background: var(--rq-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--rq-primary);
}

.rq-article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rq-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--rq-slate);
}
.rq-article-nav a {
    color: var(--rq-primary);
    text-decoration: none;
}
.rq-article-nav a:hover { text-decoration: underline; }

.rq-rel-sec {
    margin-top: 2rem;
}
.rq-rel-sec h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    border-radius: 0;
    display: flex;
    align-items: center;
}
.rq-rel-sec h3::before {
    content: '';
    width: 0.375rem;
    height: 1.25rem;
    background-color: var(--rq-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}
.rq-rel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .rq-rel-grid { grid-template-columns: 1fr 1fr; } }
.rq-rel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--rq-line);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    background: #ffffff;
    gap: 0;
}
.rq-rel-item:hover {
    border-color: #bfdbfe;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.rq-rel-item .rq-rel-dot {
    width: 6px;
    height: 6px;
    background: var(--rq-primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.rq-rel-item:hover .rq-rel-dot { background: var(--rq-primary); }
.rq-rel-item span {
    color: var(--rq-ink);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rq-rel-item:hover span { color: var(--rq-ink); }

/* Friendly links */
.rq-link-area {
    background: #ffffff;
    border: 1px solid var(--rq-line);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}
.rq-link-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rq-ink);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.rq-link-title::before {
    content: '';
    width: 0.375rem;
    height: 1.25rem;
    background: var(--rq-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}
.rq-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.rq-link-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--rq-slate);
    background: var(--rq-bg);
    border: 1px solid var(--rq-line);
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    transition: all 0.25s;
}
.rq-link-item:hover {
    color: var(--rq-primary);
    border-color: rgba(59, 130, 246, 0.5);
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}
@media (max-width: 640px) {
    .rq-link-area { padding: 1.25rem 1rem; }
    .rq-link-list { gap: 0.5rem; }
    .rq-link-item { font-size: 0.8125rem; padding: 0.3rem 0.875rem; }
}

/* Utility classes */
.rq-center { text-align: center; }
.rq-mt8 { margin-top: 2rem; }
.rq-pt8 { padding-top: 2rem; }
.rq-border-t { border-top: none; }
.rq-mt4 { margin-top: 1rem; }
.rq-mb4 { margin-bottom: 1rem; }
.rq-hidden { display: none !important; }

/* ================================================================
   Huangli theme
================================================================ */
.hl-page { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }
.hl-hero { background: linear-gradient(135deg, #7c2d12 0%, #b45309 52%, #d97706 100%); border-radius: 20px; padding: 2rem; color: #fff; box-shadow: 0 18px 40px rgba(146, 64, 14, .22); position: relative; overflow: hidden; }
.hl-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hl-hero-top { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; position: relative; z-index: 1; }
.hl-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .82; margin-bottom: .6rem; }
.hl-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 .6rem; font-weight: 800; }
.hl-sub { font-size: 1rem; opacity: .92; }
.hl-date-box { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px; padding: 1rem; min-width: 230px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: .55rem; }
.hl-date-box label { font-size: .78rem; opacity: .85; }
.hl-date-box input { width: 100%; border: none; border-radius: 10px; padding: .65rem .75rem; font-size: .95rem; color: #1f2937; background: #fff; }
.hl-date-box button { border: none; border-radius: 10px; padding: .7rem .9rem; font-weight: 700; color: #7c2d12; background: #fde68a; cursor: pointer; transition: .2s; }
.hl-date-box button:hover { background: #fcd34d; transform: translateY(-1px); }
.hl-date-box a { color: #fff; font-size: .8rem; text-align: center; opacity: .85; text-decoration: underline; }
.hl-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; position: relative; z-index: 1; }
.hl-meta span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .35rem .75rem; font-size: .82rem; }
.hl-meta .hl-today { background: #fde68a; color: #7c2d12; border-color: #fde68a; font-weight: 700; }
.hl-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.hl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-card { background: #fff; border: 1px solid #f3e8c8; border-radius: 16px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(146, 64, 14, .05); }
.hl-card h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; color: #7c2d12; margin: 0 0 .9rem; }
.hl-card h3 { font-size: .92rem; color: #92400e; margin: 1rem 0 .4rem; }
.hl-card p { color: #374151; line-height: 1.75; font-size: .92rem; }
.hl-dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.hl-dot-green { background: #16a34a; }
.hl-dot-red { background: #dc2626; }
.hl-card-yi { border-top: 4px solid #16a34a; }
.hl-card-ji { border-top: 4px solid #dc2626; }
.hl-yi-text { color: #15803d !important; font-weight: 600; }
.hl-ji-text { color: #b91c1c !important; font-weight: 600; }
.hl-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #f1e5c8; font-size: .9rem; }
.hl-kv:last-child { border-bottom: none; }
.hl-kv span { color: #92400e; flex: 0 0 auto; }
.hl-kv strong { color: #1f2937; text-align: right; font-weight: 600; word-break: break-word; }
.hl-tags { color: #4b5563; line-height: 1.9; }
.hl-mini { text-align: center; }
.hl-mini h2 { justify-content: center; font-size: .92rem; }
.hl-mini p { font-size: 1.15rem; font-weight: 800; color: #1f2937; margin-bottom: .4rem; }
.hl-badge { display: inline-block; border-radius: 999px; padding: .18rem .55rem; font-size: .75rem; font-weight: 700; }
.hl-badge-good { background: #dcfce7; color: #15803d; }
.hl-badge-bad { background: #fee2e2; color: #b91c1c; }
.hl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hl-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
.hl-table th { background: #fffbeb; color: #92400e; text-align: left; padding: .7rem .75rem; font-weight: 700; border-bottom: 1px solid #fde68a; white-space: nowrap; }
.hl-table td { padding: .7rem .75rem; border-bottom: 1px solid #f5f0e1; vertical-align: top; color: #374151; }
.hl-tr-good td { background: #f0fdf4; }
.hl-tr-bad td { background: #fff7f7; }
.hl-luck { display: inline-block; border-radius: 6px; padding: .12rem .45rem; font-weight: 700; font-size: .78rem; }
.hl-luck-good { background: #dcfce7; color: #15803d; }
.hl-luck-bad { background: #fee2e2; color: #b91c1c; }
.hl-song { color: #6b7280 !important; font-style: italic; }
.hl-recent { display: flex; flex-wrap: wrap; gap: .55rem; }
.hl-recent a { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; border-radius: 999px; padding: .38rem .8rem; font-size: .82rem; transition: .2s; }
.hl-recent a:hover, .hl-recent a.active { background: #b45309; border-color: #b45309; color: #fff; }
.hl-knowledge p + p { margin-top: .6rem; }
.hl-faq { margin-top: 1.5rem; background: #fff; border: 1px solid #f3e8c8; border-radius: 16px; padding: 1.5rem; }
.hl-faq-head { text-align: center; margin-bottom: 1rem; }
.hl-faq-head p { color: #b45309; font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
.hl-faq-head h2 { font-size: 1.3rem; color: #1f2937; margin-top: .3rem; }
.hl-faq-list { display: grid; gap: .75rem; }
.hl-faq-list article { border: 1px solid #f5f0e1; border-radius: 12px; padding: 1rem; background: #fffdf7; }
.hl-faq-list h3 { font-size: .95rem; color: #7c2d12; margin-bottom: .35rem; }
.hl-faq-list p { font-size: .88rem; color: #4b5563; line-height: 1.75; }
.hl-disclaimer { margin-top: 1.5rem; text-align: center; color: #9ca3af; font-size: .8rem; line-height: 1.7; }
.hl-nav { display: flex; gap: .35rem; align-items: center; }
.hl-nav a { color: #6b5b4b; font-size: .9rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; transition: color .2s, background .2s; }
.hl-nav a:hover { color: #c62828; background: #fff5ee; }
@media (max-width: 900px) {
    .hl-grid-2, .hl-grid-4 { grid-template-columns: 1fr; }
    .hl-hero-top { flex-direction: column; }
    .hl-date-box { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
    .hl-page { padding: 1rem .75rem 2rem; }
    .hl-hero { padding: 1.35rem; border-radius: 16px; }
    .hl-title { font-size: 1.7rem; }
    .hl-card { padding: 1rem; }
    .hl-kv { flex-direction: column; gap: .2rem; }
    .hl-kv strong { text-align: left; }
}

/* ================================================================
   Huangli redesign - calendar + detail + almanac table
================================================================ */
.hl-page { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; }
.hl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hl-calendar a, .hl-detail a, .hl-recent a { text-decoration: none; }
.hl-error-card { background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; padding: 2rem; text-align: center; }
.hl-error-card h1 { color: #8b1e1e; font-size: 1.4rem; margin-bottom: .5rem; }
.hl-error-card p { color: #6b7280; }

.hl-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 1.1rem; align-items: start; }
.hl-calendar { background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; padding: 1rem; }
.hl-calendar-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.hl-calendar-tools { display: flex; align-items: center; gap: .5rem; }
.hl-date-input { border: 1px solid #e6e0d4; border-radius: 5px; padding: .35rem .5rem; font-size: .85rem; color: #374151; background: #fff; }
.hl-today-link { font-size: .8rem; color: #c62828; border: 1px solid #e8c4c4; border-radius: 5px; padding: .28rem .55rem; }
.hl-today-link:hover { background: #fff5f5; }
.hl-month-nav { display: flex; align-items: center; gap: .45rem; color: #8b5e3c; font-size: .85rem; }
.hl-month-nav a { color: #8b5e3c; font-size: 1.1rem; line-height: 1; padding: .15rem .35rem; }
.hl-month-nav a:hover { color: #c62828; }
.hl-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .78rem; color: #9ca3af; padding: .45rem 0; border-bottom: 1px solid #f0ece2; }
.hl-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.hl-day { position: relative; min-height: 68px; padding: .4rem .2rem .3rem; display: flex; flex-direction: column; align-items: center; gap: .08rem; border-right: 1px solid #f5f1e8; border-bottom: 1px solid #f5f1e8; color: #374151; text-align: center; }
.hl-day:nth-child(7n) { border-right: none; }
.hl-day:hover { background: #fff7f2; }
.hl-day-out:hover { background: #fffdf9; }
.hl-day-num { font-size: 1.08rem; font-weight: 600; line-height: 1.15; }
.hl-day-lunar { font-size: .67rem; color: #9ca3af; line-height: 1.2; }
.hl-day-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; color: #2e7d32; line-height: 1.2; }
.hl-day-out { opacity: .32; }
.hl-day-weekend .hl-day-num { color: #c62828; }
.hl-day-selected { background: #c62828; color: #fff; border-radius: 6px; }
.hl-day-selected:hover { background: #c62828; }
.hl-day-selected .hl-day-num, .hl-day-selected .hl-day-lunar, .hl-day-selected .hl-day-label { color: #fff; }
.hl-day-selected .hl-day-label { color: #ffe3e3; }
.hl-day-today:not(.hl-day-selected) { box-shadow: inset 0 0 0 1px #e8a0a0; border-radius: 6px; }
.hl-day-badge { position: absolute; top: 3px; left: 3px; min-width: 14px; height: 14px; line-height: 14px; border-radius: 3px; font-size: .58rem; color: #fff; text-align: center; padding: 0 2px; }
.hl-badge-rest { background: #2e9e5b; }
.hl-badge-work { background: #d97706; }

.hl-detail { background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; padding: 1.1rem 1.2rem; text-align: center; }
.hl-detail-head { font-size: .92rem; color: #8b1e1e; font-weight: 600; }
.hl-detail-today { margin: .35rem 0 .1rem; }
.hl-today-text { font-size: .82rem; color: #c62828; font-weight: 600; }
.hl-detail-day { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin: .35rem 0 .2rem; }
.hl-big-day { font-size: 4.2rem; line-height: 1; font-weight: 800; color: #c62828; }
.hl-arrow { font-size: 2.4rem; line-height: 1; color: #c62828; font-weight: 700; padding: 0 .2rem; }
.hl-arrow:hover { color: #8b1e1e; }
.hl-detail-lunar { color: #8b1e1e; font-size: .92rem; font-weight: 600; margin-bottom: .55rem; }
.hl-ganzhi-box { border: 1px solid #d9a3a3; border-radius: 5px; padding: .42rem .5rem; color: #8b1e1e; font-size: .85rem; font-weight: 600; margin-bottom: .7rem; }
.hl-yiji { display: grid; gap: .5rem; text-align: left; }
.hl-yiji-row { display: flex; gap: .55rem; background: #f3faf4; border-radius: 6px; padding: .5rem .55rem; }
.hl-yiji-ji { background: #fff5f5; }
.hl-yiji-badge { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 5px; background: #2e9e5b; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.hl-yiji-ji .hl-yiji-badge { background: #c62828; }
.hl-yiji-row p { margin: 0; font-size: .8rem; line-height: 1.65; color: #374151; }
.hl-jieqi-lines { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid #f0ece2; text-align: left; display: grid; gap: .3rem; font-size: .78rem; color: #6b7280; }
.hl-jieqi-lines strong { color: #8b1e1e; font-weight: 600; }
.hl-jieqi-lines em { font-style: normal; color: #9ca3af; }

.hl-almanac-wrap { margin-top: 1.1rem; overflow-x: auto; }
.hl-almanac { display: grid; grid-template-columns: repeat(15, 1fr); min-width: 760px; background: #fff; border-top: 1px solid #e6e0d4; border-left: 1px solid #e6e0d4; }
.hl-acell { min-height: 62px; padding: .55rem .45rem; border-right: 1px solid #e6e0d4; border-bottom: 1px solid #e6e0d4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; text-align: center; }
.hl-acell .hl-label { color: #b45309; font-size: .75rem; line-height: 1.3; }
.hl-acell strong { color: #374151; font-size: .82rem; font-weight: 600; line-height: 1.55; }
.hl-acell-w3 { grid-column: span 3; }
.hl-acell-w5 { grid-column: span 5; }
.hl-acell-full { grid-column: span 15; }
.hl-acell-vertical { grid-column: span 1; writing-mode: vertical-rl; text-orientation: upright; flex-direction: row; gap: .35rem; }
.hl-acell-god { grid-column: span 5; }
.hl-acell-tai { grid-column: span 4; }
.hl-acell-xiong { grid-column: span 4; }
.hl-acell-star { grid-column: span 1; writing-mode: vertical-rl; text-orientation: upright; flex-direction: row; gap: .35rem; }
.hl-acell-vertical .hl-label, .hl-acell-star .hl-label { color: #b45309; }

.hl-hours-section, .hl-recent-section { margin-top: 1.25rem; }
.hl-section-title { font-size: 1.05rem; color: #8b1e1e; font-weight: 700; margin-bottom: .6rem; }
.hl-hours-wrap { overflow-x: auto; margin-top: .25rem; }
.hl-hours { display: grid; grid-template-columns: repeat(12, minmax(110px, 1fr)); min-width: 1320px; background: #fff; border-top: 1px solid #e6e0d4; border-left: 1px solid #e6e0d4; }
.hl-hour { border-right: 1px solid #e6e0d4; border-bottom: 1px solid #e6e0d4; padding: .55rem .35rem; display: flex; flex-direction: column; gap: .22rem; text-align: center; font-size: .7rem; }
.hl-hour-name { font-size: 1rem; font-weight: 700; color: #8b1e1e; }
.hl-hour-time { color: #9ca3af; font-size: .64rem; }
.hl-hour-ganzhi { color: #374151; font-weight: 600; }
.hl-hour-luck { align-self: center; border-radius: 4px; padding: .08rem .35rem; font-size: .64rem; font-weight: 700; }
.hl-hour-yi { color: #2e7d32; text-align: left; line-height: 1.45; }
.hl-hour-ji { color: #c62828; text-align: left; line-height: 1.45; }

.hl-recent { display: flex; flex-wrap: wrap; gap: .5rem; }
.hl-recent a { border: 1px solid #e6e0d4; background: #fff; color: #8b5e3c; border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; }
.hl-recent a:hover, .hl-recent a.active { background: #c62828; border-color: #c62828; color: #fff; }

.hl-faq { margin-top: 1.25rem; background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; padding: 1.25rem; }
.hl-faq-head { text-align: center; margin-bottom: .9rem; }
.hl-faq-head p { color: #b45309; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.hl-faq-head h2 { color: #374151; font-size: 1.2rem; margin-top: .25rem; }
.hl-faq-list { display: grid; gap: .6rem; }
.hl-faq-list article { border: 1px solid #f0ece2; border-radius: 8px; padding: .85rem .95rem; background: #fffdf9; }
.hl-faq-list h3 { color: #8b1e1e; font-size: .92rem; margin-bottom: .3rem; }
.hl-faq-list p { color: #4b5563; font-size: .84rem; line-height: 1.7; }
.hl-disclaimer { margin-top: 1.25rem; text-align: center; color: #9ca3af; font-size: .78rem; line-height: 1.7; }

@media (max-width: 1000px) {
    .hl-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hl-page { padding: 1rem .6rem 2rem; }
    .hl-calendar { padding: .65rem .45rem; }
    .hl-calendar-head { flex-direction: column; align-items: flex-start; }
    .hl-day { min-height: 58px; }
    .hl-day-num { font-size: .95rem; }
    .hl-day-lunar { font-size: .6rem; }
    .hl-day-label { font-size: .58rem; }
    .hl-big-day { font-size: 3.4rem; }
    .hl-acell-vertical, .hl-acell-star { writing-mode: horizontal-tb; flex-direction: column; }
}

/* ================================================================
   Huangli homepage
================================================================ */
.hl-home {
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    color: #374151;
}

/* Hero */
.hl-home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 2rem;
    align-items: center;
    padding: 2.6rem 2.5rem;
    border-radius: 20px;
    background:
            radial-gradient(120% 130% at 88% 8%, rgba(253, 230, 138, .3) 0%, rgba(253, 230, 138, 0) 52%),
            linear-gradient(135deg, #701a1a 0%, #931e1e 44%, #a8470f 100%);
    color: #fff;
    box-shadow: 0 24px 48px -22px rgba(112, 26, 26, .6);
}
.hl-home-hero::before {
    content: '曆';
    position: absolute;
    right: 1.4rem;
    bottom: -5rem;
    font-size: 17rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, .055);
    pointer-events: none;
    user-select: none;
}
.hl-home-hero-main { position: relative; z-index: 1; }
.hl-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .76rem;
    letter-spacing: .22em;
    color: #fde68a;
    margin-bottom: 1rem;
}
.hl-home-kicker::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: .85;
}
.hl-home-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: .02em;
    margin: 0 0 .9rem;
    color: #fff;
}
.hl-home-sub {
    max-width: 34rem;
    font-size: .96rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, .88);
}
.hl-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.6rem;
}
.hl-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffeaa8, #fcd34d);
    color: #7f1d1d;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hl-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6);
}
.hl-home-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}
.hl-home-btn-ghost:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .8);
}

/* Today date card */
.hl-home-date {
    position: relative;
    z-index: 1;
    background: #fffdf7;
    border-radius: 16px;
    padding: 1.3rem 1.2rem 1.2rem;
    text-align: center;
    color: #7f1d1d;
    box-shadow: 0 20px 34px -18px rgba(0, 0, 0, .55);
}
.hl-home-date::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(198, 40, 40, .32);
    border-radius: 11px;
    pointer-events: none;
}
.hl-home-date-top {
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    letter-spacing: .14em;
    color: #b45309;
}
.hl-home-date-num {
    display: block;
    font-size: 4.4rem;
    line-height: 1.05;
    font-weight: 800;
    color: #c62828;
    margin: .3rem 0 .1rem;
    font-variant-numeric: tabular-nums;
}
.hl-home-date-ym { font-size: .9rem; color: #8b5e3c; }
.hl-home-date-week { margin-top: .5rem; font-size: .8rem; color: #6b7280; }
.hl-home-date-seal {
    display: inline-block;
    margin-top: .85rem;
    padding: .24rem .95rem .24rem 1.25rem;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: .76rem;
    letter-spacing: .3em;
}

/* Quick date chips */
.hl-home-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-top: 1.6rem;
    padding: .95rem 1.1rem;
    background: #fff;
    border: 1px solid #efe7d8;
    border-radius: 14px;
}
.hl-home-quick-title {
    flex: 0 0 auto;
    font-size: .92rem;
    font-weight: 700;
    color: #8b1e1e;
    padding-right: .9rem;
    border-right: 1px solid #f0e6d6;
}
.hl-home-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.hl-home-chip {
    border: 1px solid #eee1cb;
    background: #fffdf7;
    color: #8b5e3c;
    border-radius: 999px;
    padding: .34rem .8rem;
    font-size: .8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}
.hl-home-chip:hover {
    color: #b45309;
    border-color: #e8c9a0;
    background: #fff7ed;
    transform: translateY(-1px);
}
.hl-home-chip.is-active {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
    font-weight: 700;
}

/* Section scaffold */
.hl-home-sec { margin-top: 2.4rem; }
.hl-home-sec-head { margin-bottom: 1.15rem; }
.hl-home-sec-head h2 {
    display: flex;
    align-items: center;
    font-size: 1.28rem;
    color: #8b1e1e;
    font-weight: 700;
    margin-bottom: .35rem;
}
.hl-home-sec-head h2::before {
    content: '';
    width: .3rem;
    height: 1.15rem;
    background: linear-gradient(180deg, #c62828, #d97706);
    border-radius: 999px;
    margin-right: .6rem;
}
.hl-home-sec-head p { font-size: .84rem; color: #9ca3af; }

/* Tool category + card */
.hl-home-cat + .hl-home-cat { margin-top: 1.6rem; }
.hl-home-cat-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #8b5e3c;
    margin-bottom: .85rem;
}
.hl-home-cat-mark {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #d97706;
    margin-right: .5rem;
}
.hl-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.hl-home-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e6e0d4;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hl-home-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c62828, #d97706);
    opacity: 0;
    transition: opacity .22s ease;
}
.hl-home-card:hover {
    transform: translateY(-2px);
    border-color: #e8c4c4;
    box-shadow: 0 18px 30px -20px rgba(139, 30, 30, .5);
}
.hl-home-card:hover::before { opacity: 1; }
.hl-home-card-ico {
    flex: 0 0 auto;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3e6;
    color: #c2410c;
}
.hl-home-card-ico svg { width: 1.6rem; height: 1.6rem; }
.hl-home-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .28rem;
}
.hl-home-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #8b1e1e;
}
.hl-home-card-desc {
    font-size: .84rem;
    line-height: 1.7;
    color: #6b7280;
}
.hl-home-card-go {
    flex: 0 0 auto;
    font-size: .8rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #f0d9a8;
    border-radius: 999px;
    padding: .34rem .8rem;
    transition: all .22s ease;
}
.hl-home-card:hover .hl-home-card-go {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

/* Feature grid */
.hl-home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.hl-home-feature {
    padding: 1.25rem 1.15rem;
    background: #fffdf9;
    border: 1px solid #f0e9da;
    border-radius: 14px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hl-home-feature:hover {
    transform: translateY(-3px);
    border-color: #ecd6b8;
    box-shadow: 0 16px 28px -20px rgba(139, 30, 30, .45);
}
.hl-home-feature-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #fdf2e3;
    color: #b45309;
}
.hl-home-feature-ico svg { width: 1.3rem; height: 1.3rem; }
.hl-home-feature h3 {
    font-size: .96rem;
    color: #8b1e1e;
    font-weight: 700;
    margin: .75rem 0 .35rem;
}
.hl-home-feature p {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.75;
}

/* Friendly links */
.hl-home-links {
    margin-top: 2.4rem;
    padding: 1.3rem 1.5rem;
    background: #fff;
    border: 1px solid #e6e0d4;
    border-radius: 14px;
}
.hl-home-links h2 {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #8b1e1e;
    margin-bottom: .9rem;
}
.hl-home-links h2::before {
    content: '';
    width: .3rem;
    height: 1rem;
    background: #c62828;
    border-radius: 999px;
    margin-right: .55rem;
}
.hl-home-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.hl-home-link {
    font-size: .8rem;
    color: #6b7280;
    background: #fffdf7;
    border: 1px solid #eee3cc;
    border-radius: 999px;
    padding: .32rem .85rem;
    text-decoration: none;
    transition: all .2s ease;
}
.hl-home-link:hover {
    color: #b45309;
    border-color: #e8c9a0;
    background: #fff7ed;
    transform: translateY(-1px);
}

/* Shared header/footer alignment for this theme */
.rq-head { border-bottom-color: #ece4d6; }
.rq-logo-txt { color: #8b1e1e; }
.rq-foot { background: #fffdf9; border-top-color: #ece4d6; }
.rq-foot-a:hover { color: #c62828; }

@media (max-width: 980px) {
    .hl-home-hero { grid-template-columns: 1fr; padding: 2rem 1.6rem; }
    .hl-home-date { width: 100%; max-width: 320px; }
    .hl-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hl-home-hero { padding: 1.6rem 1.25rem; border-radius: 16px; gap: 1.5rem; }
    .hl-home-hero::before { font-size: 12rem; bottom: -3.5rem; }
    .hl-home-date-num { font-size: 3.4rem; }
    .hl-home-actions { flex-direction: column; align-items: stretch; }
    .hl-home-date { max-width: none; }
    .hl-home-quick { padding: .85rem .9rem; }
    .hl-home-quick-title { width: 100%; border-right: none; padding-right: 0; }
    .hl-home-grid { grid-template-columns: 1fr; }
    .hl-home-card { padding: 1.05rem 1.1rem; }
    .hl-home-card-go { display: none; }
    .hl-home-features { grid-template-columns: 1fr; }
    .hl-home-links { padding: 1.1rem 1rem; }
}