/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b35;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== 顶部栏 ==================== */
#topbar {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
}

#topbar .links>li, #topbar .links>li>a {
    color: #ecf0f1;
}

#topbar .left-name {
    color: #ecf0f1;
}

/* ==================== 头部样式 ==================== */
#header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(255, 107, 53, 0.1);
    height: auto !important;
    margin-bottom: 0;
}

/* 顶部工具栏 */
.header-top {
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
    min-height: 40px;
    line-height: 40px;
    padding: 0;
}

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

.top-left .welcome-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
}

.top-right {
    display: flex;
    gap: 20px;
}

.top-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 0 8px;
}

.top-link:hover {
    color: #fff;
}

/* 主头部区域 */
.header-main {
    padding: 25px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* 搜索框 */
.search-box {
    flex: 1;
    min-width: 280px;
    max-width: 550px;
}

.search-wrapper {
    display: flex;
    background: #f5f7fa;
    border-radius: 50px;
    border: 2px solid #e8ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.search-icon {
    font-size: 16px;
}

/* 发布按钮 */
.header-action .btn-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #e8471d 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.header-action .btn-publish:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.publish-icon {
    font-size: 16px;
}

/* 导航栏 */
.header-nav {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.navbar {
    padding: 0;
    height: auto !important;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-wrapper a {
    display: inline-block;
    padding: 15px 20px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-wrapper a:hover,
.nav-wrapper a.active {
    color: #ff6b35;
}

.nav-wrapper a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
    border-radius: 3px 3px 0 0;
}

/* ==================== Hero Banner ==================== */
.hero-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 50%, #ff7043 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-banner::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.hero-card a {
    color: #fff;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==================== 分类导航样式 ==================== */
.category-section {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 38px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #999;
    font-size: 15px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #e8ecef;
    min-width: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 149, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 12px 50px rgba(255, 107, 53, 0.25);
    transform: translateY(-12px) scale(1.05);
    background: linear-gradient(135deg, #fff 0%, #fff8f3 100%);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.15));
}

.category-card:hover .category-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 6px 12px rgba(255, 107, 53, 0.3));
}

.category-name {
    font-size: 17px;
    color: #333;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #ff6b35;
}

.category-count {
    font-size: 13px;
    color: #ff9500;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    background: rgba(255, 149, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background: rgba(255, 107, 53, 0.15);
}

/* ==================== 信息列表样式 ==================== */
.info-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 50px 0;
    margin-bottom: 30px;
}

.info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%) 1;
    margin-bottom: 35px;
    position: relative;
}

.info-section-header::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
    border-radius: 2px;
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 32px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.title-text {
    font-size: 24px;
    color: #333;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.view-more {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.view-more:hover {
    background: linear-gradient(135deg, #ff7043 0%, #ffb74d 100%);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.35);
    transform: translateY(-2px);
}

.view-more .arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.view-more:hover .arrow {
    transform: translateX(3px);
}

.info-list-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-list {
    background: #fff;
    border: 2px solid #e8ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.info-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.info-list:hover::before {
    transform: scaleX(1);
}

.info-list:hover {
    border-color: #ff6b35;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
    transform: translateY(-8px);
}

.list-content {
    padding: 22px;
    width: 100%;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-name {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
    transition: all 0.3s ease;
    word-break: break-all;
    font-weight: 600;
    flex-grow: 1;
}

.list-name:hover {
    color: #ff6b35;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.meta-column,
.meta-area,
.meta-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.meta-icon {
    font-size: 13px;
    line-height: 1;
}

.meta-column {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.info-list:hover .meta-column {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.info-content {
    width: 1200px !important;
}

/* ==================== 页脚样式 ==================== */
#footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 40px;
}

/* 页脚链接区 */
.footer-links {
    padding: 50px 0;
}

.footer-link-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    padding: 0 10px;
    min-width: 0;
}

.footer-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff9500 100%);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #bdc3c7;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    word-break: break-all;
}

.footer-list a:hover {
    color: #ff9500;
    transform: translateX(5px);
}

.footer-contact .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bdc3c7;
    font-size: 14px;
    word-break: break-all;
}

.contact-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* 版权信息区 */
.footer-copyright {
    background: #1a252f;
    padding: 30px 0;
}

.copyright-content {
    text-align: center;
}

.copyright-info,
.beian-info {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.beian-info a {
    color: #ff9500;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #ffb86c;
}

.wall {
    min-height: 100vh;
    padding-top: 50px;
}

.login, .register, .forget {
    margin-top: 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .info-list-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .header-content {
        justify-content: center;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .header-action {
        order: 4;
    }

    .hero-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-list-content {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-right {
        justify-content: center;
    }

    .mobile-hide {
        display: none;
    }

    .header-action {
        display: none;
    }

    .section-title {
        font-size: 26px;
    }

    .title-text {
        font-size: 18px;
    }

    .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        font-size: 32px;
    }

    .category-name {
        font-size: 13px;
    }

    .category-count {
        font-size: 11px;
    }

    .info-list-content {
        grid-template-columns: 1fr;
    }

    .footer-link-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 22px;
    }

    .header-main {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px 15px;
    }

    .search-text {
        display: none;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-featured {
        display: none;
    }
}

/* ==================== 页面包装器 ==================== */
.page-wrapper {
    min-height: calc(100vh - 500px);
}

/* ==================== 工具类 ==================== */
.mt-md {
    margin-top: 20px;
}

.mb-md {
    margin-bottom: 20px;
}

.mt-sm {
    margin-top: 10px;
}

.mb-sm {
    margin-bottom: 10px;
}

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