/* 性能优化设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 启用硬件加速和性能优化 */
html {
    /* 启用硬件加速 */
    transform: translateZ(0);
    /* 优化字体渲染 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 为有动画的元素启用GPU加速 */
.project-card,
.school-logo,
.filter-tag,
.sort-btn,
.refresh-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Ma+Shan+Zheng&display=swap');

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #2c1810;
    background: #f8f4e6;
    background-image:
        /* 简化祥云图案 - 只保留3个关键渐变 */
        radial-gradient(ellipse 200px 60px at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 180px 55px at 80% 70%, rgba(205, 133, 63, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(120, 80, 50, 0.02) 0%, transparent 40%);
    min-height: 100vh;
    position: relative;
}

/* 简化宣纸质感纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(120, 80, 50, 0.008) 3px,
            rgba(120, 80, 50, 0.008) 6px
        );
    pointer-events: none;
    z-index: 0;
}

/* 移除全屏动画背景以优化性能 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 头部容器特殊装饰 */
.header .container {
    position: relative;
}

.header .container::before {
    content: '◆ ✧ ◇ ✧ ◆';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #cd853f;
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 1em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.3);
}

.header .container::after {
    content: '◆ ✦ ◇ ✦ ◆';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #cd853f;
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 1em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.3);
}

/* 传统祥云装饰 */
.traditional-cloud {
    position: absolute;
    background: rgba(205, 133, 63, 0.1);
    border-radius: 50px;
    opacity: 0.3;
}

.traditional-cloud::before,
.traditional-cloud::after {
    content: '';
    position: absolute;
    background: rgba(205, 133, 63, 0.1);
    border-radius: 50%;
}

.traditional-cloud::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.traditional-cloud::after {
    width: 60px;
    height: 60px;
    top: -35px;
    right: 10px;
}

/* 回纹装饰 */
.traditional-pattern {
    position: relative;
}

.traditional-pattern::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    opacity: 0.3;
    transform: rotate(45deg);
}

.traditional-pattern::after {
    content: '';
    position: absolute;
    top: 30px;
    right: 30px;
    width: 20px;
    height: 20px;
    border: 2px solid #cd853f;
    border-radius: 2px;
    opacity: 0.4;
    transform: rotate(45deg);
}

/* 头部样式 */
.header {
    background: rgba(248, 244, 230, 0.98);
    /* 移除backdrop-filter以优化性能 */
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #d4af37;
    position: relative;
    overflow: visible;
}

/* 左侧Logo区域 */
.header-logo-left {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 110;
}

.school-logo {
    width: auto;
    height: 100px;
    max-width: 300px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(2px 2px 4px rgba(139, 69, 19, 0.3));
    transition: all 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 6px rgba(139, 69, 19, 0.4));
}

/* 标题区域 */
.header-title-area {
    text-align: center;
    margin: 20px 0;
}

/* 大赛简介区域 */
.competition-intro {
    background: rgba(248, 244, 230, 0.9);
    /* 移除backdrop-filter以优化性能 */
    padding: 25px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.competition-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.competition-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.intro-content {
    text-align: justify;
    text-indent: 2em;
    max-width: 800px;
    margin: 0 auto;
    color: #8b4513;
    line-height: 1.8;
}

.intro-placeholder {
    font-size: 1rem;
    opacity: 0.6;
    font-style: italic;
    margin: 0;
    padding: 20px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
}

/* 头部传统装饰边框 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #cd853f, #d4af37, transparent);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cd853f, #d4af37, #cd853f, transparent);
}

.title {
    font-family: 'Ma Shan Zheng', 'Noto Sans SC', cursive;
    font-size: 3rem;
    font-weight: 400;
    color: #8b4513;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 3px 3px 6px rgba(139, 69, 19, 0.4);
    letter-spacing: 0.15em;
    padding: 25px 60px;
    background:
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
        linear-gradient(90deg, transparent 0%, rgba(205, 133, 63, 0.05) 50%, transparent 100%);
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
}

/* 主标题左侧装饰 */
.title::before {
    content: '❋ ✦ ◆ ✦ ❋';
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 1.2rem;
    color: #d4af37;
    opacity: 0.8;
    letter-spacing: 0.3em;
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.5);
    animation: float 4s ease-in-out infinite;
    transform-origin: center;
    z-index: 1;
}

/* 主标题右侧装饰 */
.title::after {
    content: '❋ ✦ ◆ ✦ ❋';
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.2rem;
    color: #d4af37;
    opacity: 0.8;
    letter-spacing: 0.3em;
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.5);
    animation: float 4s ease-in-out infinite 1s;
    transform-origin: center;
    z-index: 1;
}

