:root {
    --jh-pink: #d17581;
    --jh-light-pink: #fdf2f4;
    --jh-text: #333;
    --jh-gray: #999;
    --jh-light-gray: #eee;
    --jh-bg-grid: #f3f3f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--jh-text);
    line-height: 1.8;
    background-color: #fff;
    background-image: 
        linear-gradient(var(--jh-bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--jh-bg-grid) 1px, transparent 1px);
    background-size: 25px 25px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid var(--jh-light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--jh-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jh-pink);
    font-size: 14px;
}

.social a:hover {
    background: var(--jh-pink);
    color: #fff;
}

.logo {
    font-size: 44px;
    font-weight: 700;
    color: #333;
    letter-spacing: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icons {
    display: flex;
    gap: 15px;
    color: var(--jh-pink);
    font-size: 22px;
}

.lang {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Nav */
.nav {
    border-top: 1px solid var(--jh-light-gray);
    border-bottom: 1px solid var(--jh-light-gray);
    background: #fff;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.nav li {
    flex: 0 0 auto;
}

.nav li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.nav li.active {
    background: var(--jh-pink);
}

.nav li.active a {
    color: #fff;
}

.nav li:hover:not(.active) a {
    color: var(--jh-pink);
}

/* Sub Nav */
.sub-nav {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.special-pill {
    background: var(--jh-light-pink);
    color: var(--jh-pink);
    padding: 5px 18px;
    border-radius: 25px;
    border: 1px solid #f9d8dd;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tags::-webkit-scrollbar { display: none; }

.tags a {
    padding: 4px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    color: #888;
    background: #fff;
    white-space: nowrap;
}

.tags a:hover {
    border-color: var(--jh-pink);
    color: var(--jh-pink);
}

/* Main Content */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    margin-top: 30px;
    padding-bottom: 80px;
}

.breadcrumb {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 25px;
}

.article-title {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #222;
}

.meta {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--jh-gray);
    margin-bottom: 35px;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.author-icon-circle {
    width: 32px;
    height: 32px;
    background: var(--jh-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

/* Summary Box */
.feature-box {
    background: #fdfafb;
    border-left: 5px solid var(--jh-pink);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
}

.feature-box h4 {
    color: var(--jh-pink);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.feature-box p {
    font-size: 16px;
    margin-bottom: 0;
    color: #555;
}

.main-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.body-text h2 {
    font-size: 26px;
    margin: 50px 0 25px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--jh-pink);
    display: inline-block;
    color: #222;
}

.body-text p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 30px;
    color: #444;
    text-align: justify;
}

.body-text strong {
    color: #222;
}

.body-text img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 30px;
}

/* Sidebar */
.sidebar h3 {
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    position: relative;
    font-weight: bold;
}

.sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--jh-pink);
}

.rank-item {
    margin-bottom: 35px;
}

.rank-no {
    font-weight: 900;
    color: #eee;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.rank-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.rank-title {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 70px 0;
    background: #fff;
    border-top: 1px solid var(--jh-light-gray);
    text-align: center;
}

.footer-logo {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Sticky Tabs */
.sticky-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2000;
}

.sticky-tab {
    background: var(--jh-pink);
    color: #fff;
    padding: 20px 12px;
    writing-mode: vertical-rl;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: -3px 3px 15px rgba(0,0,0,0.1);
    font-weight: bold;
    letter-spacing: 1px;
}

.sticky-tab.blue {
    background: #6b8db5;
}

@media (max-width: 1000px) {
    .logo { position: static; transform: none; font-size: 32px; margin: 15px 0; text-align: center; width: 100%; }
    .header-top { flex-direction: column; gap: 15px; }
    .nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .nav ul::-webkit-scrollbar { display: none; }
    .nav li a { padding: 14px 18px; }
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .article-title { font-size: 32px; }
}
