/* 基础样式和动画 */
/* 性能优化：减少浮动动画的复杂度 */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 性能优化：减少pulse动画的缩放幅度 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes sparkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 性能优化：减少shimmer动画的移动距离 */
@keyframes shimmer {
    0% { background-position: -100px 0; }
    100% { background-position: 100px 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

/* 鼠标跟随效果 - 性能优化版本 */
.cursor-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b95, #ffa8cc);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease;
    /* 移除mix-blend-mode和box-shadow以节省性能 */
    will-change: transform;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #fff9fa 0%, #fff5f7 25%, #fff0f5 50%, #fff5f7 75%, #fff9fa 100%);
    /* 移除背景动画以节省性能 */
}

/* 保留关键帧定义但不使用，避免删除后其他地方报错 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff6b95, #ffa8cc, #ffb6c1);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 107, 149, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    /* 移除shimmer动画以节省性能 */
}

.header-overlay {
    position: relative;
    z-index: 2;
}

.header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    /* 移除pulse动画以节省性能 */
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 搜索和筛选区域 */
.search-filter-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 149, 0.1);
    margin-bottom: 30px;
    animation: fadeInScale 0.6s ease-out 0.2s both;
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff9fa, #fff5f7);
}

.search-input:focus {
    border-color: #ff6b95;
    box-shadow: 0 0 20px rgba(255, 107, 149, 0.2);
    transform: translateY(-2px);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 149, 0.4);
}

.filter-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-select:hover {
    border-color: #ff6b95;
    transform: translateY(-2px);
}

/* 本店消息选项与其他选项保持统一样式 */
.filter-select option[value="store-news"] {
    background: white;
    color: #333;
    font-weight: bold;
    padding: 10px;
}

/* 性能模式按钮样式已移除 */

/* 热门标签 */
.hot-tags-section {
    background: linear-gradient(135deg, #fff0f5, #ffe4e1);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
    animation: fadeInScale 0.6s ease-out 0.4s both;
}

.hot-tags-section h3 {
    color: #ff6b95;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag {
    padding: 8px 16px;
    background: white;
    color: #ff6b95;
    border: 2px solid #ffb6c1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tag:hover {
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.3);
}

.tag:hover::before {
    left: 100%;
}

/* 本店消息标签样式 - 与其他标签统一 */
/* .store-news-tag 使用默认标签样式，无需额外定义 */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4), 0 0 20px rgba(255, 71, 87, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6), 0 0 30px rgba(255, 71, 87, 0.4);
    }
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 重要通知 */
.important-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffd93d;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInUp 0.6s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.important-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.notice-icon {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    color: #d68910;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.notice-content p {
    color: #b7950b;
    margin: 0;
}

.notice-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #d68910;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.notice-close:hover {
    background: rgba(214, 137, 16, 0.1);
    transform: scale(1.2);
}

/* 新闻列表容器 */
.news-list-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 149, 0.1);
    margin-bottom: 30px;
    animation: fadeInScale 0.6s ease-out 0.8s both;
}

.news-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffb6c1;
}

.news-stats span {
    color: #ff6b95;
    font-size: 1.1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: #666;
    font-weight: bold;
}

.sort-options select {
    padding: 8px 15px;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    outline: none;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.news-item {
    background: linear-gradient(135deg, #fff9fa, #fff5f7);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(255, 107, 149, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: slideInUp 0.6s ease-out;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b95, #ffa8cc, #ffb6c1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 149, 0.2);
    border-color: #ffb6c1;
}

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

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.news-category {
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
}

.news-title {
    color: #ff1493;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-hot {
    color: #ff6b95;
    font-weight: bold;
    font-size: 0.9rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.news-tag {
    background: rgba(255, 107, 149, 0.1);
    color: #ff6b95;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 149, 0.2);
}

.news-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.favorite-btn {
    background: rgba(255, 107, 149, 0.1);
    color: #ff6b95;
    border: 1px solid rgba(255, 107, 149, 0.3);
}

.favorite-btn:hover {
    background: #ff6b95;
    color: white;
    transform: scale(1.05);
}

.share-btn {
    background: rgba(135, 206, 250, 0.1);
    color: #4169e1;
    border: 1px solid rgba(135, 206, 250, 0.3);
}

.share-btn:hover {
    background: #4169e1;
    color: white;
    transform: scale(1.05);
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 149, 0.4);
}

.load-more-btn:hover::before {
    left: 100%;
}

/* 侧边快捷工具 */
.quick-tools {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.tool-item {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.3);
}

.tool-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 149, 0.4);
}

.tool-icon {
    font-size: 1.2rem;
}

/* 侧边栏样式 - 性能优化版本 */
.side-links {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
    border: 2px solid #FFB6C1;
    /* 移除backdrop-filter以提高性能 */
}

.side-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #6A5ACD;
    background-color: white;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.side-link:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.3);
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
}

.side-link:hover::before {
    left: 100%;
}

.side-link-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.side-link span {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.2;
}

/* 新闻详情弹窗 - 性能优化版本 */
.news-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* 移除backdrop-filter以提高性能 */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* 移除动画以提高性能 */
}

.modal-header {
    background: linear-gradient(135deg, #ff6b95, #ffa8cc);
    color: white;
    padding: 25px;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #ff6b95, #ffa8cc, #ffb6c1);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 25px;
    margin-top: 50px;
    box-shadow: 0 -10px 30px rgba(255, 107, 149, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 浮动元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
    will-change: transform;
    /* 降低透明度和减慢动画速度以节省性能 */
}

/* 性能优化：减少浮动元素数量到3个 */
.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

/* 性能模式样式 - 禁用所有动画和过渡效果 */
.performance-mode * {
    animation: none !important;
    transition: none !important;
}

.performance-mode .floating-element {
    display: none !important;
}

.performance-mode .cursor-effect {
    display: none !important;
}

.performance-mode .news-item:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1) !important;
}

.performance-mode .side-link:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.2) !important;
    background: #f8f9fa !important;
    color: #6A5ACD !important;
}

.performance-mode .tool-item:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1) !important;
}

/* 确保侧边栏在性能模式下正确定位 */
.performance-mode .side-links {
    position: fixed !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
}

/* 确保弹窗在性能模式下正确居中 */
.performance-mode .modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1001 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .filter-container {
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .side-links {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        padding: 8px 15px;
        flex-direction: row;
        gap: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .side-links .side-link {
        margin: 0;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .quick-tools {
        right: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .tags-container {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .search-filter-section {
        padding: 20px;
    }
    
    .news-list-container {
        padding: 20px;
    }
    
    .news-item {
        padding: 20px;
    }
    
    .side-links {
        left: 10px;
        padding: 10px 5px;
        gap: 10px;
    }
    
    .side-link {
        padding: 8px;
    }
    
    .side-link span {
        font-size: 0.7rem;
    }
    
    .side-link-icon {
        font-size: 1.2rem;
    }
    
    .quick-tools {
        right: 10px;
        gap: 10px;
    }
    
    .tool-item {
        width: 45px;
        height: 45px;
    }
}