/* 全局样式 */
:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #ed8936;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    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: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    gap: 30px;
    padding: 15px 20px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

nav a.active {
    color: white;
    background: var(--primary);
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

/* Hero Section */
.hero {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.profile {
    margin-top: 20px;
}

.profile ul {
    list-style: none;
    margin-top: 15px;
}

.profile li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.profile li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--secondary);
}

/* Principles */
.principle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.principle-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.principle-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.principle-item p {
    color: var(--text-secondary);
}

/* Company Cards */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.company-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.company-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.company-card .mentions {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.company-card .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Topic Cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.topic-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.topic-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.topic-card .description {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.topic-card .mentions {
    color: var(--accent);
    font-weight: bold;
}

/* Quote Cards */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.quote-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-card::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
}

.quote-card .text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 30px;
}

.quote-card .source {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.quote-card .topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Search */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
}

/* Filter */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer .small {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .feature-grid,
    .principle-list,
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }
}

/* Data Sources */
.data-sources ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.data-sources li {
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
}

/* No results */
.no-results {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
}

/* Case Study */
.case-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.case-header h2 {
    color: white;
    border: none;
    margin-bottom: 10px;
}

.case-meta {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.case-meta span {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 6px;
}

.case-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.case-content h3 {
    color: var(--primary);
    margin: 25px 0 15px 0;
}

.case-content ul {
    margin-left: 25px;
    margin-top: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Q&A 格式样式 */
.qa-pair {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid var(--accent);
}

.qa-question-text {
    display: block;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.qa-answer-text {
    display: block;
    color: var(--text-primary);
    line-height: 1.7;
}

.qa-text {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    line-height: 1.7;
}

/* 语录卡片样式 */
.quote-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
}

.quote-type-badge.qa {
    background: #e6fffa;
    color: #234e52;
}

.quote-type-badge.article {
    background: #faf5ff;
    color: #553c9a;
}

/* 法律声明样式 */
.legal-notice {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
}

.legal-notice h4 {
    color: #c53030;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.legal-notice .notice-content {
    font-size: 0.8rem;
    color: #742a2a;
    line-height: 1.6;
}

/* Position Legend */
.position-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Filter Tabs */
.filter-section {
    margin-bottom: 25px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn span {
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}
