/* ========================================
   发改委民营企业协会 - 全站样式
   政务风格：红色主色调 + 深蓝辅色
======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #b71c1c;
    --primary-dark: #7f0000;
    --primary-light: #e05555;
    --accent: #1a3c6e;
    --accent-dark: #0d2240;
    --accent-light: #2a5298;
    --gold: #d4a843;
    --gold-light: #f0d68a;
    --bg-light: #f5f6fa;
    --bg-white: #ffffff;
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #888;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 50px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ---------- Top Bar ---------- */
.top-bar {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}

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

.top-bar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-bar-right span {
    cursor: pointer;
    transition: var(--transition);
}

.top-bar-right span:hover {
    color: var(--gold-light);
}

/* ---------- Site Header ---------- */
.site-header {
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    border-bottom: 3px solid var(--primary);
    padding: 18px 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(183,28,28,0.3));
}

.site-title-group {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.site-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 8px;
    margin-top: 2px;
}

.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183,28,28,0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 18px;
    font-size: 14px;
    width: 240px;
    font-family: var(--font-family);
    background: transparent;
}

.search-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ---------- Navigation ---------- */
.main-nav {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 0 28px;
    line-height: var(--nav-height);
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-item:hover > a,
.nav-item.active > a {
    background: rgba(0,0,0,0.15);
    color: #fff;
}

.nav-item:hover > a::after,
.nav-item.active > a::after {
    width: 60%;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1001;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 26px;
}

/* ---------- Page Content Wrapper ---------- */
.page-content {
    flex: 1;
    padding: 30px 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ---------- Section Titles ---------- */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary);
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-dark);
    position: relative;
    padding-left: 16px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title .more-link {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-light);
}

.section-title .more-link:hover {
    color: var(--primary);
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover {
    color: var(--primary);
}

.card-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 14px;
    align-items: center;
}

.card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ---------- Carousel ---------- */
.carousel {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.carousel-slide-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-slide-overlay p {
    font-size: 14px;
    opacity: 0.85;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.35);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 5px;
}

/* ---------- Home Page Grid ---------- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.home-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.home-full {
    grid-column: 1 / -1;
}

/* Quick Entry Section */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.quick-entry-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-entry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-entry-item:hover::before {
    transform: scaleX(1);
}

.quick-entry-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.quick-entry-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.quick-entry-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ---------- News List ---------- */
.news-list {
    list-style: none;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
    transition: var(--transition);
}

.news-list-item:hover {
    padding-left: 8px;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item a {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 16px;
    position: relative;
}

.news-list-item a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 12px;
}

.news-list-item a:hover {
    color: var(--primary);
}

.news-list-item .date {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-light);
    margin-left: 16px;
}

/* ---------- Tabs ---------- */
.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.tab-btn.active::after {
    transform: scaleX(1);
}

/* ---------- Detail Page ---------- */
.detail-page {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
}

.detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
}

.detail-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

/* ---------- Company Grid ---------- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.company-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.company-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-left-color: var(--primary);
}

.company-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.company-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card .company-info {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

/* Company Detail */
.company-detail {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 36px;
}

.company-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.company-detail-logo {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
    flex-shrink: 0;
}

.company-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.company-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.company-detail-meta span {
    display: flex;
    gap: 6px;
}

/* ---------- Category Sidebar ---------- */
.page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

.sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.sidebar-title {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.sidebar-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 26px;
}

.sidebar-menu li a:hover::before,
.sidebar-menu li a.active::before {
    transform: scaleY(1);
}

.main-content {
    min-width: 0;
}

/* ---------- Bulletin Board ---------- */
.bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bulletin-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid transparent;
}

