* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    min-height: 100vh;
}

.tea-news-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 30px;
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* 全局搜索框 */
.global-search {
    position: fixed;
    top: -100px;
    right: calc((100% - 1400px) / 2 + 30px);
    transform: none;
    left: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 15px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 2px 8px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.global-search.visible {
    top: 5px;
    opacity: 1;
    transform: translateY(0);
}

.global-search.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.global-search input {
    width: 80%;
    height: 32px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    padding: 6px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.global-search input:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05),
                0 3px 10px rgba(34, 197, 94, 0.1);
}

.global-search.focused input {
    width: 80%;
    border-color: rgba(34, 197, 94, 0.8);
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05),
                0 5px 15px rgba(34, 197, 94, 0.15);
}

.global-search button {
    width: 32px;
    height: 32px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
}

.global-search button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.global-search button:hover {
    background: #1ea34b;
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.global-search button:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.global-search button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.global-search.focused button {
    background: #1ea34b;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.global-search button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.global-search button:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* 高亮效果 */
.highlight {
    background-color: rgba(196, 18, 48, 0.2);
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-article {
    animation: pulse 2s ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 18, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(196, 18, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 18, 48, 0);
    }
}

/* 左侧新闻区域 */
.tea-news-left {
    flex: 1;
    min-width: 0;
}

.tea-news-text {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: #979797 dotted 2px;
    position: relative;
}

.tea-news-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.date img {
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%);
}

.date span {
    color: #666;
    font-size: 16px;
}

.time {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
    padding-left: 20px;
}

.time img {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.time span {
    color: #22c55e;
    font-size: 16px;
}

.text h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.text h2:hover {
    color: #579a47;
}

.text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #579a47;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #3c6b31;
    transform: translateX(5px);
}

.share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.share span {
    color: #888;
    font-size: 14px;
}

.share a {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.share a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 右侧区域 */
.tea-news-right {
    width: 350px;
    flex-shrink: 0;
}

.input-box {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 8px 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 2px 8px rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-box:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.input-box input {
    width: 80%;
    height: 32px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    padding: 6px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-box input:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05),
                0 3px 10px rgba(34, 197, 94, 0.1);
}

.input-box input:focus {
    border-color: rgba(34, 197, 94, 0.8);
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05),
                0 5px 15px rgba(34, 197, 94, 0.15);
}

.input-box button {
    width: 32px;
    height: 32px;
    background: #22c55e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
}

.input-box button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.input-box button:hover {
    background: #1ea34b;
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.input-box button:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.input-box button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.input-box button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.input-box button:hover img {
    transform: scale(1.1) rotate(5deg);
}

.hot-news {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hot-news-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.hot-news-title h3 {
    font-size: 20px;
    color: #333;
}

.hot-news-content {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.hot-news-content:hover {
    transform: translateX(5px);
}

.hot-news-content img {
    border-radius: 5px;
    object-fit: cover;
}

.hot-news-content .text {
    flex: 1;
    min-width: 0;
}

.hot-news-content .text a {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-news-content .text a:hover {
    color: #579a47;
}

.hot-news-content .text p {
    color: #888;
    font-size: 13px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tea-news-text {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.tea-news-text:nth-child(1) { animation-delay: 0.1s; }
.tea-news-text:nth-child(2) { animation-delay: 0.2s; }
.tea-news-text:nth-child(3) { animation-delay: 0.3s; }
.tea-news-text:nth-child(4) { animation-delay: 0.4s; }
.tea-news-text:nth-child(5) { animation-delay: 0.5s; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .tea-news-container {
        flex-direction: column;
    }
    
    .tea-news-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tea-news-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .text h2 {
        font-size: 20px;
    }
    
    .text p {
        font-size: 15px;
    }
}

/* 响应式调整 */
@media screen and (max-width: 1400px) {
    .global-search {
        right: 30px;
    }
}

@media screen and (max-width: 768px) {
    .global-search {
        width: 90%;
        max-width: 350px;
        right: 50%;
        transform: translateX(50%);
    }
}

.global-search button img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.global-search button:hover img {
    transform: scale(1.1);
}

/* 添加搜索建议样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

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

.suggestion-item:hover {
    background: rgba(34, 197, 94, 0.1);
}

.suggestion-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-preview {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}