/* 主标题顶部装饰 */
.header .container {
    position: relative;
}

.header .container::before {
    content: '◆ ◇ ❋ ◇ ✦ ◇ ❋ ◇ ◆';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #cd853f;
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.8em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.4);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

/* 主标题底部装饰 */
.header .container::after {
    content: '◆ ◇ ✦ ◇ ❋ ◇ ✦ ◇ ◆';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #cd853f;
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.8em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.4);
    animation: shimmer 3s ease-in-out infinite 1.5s;
    z-index: 1;
}

.subtitle {
    text-align: center;
    color: #8b4513;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.8;
    position: relative;
}

/* 副标题装饰线 */
.subtitle::before,
.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cd853f, transparent);
}

.subtitle::before {
    left: -100px;
}

.subtitle::after {
    right: -100px;
}

.header-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 50;
}

.search-input, .filter-select, .password-input {
    padding: 12px 20px;
    border: 2px solid #d4af37;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #2c1810;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 50;
}

.search-input {
    width: 300px;
    max-width: 100%;
}

.search-input:focus, .filter-select:focus, .password-input:focus {
    outline: none;
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 1);
}

.filter-select {
    min-width: 150px;
}

.admin-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: #f8f4e6;
    border: 2px solid #d4af37;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 50;
}

/* 按钮传统装饰 */
.admin-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, transparent, #d4af37);
    z-index: -1;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d, #daa520);
}

.admin-btn:hover::before {
    opacity: 1;
}

.sort-btn, .refresh-btn {
    padding: 12px;
    background: rgba(248, 244, 230, 0.8);
    color: #8b4513;
    border: 2px solid #d4af37;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.2);
    position: relative;
    z-index: 50;
}

.sort-btn:hover, .refresh-btn:hover {
    background: rgba(248, 244, 230, 1);
    border-color: #cd853f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

/* 排序下拉菜单 */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #f8f4e6;
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1001;
    margin-top: 5px;
}

/* 排序菜单传统装饰 */
.sort-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #d4af37;
}

.sort-menu.show {
    display: block;
}

.sort-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #2c1810;
    position: relative;
}

.sort-option::before {
    content: '▸';
    margin-right: 8px;
    color: #cd853f;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sort-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #8b4513;
}

.sort-option:hover::before {
    opacity: 1;
}

.sort-option.active {
    background: #d4af37;
    color: #2c1810;
    font-weight: 500;
}

.sort-option.active::before {
    opacity: 1;
    color: #8b4513;
}

/* 快速筛选标签 */
.quick-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    padding: 20px 0;
    z-index: 40;
}

/* 快速筛选区域装饰 */
.quick-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.quick-filters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cd853f, transparent);
}

.filter-tag {
    padding: 8px 18px;
    background: rgba(248, 244, 230, 0.8);
    color: #8b4513;
    border: 1px solid #d4af37;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    /* 移除backdrop-filter以优化性能 */
    box-shadow: 0 1px 4px rgba(139, 69, 19, 0.1);
    position: relative;
    font-weight: 400;
    z-index: 40;
}

/* 标签装饰 */
.filter-tag::before {
    content: '◆';
    margin-right: 5px;
    color: #cd853f;
    font-size: 0.7rem;
}

.filter-tag:hover {
    background: rgba(248, 244, 230, 0.95);
    border-color: #cd853f;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: #d4af37;
    color: #2c1810;
    border-color: #8b4513;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    font-weight: 500;
}

.filter-tag.active::before {
    color: #8b4513;
}

/* 视图切换 */
.view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(248, 244, 230, 0.8);
    border: 1px solid #d4af37;
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    position: relative;
    z-index: 50;
}

.view-option {
    padding: 8px 15px;
    background: transparent;
    border: none;
    color: #8b4513;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.7;
}

.view-option.active {
    background: #d4af37;
    color: #2c1810;
    opacity: 1;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

/* 网格视图样式 */
.project-grid.list-view {
    grid-template-columns: 1fr;
    gap: 15px;
}

.project-grid.list-view .project-card {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-left: 70px; /* 为编号腾出空间 */
}

.project-grid.list-view .project-number {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    font-size: 0.75rem;
}

.project-grid.list-view .project-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; /* 列表视图不需要太多上边距 */
}

