:root {
    --bg-body: #f4f6f9;
    --bg-white: rgba(255, 255, 255, 0.96);
    --bg-gray: rgba(248, 249, 250, 0.96);
    --text-main: #1a1e23;
    --text-muted: #626c7a;
    --card-radius: 0;
    --btn-radius: 4px;
    --profit-green: #00B85C;
    --profit-hover: #009e4f;
    --loss-red: #FF4D4F;
    --dark-bg: #12161b;
    --line-green: #06C755;
    --border-color: rgba(229, 232, 235, 0.8);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.45;
    background-color: var(--bg-body);
    background-image: url('global-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-gap { padding: 60px 0; backdrop-filter: blur(8px); }
.bg-white { background-color: var(--bg-white); }
.bg-gray { background-color: var(--bg-gray); }
.title-hl { position: relative; z-index: 1; display: inline-block; font-weight: 900; font-size: 32px; }
.title-hl::after {
    content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 10px;
    background: rgba(0, 184, 92, 0.2); z-index: -1;
}
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 10px 24px; border-radius: var(--btn-radius); font-weight: 700; font-size: 15px;
    border: none; background: var(--profit-green); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--profit-hover); }
.btn-line { background: var(--line-green); }
nav {
    position: fixed; top: 0; left: 0; width: 100%; background: var(--dark-bg);
    border-top: 3px solid var(--profit-green); z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo { display: block; height: 28px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links a { font-weight: 600; color: rgba(255,255,255,0.7); margin-right: 24px; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: var(--btn-radius);
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-switch:hover { border-color: var(--profit-green); color: var(--profit-green); }
.page-main { margin-top: 60px; min-height: 60vh; }
.header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.view-all { font-weight: 700; color: var(--profit-green); font-size: 14px; }
.tabs { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn, .tab-link {
    padding: 8px 20px; background: #fff; border: 1px solid var(--border-color);
    font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer;
}
.tab-btn.active, .tab-link.active { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.editorial-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.art-item { background: #fff; border: 1px solid var(--border-color); transition: 0.3s; cursor: pointer; display: block; }
.art-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.art-featured { display: grid; grid-template-columns: 1fr 1fr; }
.art-side { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px; margin-bottom: 16px; }
.art-side:last-child { margin-bottom: 0; }
.art-img-wrapper { overflow: hidden; background: #eee; }
.art-featured .art-img-wrapper { height: 100%; min-height: 280px; }
.art-side .art-img-wrapper { width: 140px; height: 100px; }
.art-img-box { width: 100%; height: 100%; }
.art-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.art-item:hover .art-img-box img { transform: scale(1.05); }
.art-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.art-side .art-content { padding: 0; }
.art-tag { font-size: 11px; font-weight: 900; color: var(--profit-green); letter-spacing: 1px; }
.art-title { font-weight: 900; margin: 8px 0; line-height: 1.3; }
.art-featured .art-title { font-size: 24px; }
.art-side .art-title { font-size: 18px; }
.art-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.art-meta { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.news-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border-color); display: block; }
.news-card .thumb { height: 180px; overflow: hidden; background: #eee; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; }
.news-detail { background: var(--bg-white); padding: 48px 0 80px; }
.news-detail .article-wrap { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border: 1px solid var(--border-color); }
.news-detail h1 { font-size: 32px; font-weight: 900; margin-bottom: 16px; line-height: 1.25; }
.news-detail .meta { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.news-detail .cover { margin-bottom: 32px; }
.news-detail .content { font-size: 16px; line-height: 1.8; color: var(--text-main); word-break: break-word; }
.news-detail .content img { max-width: 100%; height: auto; margin: 16px 0; }
.news-detail .content h1, .news-detail .content h2, .news-detail .content h3 { font-weight: 900; margin: 1.2em 0 0.6em; line-height: 1.3; }
.news-detail .content p { margin: 0 0 1em; }
.news-detail .content ul, .news-detail .content ol { margin: 0 0 1em 1.5em; }
.news-detail .content blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--profit-green); background: rgba(0, 184, 92, 0.06); color: var(--text-muted); }
.news-detail .content pre, .news-detail .content code { font-family: Consolas, Monaco, monospace; font-size: 14px; }
.news-detail .content pre { background: #f4f6f9; padding: 14px; overflow-x: auto; margin: 1em 0; border: 1px solid var(--border-color); }
.news-detail .content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.news-detail .content table th, .news-detail .content table td { border: 1px solid var(--border-color); padding: 8px 12px; }
.news-detail .content a { color: var(--profit-green); text-decoration: underline; }
.pagination-wrap { margin-top: 40px; text-align: center; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--border-color); background: #fff;
}
.pagination-wrap .current { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.site-footer { background: var(--dark-bg); color: rgba(255,255,255,0.5); padding: 40px 0; text-align: center; font-size: 14px; }
@media (max-width: 900px) {
    .editorial-grid, .news-list-grid { grid-template-columns: 1fr; }
    .art-featured { grid-template-columns: 1fr; }
    .art-side { grid-template-columns: 1fr; }
    .art-side .art-img-wrapper { width: 100%; height: 160px; }
}
