/* The Agent Watch — Design System (based on AdBlue-Haldex v2.2) */
:root {
    --brand-dark: #1d3557;
    --brand-red: #e63946;
    --brand-blue-light: #457b9d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #2b2d42;
    --text-muted: #64748b;
    --max-width: 900px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--brand-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-red); }

/* Header */
header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 32px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--brand-dark);
}
.site-title span:first-child { font-weight: 400; }
.site-title span:nth-child(2) { color: var(--brand-red); }

nav { display: flex; gap: 18px; }
nav a {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--brand-red); }

/* Hero */
.hero {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px 40px;
    margin-bottom: 48px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--brand-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05em;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Sections */
h2 {
    font-size: 1.3em;
    color: var(--brand-dark);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

h3 { font-size: 1.05em; color: var(--brand-dark); margin: 10px 0 6px; }

/* News items */
.news-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-item h3 { margin-top: 0; font-size: 1rem; }
.news-item p { color: var(--text-muted); font-size: 0.92em; margin-top: 6px; }
.news-item .source { font-size: 0.82em; margin-top: 10px; }
.news-item .source a { color: var(--text-muted); }
.news-item .source a:hover { color: var(--brand-red); }

/* Tags */
.tag {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-right: 6px;
    border: 1.5px solid;
}

.tag-model    { color: var(--brand-dark); border-color: var(--brand-dark); }
.tag-tool     { color: #2d6a4f; border-color: #2d6a4f; }
.tag-industry { color: var(--brand-red); border-color: var(--brand-red); }

/* Watch section */
.watch-section {
    background: var(--bg-light);
    border-left: 4px solid var(--brand-red);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 18px 0;
}

.watch-section h3 { color: var(--brand-dark); margin-top: 0; }

/* Briefing date */
.briefing-date { color: var(--text-muted); font-size: 0.9em; margin-bottom: 28px; }

/* Briefing list */
.briefing-list { list-style: none; }
.briefing-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.briefing-list li:last-child { border-bottom: none; }
.briefing-list .date {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 16px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 20px 0 32px;
}

footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

footer p { color: var(--text-muted); font-size: 0.82em; }

.lang-switch { font-size: 0.8em; display: flex; gap: 3px; align-items: center; }
.lang-switch a {
    color: var(--text-muted);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.9em;
}
.lang-switch a.active {
    color: var(--brand-red);
    background: transparent;
}

/* Language dropdown */
.lang-more {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    user-select: none;
    transition: color 0.2s;
}
.lang-more:hover { color: var(--brand-red); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 4px 0;
    min-width: 64px;
    z-index: 1001;
    flex-direction: column;
}
.lang-more:hover .lang-dropdown { display: flex; }

.lang-dropdown a {
    padding: 7px 14px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}
.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--brand-red);
}

/* Footer nav */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.85em;
}
.footer-nav a {
    color: var(--text-muted);
    font-weight: 600;
}

/* Page title */
.page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 4px;
}

/* Trend */
.trend-section { margin-top: 36px; }
.trend-section p { color: var(--text-muted); line-height: 1.7; }

/* Responsive */
@media (max-width: 600px) {
    .hero { padding: 32px 20px; }
    .news-item { padding: 16px; }
    header .container { flex-wrap: wrap; gap: 8px; }
    .site-title { font-size: 1.1em; }
    nav { gap: 12px; }
    footer .container { flex-direction: column; text-align: center; }
    .briefing-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .briefing-list .date { margin-left: 0; }
}
