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

::selection {
    background: var(--primary-color, #ff6600);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e55a00, #ff6600);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-color, #ff6600);
}

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

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 102, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo a:hover {
    background: rgba(255, 102, 0, 0.05);
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo .site-name {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-item a:hover,
.nav-item.active a {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 133, 51, 0.1));
    color: #ff6600;
}

.nav-item a:hover::before,
.nav-item.active a::before {
    width: 60%;
}

.main-search {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.main-search form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 540px;
    height: 52px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.main-search form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.3);
}

.main-search form:focus-within {
    border-color: #ff6600;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1), 0 12px 40px rgba(0, 0, 0, 0.15);
}

.main-search input {
    border: none;
    background: transparent;
    padding: 0 20px;
    flex: 1;
    height: 100%;
    font-size: 15px;
    outline: none;
    color: #333;
}

.main-search input::placeholder {
    color: #999;
}

.main-search button {
    border: none;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    width: 60px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.main-search button:hover {
    background: linear-gradient(135deg, #e55a00, #ff6600);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.main-search button:active {
    transform: scale(0.98);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.main {
    padding: 24px 0;
}

.main-inner {
    display: flex;
    gap: 24px;
}

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

.content.full-width {
    width: 100%;
}

.yan-wrapper {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.yan-wrapper::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 102, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.yan-wrapper::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 102, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.yan {
    color: #555;
    font-size: 16px;
    font-style: italic;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.article-group {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-group:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    border-bottom: 2px solid #f5f5f5;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    position: relative;
}

.group-header::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    border-radius: 2px;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.group-title i {
    margin-right: 8px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
}

.group-count {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.group-more {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.group-more:hover {
    color: var(--primary-color, #ff6600);
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px;
}

.article-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.2);
}

.article-item:hover::before {
    opacity: 1;
}

.article-link {
    display: block;
}

.article-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.article-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-item:hover .article-cover img {
    transform: scale(1.1);
}

.article-item:hover .article-cover::after {
    opacity: 1;
}

.article-cover svg {
    position: relative;
    z-index: 2;
    width: 60%;
    height: 60%;
}

.article-cover .icon {
    position: relative;
    z-index: 2;
    width: 60%;
    height: 60%;
    display: block;
}

.article-cover .icon use {
    fill: #ff6600;
}

.article-cover svg use {
    fill: #ff6600;
}

.svgfont {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.1em;
    font-size: 16px;
}

.article-info {
    padding: 18px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.article-item:hover .article-title {
    color: #ff6600;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #6c757d;
}

.article-meta span:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(255, 133, 51, 0.15));
    color: #ff6600;
    transform: translateY(-1px);
}

.article-meta i {
    font-size: 12px;
    color: #ff6600;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    border-radius: 2px;
}

.category-list,
.recent-list {
    list-style: none;
}

.category-list li,
.recent-list li {
    margin-bottom: 10px;
}

.category-list a,
.recent-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-list a:hover,
.recent-list a:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 133, 51, 0.1));
    color: #ff6600;
    transform: translateX(5px);
}

.category-list i,
.recent-list i {
    color: #ff6600;
    font-size: 14px;
}

.footer {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-top: none;
    padding: 48px 0 32px;
    margin-top: 32px;
    position: relative;
}


.footer-inner {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 14px;
    color: #666;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.08);
    transform: translateY(-2px);
}

.footer-info {
    color: #888;
    font-size: 13px;
}

.footer-info .icp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
    color: #666;
}

.footer-info p {
    margin-top: 12px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.4);
    z-index: 999;
    font-size: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #e55a00, #ff6600);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 102, 0, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

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

.article-item {
    animation: fadeInUp 0.6s ease forwards;
}

.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.3s; }
.article-item:nth-child(4) { animation-delay: 0.4s; }
.article-item:nth-child(5) { animation-delay: 0.5s; }
.article-item:nth-child(6) { animation-delay: 0.6s; }

@media screen and (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .article-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        padding: 16px;
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .logo .site-name {
        font-size: 18px;
    }

    .logo img {
        height: 32px;
    }

    .main-search form {
        width: 100%;
        max-width: 540px;
        height: 48px;
    }

    .article-list {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .article-cover {
        height: 180px;
    }

    .yan-wrapper {
        padding: 20px;
    }

    .yan-wrapper::before,
    .yan-wrapper::after {
        font-size: 60px;
    }

    .footer {
        padding: 32px 0 24px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
}


.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    }
}

.article-item {
    position: relative;
}

.article-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover::after {
    opacity: 1;
}

.mobile-nav-active {
    transform: translateX(0) !important;
}

.article-cover img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

::placeholder {
    color: #aaa;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #aaa;
}

::-ms-input-placeholder {
    color: #aaa;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.article-date i,
.article-views i {
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.footer-info .icp img {
    vertical-align: middle;
}

.main-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.nav-item.active a {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(255, 133, 51, 0.15)) !important;
}

.nav-item.active a::before {
    width: 70% !important;
}

.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