.project-grid.list-view .project-name {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.project-grid.list-view .project-author,
.project-grid.list-view .project-college {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 项目数量和排序信息 */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #8b4513;
    font-size: 0.9rem;
    font-weight: 400;
}

.sort-info {
    opacity: 0.8;
}

/* 主内容区域 */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.stats {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #8b4513;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #8b4513;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 69, 19, 0.3);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 保留必要的动画 - 优化性能 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移除其他动画以优化性能 */

/* 传统装饰元素 */
.traditional-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    color: #d4af37;
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.3);
}

/* 简化装饰元素，只保留2个关键装饰，移除动画 */
.traditional-decoration.cloud-1 {
    top: 20%;
    left: 3%;
    font-size: 3rem;
    opacity: 0.08;
}

.traditional-decoration.pattern-1 {
    bottom: 20%;
    right: 3%;
    font-size: 2rem;
    opacity: 0.08;
}

/* 隐藏其他装饰元素以优化性能 */
.traditional-decoration.cloud-2,
.traditional-decoration.cloud-3,
.traditional-decoration.cloud-4,
.traditional-decoration.pattern-2,
.traditional-decoration.pattern-3,
.traditional-decoration.pattern-4 {
    display: none;
}

/* 动画效果应用 */
.project-card {
    animation: fadeIn 0.6s ease-out;
}

.project-card:nth-child(even) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 鼠标悬停闪烁效果 */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 244, 230, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* 标题闪烁效果 */
.title {
    background: linear-gradient(90deg, #8b4513 25%, #d4af37 50%, #8b4513 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* 作品网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.project-card {
    background: #f8f4e6;
    border: 2px solid #d4af37;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    margin: 10px;
    display: flex;
    flex-direction: column;
    min-height: 320px; /* 设置最小高度确保卡片一致 */
}

/* 作品卡片传统装饰边框 */
.project-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #d4af37, #cd853f, #d4af37, #cd853f);
    border-radius: 25px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 古风装饰纹理 */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.3);
    border-color: #cd853f;
}

.project-card:hover::before {
    opacity: 0.3;
}

/* 移除原有的顶部装饰条 - 已在上面重新定义 */

/* 项目编号徽章 */
.project-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: #f8f4e6;
    width: 45px;
    height: 45px;
    border: 2px solid #d4af37;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
    transition: all 0.3s ease;
    transform: rotate(-3deg);
}

/* 编号印章效果 */
.project-number::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #cd853f);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
}

.project-card:hover .project-number {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
}

.project-info {
    padding: 25px;
    padding-top: 70px; /* 为编号腾出更多空间 */
    position: relative;
    z-index: 1;
    flex: 1; /* 占用剩余空间，将按钮推到底部 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 内容均匀分布 */
}

/* 项目主要信息区域 */
.project-main-info {
    flex: 1; /* 占用上方空间 */
}

/* 项目信息底部装饰线 */
.project-info::after {
    content: '◆ ◇ ❋ ◇ ◆';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #cd853f;
    opacity: 0.4;
    letter-spacing: 0.5em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.2);
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    padding: 12px 15px 12px 25px;
    background: 
        linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(205, 133, 63, 0.05) 100%),
        linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%);
    border-left: 4px solid #d4af37;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

/* 项目名称左侧装饰 */
.project-name::before {
    content: '❋';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d4af37, #cd853f);
    color: #2c1810;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

/* 项目名称右侧装饰 */
.project-name::after {
    content: '✦ ◇';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #cd853f;
    opacity: 0.6;
    letter-spacing: 0.2em;
    text-shadow: 1px 1px 2px rgba(205, 133, 63, 0.3);
    transition: all 0.3s ease;
}

.project-author {
    color: #8b4513;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.project-author::before {
    content: '✎';
    margin-right: 6px;
    color: #cd853f;
    font-size: 0.9rem;
}

.project-college {
    color: #8b4513;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.7;
    position: relative;
}

.project-college::before {
    content: '🏫';
    margin-right: 6px;
    font-size: 0.8rem;
}

.project-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    position: relative;
    align-self: flex-start; /* 状态标签左对齐 */
    margin-top: 10px; /* 与上面内容保持间距 */
}

.project-status::before {
    content: '●';
    margin-right: 5px;
    font-size: 0.6rem;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-color: #4caf50;
}

.status-active::before {
    color: #4caf50;
}

.status-manual {
    background: rgba(255, 193, 7, 0.1);
    color: #bf8f00;
    border-color: #ffc107;
}

.status-manual::before {
    color: #ffc107;
}

.status-error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border-color: #f44336;
}