.bulletin-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.bulletin-item.type-demand { border-left-color: #e53935; }
.bulletin-item.type-supply { border-left-color: #43a047; }
.bulletin-item.type-seek { border-left-color: #1e88e5; }

.bulletin-tag {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.tag-demand { background: #e53935; }
.tag-supply { background: #43a047; }
.tag-seek { background: #1e88e5; }

.bulletin-body {
    flex: 1;
    min-width: 0;
}

.bulletin-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.bulletin-body h3:hover {
    color: var(--primary);
}

.bulletin-body p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bulletin-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
}

/* ---------- Search / Filter Bar ---------- */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183,28,28,0.08);
}

.filter-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.filter-bar .btn {
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
}

.filter-bar .btn:hover {
    background: var(--primary-dark);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(183,28,28,0.05);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Negotiation Card ---------- */
.negotiation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.negotiation-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.negotiation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.negotiation-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.negotiation-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-dark);
}

.negotiation-card .desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.negotiation-card .meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-open { background: #e8f5e9; color: #2e7d32; }
.status-in_progress { background: #fff3e0; color: #ef6c00; }
.status-closed { background: #fbe9e7; color: #c62828; }

/* ---------- Article Grid ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
}

.article-card-body {
    padding: 18px 20px;
}

.article-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-body h3:hover {
    color: var(--primary);
}

.article-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
}

/* ---------- News Grid ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
    transition: var(--transition);
    border-left: 4px solid var(--accent);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.news-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-card h3:hover {
    color: var(--primary);
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-card .news-card-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 14px;
}

/* ---------- Interview Card ---------- */
.interview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.interview-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.interview-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.interview-card-body {
    padding: 20px;
}

.interview-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.interview-card-body .interviewee {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.interview-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
}

.carousel-placeholder-1 { background: linear-gradient(135deg, #b71c1c 0%, #1a3c6e 100%); }
.carousel-placeholder-2 { background: linear-gradient(135deg, #1a3c6e 0%, #004d40 100%); }
.carousel-placeholder-3 { background: linear-gradient(135deg, #4a148c 0%, #b71c1c 100%); }
.carousel-placeholder-4 { background: linear-gradient(135deg, #0d47a1 0%, #1b5e20 100%); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
}

.footer-main {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #0a1628 100%);
    color: rgba(255,255,255,0.75);
    padding: 40px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-bottom {
    background: #060e1a;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* ---------- Back to Top (右侧居中竖排) ---------- */
.back-to-top {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 12px 8px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    font-family: var(--font-family);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

/* ---------- Auth Modal (悬浮窗) ---------- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal {
    background: #fff;
    border-radius: 16px;
    width: 440px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.35s ease;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.auth-modal-close:hover {
    background: #e0e0e0;
    color: var(--text-primary);
}

.auth-modal-header {
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-family: var(--font-family);
    transition: var(--transition);
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    transform: scaleX(1);
}

.auth-tab:hover {
    color: var(--primary-light);
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-form-group label .required {
    color: var(--primary);
}

.auth-form-group input,
.auth-form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
    outline: none;
    background: #fff;
}

.auth-form-group input:focus,
.auth-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183,28,28,0.08);
}

.auth-input-row {
    display: flex;
    gap: 10px;
}

.auth-input-row input {
    flex: 1;
}

.sms-btn {
    flex-shrink: 0;
    padding: 11px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.sms-btn:hover {
    background: var(--accent-dark);
}

.sms-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-error {
    font-size: 13px;
    color: #e53935;
    margin-bottom: 12px;
    min-height: 18px;
}

.auth-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(183,28,28,0.25);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(183,28,28,0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* ---------- Friend Links Section ---------- */
.friend-links-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.friend-links-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, #1a4a7e 100%);
    z-index: 0;
}

.friend-links-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../assets/images/handshake_bg.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.friend-links-section .container {
    position: relative;
    z-index: 2;
}

.friend-links-section .section-title {
    border-bottom-color: rgba(255,255,255,0.2);
}

.friend-links-section .section-title::after {
    background: var(--gold);
}

.friend-links-section .section-title h2::before {
    background: var(--gold);
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-link-item {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.friend-link-item:hover {
    background: rgba(255,255,255,0.2);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------- Science Article Source Badge ---------- */
.article-card-image {
    position: relative;
}

.source-company-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* ---------- Video Player ---------- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(183,28,28,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    z-index: 3;
    pointer-events: none;
    transition: var(--transition);
}

.interview-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(183,28,28,1);
}

/* ---------- Publish Button ---------- */
.publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(183,28,28,0.2);
    text-decoration: none;
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183,28,28,0.3);
    color: #fff;
}

/* ---------- Audit Status Badge ---------- */
.audit-pending { background: #fff3e0; color: #ef6c00; }
.audit-first_pass { background: #e3f2fd; color: #1565c0; }
.audit-final_pass { background: #e8f5e9; color: #2e7d32; }
.audit-rejected { background: #fbe9e7; color: #c62828; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ---------- Tag / Badge ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary { background: var(--primary); color: #fff; }
.badge-accent { background: var(--accent); color: #fff; }
.badge-gold { background: var(--gold); color: #fff; }

/* ---------- User Greeting ---------- */
.user-greeting {
    color: var(--gold-light);
    font-weight: 500;
}

.logout-link:hover {
    color: var(--gold-light) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .company-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-entry {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-modal {
        width: 95vw;
        padding: 24px 20px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .site-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-item > a {
        padding: 0 14px;
        font-size: 14px;
    }

    .company-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .carousel {
        height: 260px;
    }

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

    .quick-entry {
        grid-template-columns: 1fr 1fr;
    }

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

    .back-to-top {
        right: 10px;
        padding: 8px 6px;
        font-size: 12px;
    }

    .friend-links-list {
        gap: 8px;
    }

    .friend-link-item {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ---------- Animation Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}
