/**
 * 鑫仁招标网 - 首页样式表 v2.1
 */

/* ===== 首页特有布局 ===== */
.home-page {
    background: var(--background-light);
}

/* ===== 无障碍快捷导航 ===== */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s ease;
    font-weight: 600;
}

.skip-to-main:focus {
    top: 6px;
}

/* ===== 顶部通知栏 ===== */
.top-notice {
    background: linear-gradient(135deg, #d32f2f, var(--primary-color));
    color: white;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-notice .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notice-icon {
    font-size: 16px;
    animation: bounce 2s infinite;
}

.notice-text {
    font-weight: bold;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* ===== 网站头部优化 ===== */
.site-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 15px 0;
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 5px;
    background: white;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.site-slogan span {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== 搜索区域优化 ===== */
.search-section {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.search-form {
    position: relative;
}

.search-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: white;
    transition: var(--transition);
}

.search-group:focus-within {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1), var(--shadow-medium);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: white;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #a93226);
    transform: translateY(-1px);
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.suggestion-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* ===== 用户工具优化 ===== */
.user-tools {
    display: flex;
    align-items: center;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-login:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-register:hover {
    background: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.user-toggle:hover, .user-toggle:focus {
    background: rgba(255,255,255,0.1);
    outline: none;
}

.user-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-heavy);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: var(--border-color);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

/* ===== 主导航优化 ===== */
.main-navigation {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    border-bottom: 3px solid #e74c3c;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-item:last-child .nav-link {
    border-right: none;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.nav-icon {
    font-size: 16px;
}

/* 下拉菜单 */
.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
}

/* ===== 轮播图 ===== */
.hero-slider {
    position: relative;
    background: #2c3e50;
}

.slider-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-slide {
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
}

.slide-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 16px;
    opacity: 0.9;
}

/* 轮播图控制 */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(231, 76, 60, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* ===== 主要内容区域优化 ===== */
.main-content {
    min-height: 60vh;
}

/* ===== 统计数据区域 ===== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    color: white;
    padding: 40px 0;
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

/* ===== 内容网格布局 ===== */
.content-section {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== 区块标题样式 ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.title-icon {
    font-size: 1.25rem;
}

.section-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.section-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== 公告区域 ===== */
.announcements-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 标签页 */
.tabs-container {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tab-button:hover {
    color: #c0392b;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 公告列表 */
.announcement-list {
    list-style: none;
}

.announcement-item {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 0;
}

.announcement-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.announcement-title > *:last-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.important-badge {
    flex-shrink: 0;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.announcement-date {
    color: #7f8c8d;
    font-size: 13px;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

/* ===== 招标公告 ===== */
.bidding-section {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bidding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bidding-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.bidding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #e74c3c;
}

.card-header {
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.card-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #e74c3c;
}

.card-meta {
    font-size: 12px;
    color: #7f8c8d;
}

.card-body {
    margin-bottom: 15px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.info-label {
    color: #7f8c8d;
    font-weight: bold;
}

.info-value {
    color: #2c3e50;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #7f8c8d;
}

/* ===== 侧边栏 ===== */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sidebar-widget {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

/* 公司动态 */
.news-featured {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
}

.news-date {
    font-size: 12px;
    color: #7f8c8d;
}

/* 快速链接 */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-link {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-link:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    border-color: #e74c3c;
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-text {
    color: #2c3e50;
    font-size: 14px;
}

/* ===== 业绩展示 ===== */
.performance-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 50px 0;
    margin: 40px 0;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.performance-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.performance-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.performance-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.performance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.performance-card:hover .performance-image img {
    transform: scale(1.1);
}

.performance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.performance-card:hover .performance-overlay {
    opacity: 1;
}

.view-more {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.performance-content {
    padding: 20px;
}

.performance-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.performance-description {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.performance-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
}

.meta-item {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    color: #7f8c8d;
}

.performance-client {
    font-size: 13px;
    color: #e74c3c;
    font-weight: bold;
}

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 15px;
}

.footer-title {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.footer-description {
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-nav a:hover {
    color: #e74c3c;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #ecf0f1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    color:white;
    transform: translateY(-3px);
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 15px;
    color: #95a5a6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

.icp-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
}

.icp-info a {
    color: #95a5a6;
    text-decoration: none;
}

.icp-info a:hover {
    color: #e74c3c;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .search-section {
        max-width: 100%;
        min-width: auto;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bidding-grid {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .icp-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 300px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-description {
        font-size: 14px;
    }
}

/* ===== 辅助类 ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state p {
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 公告公示栏样式 */
.announcements-board-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

.announcement-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.announcement-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.announcement-tab:hover {
    background: #e9ecef;
    color: #333;
}

.announcement-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    background: #fff;
    font-weight: 600;
}

.announcement-content {
    padding: 20px;
}

.announcement-container {
    display: flex;
    gap: 20px;
}

.year-selector {
    flex: 0 0 200px;
}

.year-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.year-btn {
    padding: 10px 15px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #666;
}

.year-btn:hover {
    background: #e9ecef;
    color: #333;
}

.year-btn.active {
    background: #1890ff;
    color: #fff;
    font-weight: 600;
}

.year-more {
    padding: 10px 15px;
    color: #1890ff;
    text-decoration: none;
    text-align: center;
    border: 1px solid #1890ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.year-more:hover {
    background: #1890ff;
    color: #fff;
}

.announcement-list-container {
    flex: 1;
}

.announcement-list {
    display: none;
}

.announcement-list.active {
    display: block;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.list-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.more-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

.announcement-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.announcement-item:hover {
    background: #f8f9fa;
}

.announcement-item:last-child {
    border-bottom: none;
}

.item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.item-link:hover {
    color: #1890ff;
}

.item-title {
    flex: 1;
    width: 400px;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.project-number,
.correction-type,
.winning-company {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.item-date {
    flex: 0 0 60px;
    text-align: right;
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-container {
        flex-direction: column;
    }

    .year-selector {
        flex: none;
    }

    .year-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }

    .year-btn, .year-more {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .announcement-tabs {
        flex-wrap: wrap;
    }

    .announcement-tab {
        flex: 1 0 33.333%;
        font-size: 14px;
        padding: 12px 10px;
    }

    .item-title {
        white-space: normal;
        line-height: 1.3;
    }
}

/* ===== 空状态样式 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .search-section {
        max-width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        gap: 15px;
    }

    .auth-links {
        flex-direction: column;
        gap: 8px;
    }

    .btn-login, .btn-register {
        padding: 6px 15px;
        font-size: 13px;
    }
}

/* 质疑相关样式 */
.question-type, .answer-type {
    font-size: 0.8em;
    color: #e74c3c;
    background: #fdf2f2;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 确保新的标签页样式一致 */
.announcement-tab[aria-selected="true"] {
    background: #3498db;
    color: white;
}

.announcement-tab:hover {
    background: #2980b9;
    color: white;
}

/* ===== 高性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 打印优化 ===== */
@media print {
    .site-header,
    .main-navigation,
    .content-sidebar,
    .site-footer {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-main {
        width: 100%;
    }
}