.status-error::before {
    color: #f44336;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8b4513;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 24, 16, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #f8f4e6;
    margin: 5% auto;
    padding: 0;
    border: 3px solid #d4af37;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.4);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

/* 模态框传统装饰 */
.modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #d4af37, #cd853f, #d4af37);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: #f8f4e6;
    border-radius: 17px 17px 0 0;
    position: relative;
}

/* 模态框头部装饰 */
.modal-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: #f8f4e6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 244, 230, 0.2);
}

.close:hover {
    background: rgba(248, 244, 230, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: #f8f4e6;
    border-color: #d4af37;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d, #daa520);
}

.btn-secondary {
    background: rgba(248, 244, 230, 0.9);
    color: #8b4513;
    border-color: #cd853f;
    box-shadow: 0 3px 10px rgba(205, 133, 63, 0.2);
}

.btn-secondary:hover {
    background: #f8f4e6;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(205, 133, 63, 0.3);
}

/* 底部样式 */
.footer {
    background: rgba(248, 244, 230, 0.9);
    color: #8b4513;
    text-align: center;
    padding: 30px 0;
    backdrop-filter: blur(10px);
    border-top: 2px solid #d4af37;
    position: relative;
    margin-top: 50px;
}

/* 底部装饰 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.footer::after {
    content: '✦ ✦ ✦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f4e6;
    color: #cd853f;
    padding: 0 20px;
    font-size: 1.2rem;
}

/* Footer Logo 样式 */
.footer-logos {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-label {
    color: #8b4513;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.footer-logo {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }
    
    .title::before,
    .title::after {
        display: none;
    }
    
    .subtitle::before,
    .subtitle::after {
        display: none;
    }
    
    /* 移动设备传统装饰调整 */
    .traditional-decoration {
        display: none;
    }
    
    /* 移动设备隐藏标题装饰 */
    .title::before,
    .title::after {
        display: none;
    }
    
    .header .container::before,
    .header .container::after {
        display: none;
    }
    
    /* 移动端Logo调整 - 放在最顶部 */
    .header-logo-left {
        position: relative;
        left: auto;
        top: auto;
        text-align: center;
        margin-bottom: 20px;
        z-index: 110;
    }

    .school-logo {
        width: auto;
        height: 70px;
        max-width: 220px;
    }

    .header-title-area {
        text-align: center;
        margin: 20px 0; /* 移除左边距，恢复正常居中 */
    }

    .header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 60px; /* 增加底部空间，为按钮腾出位置 */
    }

    /* 移动端按钮组 - 排序和刷新按钮在一行 */
    .header-controls {
        position: relative;
    }

    .header-controls::after {
        content: '';
        display: flex;
        justify-content: flex-end;
        gap: 15px;
        order: 999;
    }

    .header-controls .sort-dropdown,
    .header-controls .refresh-btn {
        position: absolute;
        right: 0;
        top: calc(100% + 20px); /* 在控件下方20px的位置 */
    }

    .header-controls .sort-dropdown {
        right: 60px;
    }

    .header-controls .refresh-btn {
        right: 0;
    }

    /* 移动端简介区域调整 */
    .competition-intro {
        padding: 20px 0;
        margin: 15px 0;
    }

    .intro-content {
        padding: 0 10px;
    }

    .intro-placeholder {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .project-info {
        padding: 20px;
        padding-top: 50px;
    }
    
    .project-name {
        font-size: 1.1rem;
    }
    
    .project-number {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
        top: 12px;
        left: 12px;
    }
    
    .project-grid.list-view .project-card {
        padding-left: 60px;
    }
    
    .project-grid.list-view .project-number {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
        left: 15px;
    }
}

/* 项目卡片悬浮时的装饰动画 */
.project-card:hover .project-name::before {
    background: linear-gradient(135deg, #cd853f, #daa520);
    transform: translateY(-50%) scale(1.1) rotate(3deg);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.6);
}

.project-card:hover .project-name::after {
    opacity: 0.9;
    transform: translateY(-50%) translateX(3px);
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.5);
}

.project-card:hover .project-name {
    background: linear-gradient(90deg, rgba(205, 133, 63, 0.1), transparent 60%);
    border-left-color: #cd853f;
}

/* 卡片点击效果 */
.project-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(139, 69, 19, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

.project-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

/* 让标题的边框只包住文字，并居中 */
.header-title-area .title {
  display: inline-block;        /* 关键：不再拉满整行 */
  width: fit-content;           /* 可选：现代浏览器都支持 */
  margin: 0 auto 20px;          /* 居中并保持原来的下边距 */
  padding: 20px 48px;           /* 自行微调边距到你画的红线位置 */
}

