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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.nav-logo .logo-link {
    display: block;
    text-decoration: none;
    height: 45px; /* 匹配Logo高度 */
}

.nav-logo .logo-image {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo .logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 45px;
    transition: color 0.3s ease;
}

.nav-logo .logo-text:hover {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* 导航栏二级菜单样式 */
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}
/* 右侧按钮组样式 */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

/* 搜索组件与二级菜单的层级协调 */
.nav-search {
    position: relative;
    z-index: 1001;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 搜索组件样式 */
.nav-search {
    position: relative;
    margin-left: 0;
}

.search-toggle {
    background: transparent;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: #f1f8fe;
    color: #3498db;
    transform: scale(1.05);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.nav-search:hover .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 登录按钮样式 */
.nav-login {
    position: relative;
    z-index: 1001;
}

.login-toggle {
    background: transparent;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-toggle:hover {
    background: #f1f8fe;
    color: #3498db;
    transform: scale(1.05);
}

.user-avatar i {
    font-size: 1.2rem;
}

/* 简繁体切换按钮样式 */
.lang-toggle {
    position: relative;
    z-index: 1001;
}

.lang-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: #f1f8fe;
    border-color: #3498db;
    color: #3498db;
    transform: scale(1.05);
}

.lang-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* 登录下拉菜单已移除 */

.search-form {
    display: flex;
    margin-bottom: 1rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #3498db;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #3498db;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #2980b9;
}

.search-suggestions h4 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f8f9fa;
    color: #495057;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

/* 轮播图样式 */
.carousel-section {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-empty {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.carousel-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-empty p {
    font-size: 1.2rem;
    margin: 0;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}



.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-slide .slide-content {
    position: relative;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    max-width: 600px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #c0392b;
}

/* 首页最新文章区域 */
.articles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* 两栏布局 */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.main-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    min-width: 0;
}

/* 侧边栏组件 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* 推荐文章样式 */
.recommended-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.recommended-article {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.recommended-article:last-child {
    border-bottom: none;
}

.recommended-article h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recommended-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommended-article h4 a:hover {
    color: #3498db;
}
.recommended-article .article-meta {
    font-size: 0.85rem;
    color: #95a5a6;
    display: flex;
    width: 100%;
}

.recommended-article .meta-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.recommended-article .article-meta i {
    font-size: 0.8rem;
    color: #95a5a6;
}

.recommended-article .article-category,
.recommended-article a.article-category {
    background: #e8f4fd;
    text-decoration: none !important;
    color: #3498db;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 1rem;
    white-space: nowrap;
}

/* 最新评论样式 */
.recent-comments {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-comments .comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.recent-comments .comment-item:last-child {
    border-bottom: none;
}

.recent-comments .comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.recent-comments .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

.recent-comments .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-comments .comment-item:hover .comment-avatar img {
    transform: scale(1.1);
}

.recent-comments .comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0;
}

.recent-comments .comment-content {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-comments .comment-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recent-comments .comment-meta .comment-time {
    flex-shrink: 0;
}

.recent-comments .comment-meta a {
    color: #3498db;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.comment-meta a:hover {
    text-decoration: underline;
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-cloud .tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 友情链接样式 - 两列布局 */
.friend-links-widget {
    margin-top: 1rem;
}

.friend-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.friend-link {
    display: block;
    padding: 0.8rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
}

.friend-link:hover {
    background: #f8f9fa;
    border-color: #bdc3c7;
}

/* 博主信息组件 */
.author-widget .author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-widget .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-widget .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-widget .author-details h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.author-widget .author-details p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.author-widget .author-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

.author-widget .author-stats span {
    padding: 0.2rem 0.6rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 新版关于博主布局 */
.author-info-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.author-info-v2 .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.author-info-v2 .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-v2 .author-name h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.author-info-v2 .author-bio p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 250px;
}

.author-info-v2 .author-stats {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 0.5rem;
}

.author-info-v2 .author-stats span {
    padding: 0.3rem 0.8rem;
    background: #f8f9fa;
    border-radius: 15px;
    font-weight: 500;
}

/* 社交媒体二维码链接样式 */
.social-qr-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.qr-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f8fe;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.qr-trigger:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.qr-trigger .fa-weixin {
    color: #07C160;
}

.qr-trigger .fa-qq {
    color: #12B7F5;
}

.qr-trigger .fa-instagram {
    color: #E4405F;
}

.qr-trigger .fa-envelope {
    color: #6C757D;
}

.qr-trigger .fa-book {
    color: #FE2C55;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f1f8fe;
}

.qr-trigger:hover .fa-book {
    color: white;
    background: #FE2C55;
    transform: scale(1.1);
}

.qr-code {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 140px;
    text-align: center;
}

.qr-item:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px) scale(1);
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid #f0f0f0;
}

.qr-code span {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}
.articles-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #2c3e50;
}
/* 文章列表样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#dynamic-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-list-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    padding: 0;
}

.sticky-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.5rem 1rem 0.5rem 0.8rem;
    border-radius: 0 0 12px 0;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sticky-tag::before {
    content: "🔥";
    font-size: 0.9rem;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #e0e0e0;
}
.article-list-image {
    flex-shrink: 0;
    width: 280px;
    height: 190px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin: 1.5rem;
}

/* 移除重复的媒体查询，统一在下面的响应式区块中处理 */

.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.article-list-item:hover .article-list-image img {
    transform: scale(1.08);
}

.article-list-content {
    flex: 1;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.article-list-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-list-meta span {
    font-size: 0.82rem;
    color: #7f8c8d;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-list-item:hover .article-list-meta span {
    background: #f1f8fe;
}

.article-list-meta .category,
.article-list-meta a.category {
    background: #e8f4fd;
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1;
    margin: 0;
}

.article-list-meta .views {
    background: #f8f9fa;
    color: #7f8c8d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-list-meta .views i {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.article-list-content h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-list-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 确保文章内容区域有足够的宽度 */
.article-list-content {
    flex: 1;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

/* 确保在flex布局中标题容器正确工作 */
.article-list-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.article-list-content h3 a:hover {
    color: #3498db;
}

.excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    word-break: break-all;
}

.article-list-content .read-more {
    align-self: flex-start;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: #f1f8fe;
    border-radius: 25px;
}

.article-list-content .read-more:hover {
    background: #3498db;
    color: white;
    gap: 0.8rem;
    transform: translateX(5px);
}

.article-list-content .read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.article-list-content .read-more:hover i {
    transform: translateX(8px);
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2980b9;
}

/* 关于区域 */
.about-section {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #3498db;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #2980b9;
}

/* 联系区域 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #219a52;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 修复文章列表页的文章项样式 - 添加特定前缀避免冲突 */
.articles-list .article-list-item {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.articles-list .article-list-item:last-child {
    border-bottom: none;
}

.articles-list .article-list-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.articles-list .article-list-meta .category,
.articles-list .article-list-meta a.category {
    color: #3498db;
    font-weight: 500;
}

.articles-list .article-list-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.articles-list .article-list-item h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.articles-list .article-list-item h2 a:hover {
    color: #3498db;
}

.articles-list .excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 新增样式：轮播图渐变背景 */
.carousel-slide-tech {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-slide-design {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-slide-ai {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-slide-cloud {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 新增样式：文章元数据文本颜色 */
.article-meta-text {
    color: #95a5a6;
}

/* 新增样式：推荐文章布局 */
.recommended-article-layout {
    justify-content: space-between;
}

.recommended-article-content {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

/* 新增样式：推荐文章标题 */
.recommended-article-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新增样式：推荐文章图片容器 */
.recommended-article-image {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 新增样式：推荐文章图片 */
.recommended-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 文章列表页特定样式 */
.articles-page-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    margin-top: 65px;
}

.articles-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.articles-page-header .category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.articles-page-header .category-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.articles-page-header .category-link:hover,
.articles-page-header .category-link.active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}


.article-item {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

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

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-meta .category,
.article-meta a.category {
    background: #e8f4fd;
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1;
    margin: 0;
}

.article-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-item h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.article-item h2 a:hover {
    color: #3498db;
}

.excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    font-size: 0.8rem;
}

.pagination {
    padding: 2rem 0;
    text-align: center;
}

.pagination .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination a {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #f1f8fe;
}

.pagination .active {
    background: #3498db;
    color: white;
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 隐藏文章样式 */
.hidden-article {
    display: none;
}

/* 加载更多按钮样式 */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.load-more-button {
    background: transparent;
    color: #7f8c8d;
    border: 1px solid #e0e0e0;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-button:hover {
    background: #f8f9fa;
    color: #3498db;
    border-color: #3498db;
}

.load-more-button:active {
    transform: translateY(1px);
}

.load-more-button.loading {
    color: #bdc3c7;
    border-color: #eee;
    pointer-events: none;
}

.load-more-button.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

.load-more-button.all-loaded {
    color: #bdc3c7;
    border-color: #eee;
    cursor: default;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Toyean风格设计 - 深蓝色科技商务风格
   ======================================== */
/* 商品详情页面容器 */
.product-detail-page {
    min-height: 100vh;
    background: #f8f9fa;
    color: #333;
    padding-top: 70px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #4a5568;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

/* ========================================
   新版Toyean产品展示区域 - 浅色友好设计
   ======================================== */

/* 产品展示区域 - 浅色现代化设计 */
.toyean-product-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(234, 236, 239, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.toyean-product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.toyean-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* 左侧产品展示区 */
.toyean-product-preview {
    position: relative;
}

.product-preview-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.product-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-hot {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    color: white;
}

.preview-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: rgba(168, 216, 234, 0.5);
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 右侧产品信息区 */
.toyean-product-info {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.product-title-section {
    margin-bottom: 25px;
    text-align: center;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.product-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* 产品标签区 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.product-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f1f8fe 0%, #e3f2fd 100%);
    color: #4299e1;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(66, 153, 225, 0.2);
    transition: all 0.3s ease;
}

.product-tag:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #d1e6fb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

/* 价格区域 */
.product-pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8fe 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid rgba(66, 153, 225, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e74c3c;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.original-price {
    font-size: 1.6rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.price-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 操作按钮区域 - 紧凑尺寸 */
.product-actions {
    margin-top: 25px;
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.buy-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-decoration: none;
}

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

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

.buy-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.buy-btn:hover i {
    transform: scale(1.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 产品特性标签样式 - 文章日期灰色样式 */
.product-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.feature-tag.article-meta-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #95a5a6;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.feature-tag.article-meta-text:hover {
    background: #f1f8fe;
    transform: translateY(-1px);
}

.feature-tag.article-meta-text i {
    font-size: 0.85rem;
    color: #95a5a6;
}

.feature-tag.article-meta-text:hover i {
    color: #667eea;
}

/* 响应式设计 */>>> END >>>

/* 响应式设计 */
@media (max-width: 1200px) {
    .toyean-product-container {
        gap: 30px;
    }
    
    .product-detail-title {
        font-size: 2.2rem;
    }
    
    .current-price {
        font-size: 2.4rem;
    }
}

@media (max-width: 1024px) {
    .toyean-product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-preview-container,
    .toyean-product-info {
        max-width: 600px;
        margin: 0 auto;
    }

    .product-detail-title {
        font-size: 2.5rem;
    }

    /* iPad及平板尺寸：两栏改为单栏，避免文章卡片内容区域过窄 */
    .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .sidebar {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .toyean-product-section {
        padding: 30px;
        margin: 30px 0;
        border-radius: 16px;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2.2rem;
    }
    
    .original-price {
        font-size: 1.4rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .toyean-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .toyean-product-section {
        padding: 20px;
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .product-pricing {
        padding: 20px;
    }
    
    .price-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-thumbnails {
        flex-wrap: wrap;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .product-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .toyean-product-section {
        padding: 16px;
    }
    
    .product-detail-title {
        font-size: 1.6rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .toyean-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .toyean-product-section {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .product-preview-container,
    .toyean-product-info {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* 高性能动画优化 */
@media (prefers-reduced-motion: no-preference) {
    .toyean-product-section {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .product-main-image,
    .product-badge,
    .thumbnail-item,
    .product-tag,
    .toyean-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .toyean-product-section {
        border-width: 2px;
        border-color: #a8d8ea;
    }
    
    .product-tag {
        border-width: 2px;
    }
    
    .toyean-btn {
        border-width: 2px;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .toyean-product-section,
    .product-main-image,
    .product-badge,
    .thumbnail-item,
    .product-tag,
    .toyean-btn,
    .toyean-btn::before {
        animation: none;
        transition: none;
    }
}

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

.toyean-product-section {
    animation: fadeInUp 0.8s ease;
}

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

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

/* ========================================
   Mac显示器风格商品详情
   ======================================== */

.mac-display {
    max-width: 800px;
    margin: 0 auto;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
}

.mac-display-top {
    height: 30px;
    background: #f5f5f7;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mac-camera {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 10px;
}

.mac-display-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
}

.mac-display-bottom {
    height: 60px;
    background: #f5f5f7;
    border-radius: 0 0 20px 20px;
    position: relative;
}

.mac-display-bottom::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: #d1d1d6;
    border-radius: 5px;
}

/* 商品图片区域 */
.product-image-mac {
    position: relative;
    margin: 0 auto 30px;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image-mac img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-tag-mac {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

/* 信息标签区 */
.mac-info-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mac-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #4a5568;
}

.mac-tag i {
    font-size: 1rem;
    color: #667eea;
}

.mac-tag:nth-child(1) i {
    color: #e74c3c;
}

.mac-tag:nth-child(2) i {
    color: #27ae60;
}

.mac-tag:nth-child(3) i {
    color: #3498db;
}

/* 价格区域 */
.mac-price-section {
    text-align: center;
    margin-bottom: 30px;
}

.mac-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.mac-current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
}

.mac-original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.mac-discount {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 按钮区域 */
.mac-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mac-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.mac-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.mac-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.mac-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.mac-btn-demo {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.mac-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mac-info-tags {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .mac-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .mac-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mac显示器容器样式 - 居中布局 */
.mac-display-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

/* 商品信息区域 - 居中布局 */
.product-info-mac {
    text-align: center;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-header-mac h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* 信息标签区居中 */
.mac-info-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mac-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #4a5568;
}

.mac-tag i {
    font-size: 1rem;
    color: #667eea;
}

.mac-tag:nth-child(1) i {
    color: #e74c3c;
}

.mac-tag:nth-child(2) i {
    color: #27ae60;
}

.mac-tag:nth-child(3) i {
    color: #3498db;
}

/* 价格区域居中 */
.mac-price-section {
    text-align: center;
    margin-bottom: 30px;
}

.mac-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.mac-current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
}

.mac-original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.mac-discount {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 按钮区域居中 */
.mac-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mac-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.mac-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.mac-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.mac-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.mac-btn-demo {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.mac-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-header-mac h1 {
        font-size: 2rem;
    }
    
    .mac-info-tags {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .mac-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .mac-btn {
        width: 100%;
        justify-content: center;
    }
    
    .mac-price {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .product-header-mac h1 {
        font-size: 1.8rem;
    }
    
    .mac-current-price {
        font-size: 2rem;
    }
    
    .mac-original-price {
        font-size: 1.2rem;
    }
}

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

/* 应用信息标签样式 */
.app-info-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #4a5568;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.app-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8fe 100%);
}

.app-tag i {
    font-size: 0.8rem;
    color: #667eea;
    min-width: 16px;
}

.app-tag:nth-child(1) i {
    color: #e74c3c;
}

.app-tag:nth-child(2) i {
    color: #27ae60;
}

.app-tag:nth-child(3) i {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-info-tags {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .app-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .app-info-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .app-tag {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

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

/* 晃动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* 新增样式：文章图片容器 */
.article-image {
    text-align: center;
    margin: 2rem 0;
}

/* 新增样式：文章图片 */
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 新增样式：图片说明文字 */
.article-image-caption {
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

/* 新增样式：评论表单回复信息 */
.reply-info {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.reply-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* 独立取消回复按钮样式 - 极简文字链接 */
.cancel-reply-btn {
    all: unset; /* 重置所有默认样式 */
    cursor: pointer;
    color: #95a5a6;
    font-size: 0.75rem;
    margin-left: 8px;
    transition: color 0.15s ease;
    text-decoration: none; /* 默认无下划线 */
    display: inline-block;
    padding: 2px 4px;
    border-radius: 2px;
}

.cancel-reply-btn:hover {
    color: #6b7280;
    background-color: rgba(0,0,0,0.02);
}

/* 新增样式：表单提交按钮容器 */
.form-submit-container {
    text-align: right;
    margin-top: 1rem;
}

/* 验证码区域 */
.comment-verify-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.comment-verify-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-verify-input {
    width: 120px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 0.75rem !important;
    margin: 0 !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    line-height: 40px;
    vertical-align: middle;
}

.comment-verify-input:focus {
    border-color: var(--primary-color, #007bff);
}

.comment-verify-img {
    height: 40px;
    display: block;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* 新增样式：自动左边距按钮 */
.auto-margin-btn {
    margin-left: auto;
}

/* 博文详情页样式 */
.article-content {
    padding: 100px 0 50px;
    /*margin-top: 70px;*/
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header .article-meta {
    justify-content: center;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}


.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.article-body h2 {
    margin: 2.5rem 0 1rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.article-body h3 {
    margin: 2rem 0 1rem;
    color: #34495e;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #555;
}

.article-body pre {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-body code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.article-body p code,
.article-body li code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e74c3c;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #555;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.article-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-body a:hover {
    border-bottom-color: #3498db;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.article-body th,
.article-body td {
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-body th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.article-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 1.5rem 0 1rem;
    color: #34495e;
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body h5 {
    font-size: 1.1rem;
}

.article-body h6 {
    font-size: 1rem;
}

.article-tags {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tag {
    display: inline-block;
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin: 0.3rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background: #3498db;
    color: white;
}

.article-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.article-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.article-actions button:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.related-articles {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card h4 {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card h4 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.related-card h4 a:hover {
    color: #3498db;
}

.related-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 评论区域样式 */
.comments-section {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
}

.comments-section h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.comments-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

/* 评论表单 */
.comment-form {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comment-form textarea,
.comment-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-input:focus,
.comment-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.comment-form button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.comment-form button:active {
    transform: translateY(0);
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 主评论样式 */
.comment {
    display: flex;
    gap: 1.2rem;
    padding: 1.8rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.comment img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.comment:hover img {
    transform: scale(1.05);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-date {
    color: #95a5a6;
    font-size: 0.85rem;
}

.reply-btn {
    background: transparent;
    border: none;
    color: #3498db;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.reply-btn:hover {
    background: #f1f8fe;
    color: #2980b9;
}

.reply-btn i {
    font-size: 0.8rem;
}

/* 回复目标用户样式 */
.reply-target {
    color: #3498db;
    font-weight: 600;
    margin-left: 0.3rem;
    font-size: 0.9em;
    position: relative;
    padding-left: 0.3rem;
}

.reply-target::before {
    content: '@';
    color: #7f8c8d;
    font-weight: normal;
}

/* 回复评论悬停时高亮目标 */
.comment:hover .reply-target {
    color: #2980b9;
    text-decoration: underline;
}

.comment p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* 评论操作按钮 */
.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.like-btn {
    background: transparent;
    border: none;
    color: #7f8c8d;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.like-btn:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.like-btn i {
    font-size: 0.9rem;
}

.like-btn.liked {
    color: #e74c3c;
}

/* 回复评论样式 - 简洁扁平化布局 */
.reply-comment {
    margin-top: 1rem;
    padding-left: 2rem;
    position: relative;
    border-left: 3px solid #e8f4fd;
    background: #f8f9fa;
}

.reply-comment::before {
    content: '↳ 回复';
    position: absolute;
    left: -2px;
    top: -8px;
    background: #e8f4fd;
    color: #3498db;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    transform: translateX(-50%);
}

.reply-comment img {
    width: 36px;
    height: 36px;
}

/* 回复评论悬停效果 */
.reply-comment:hover {
    background: #f1f8fe;
    border-left-color: #3498db;
}

.reply-comment:hover::before {
    background: #3498db;
    color: white;
}

/* 评论时间线指示器 */
.comments-list > .comment:not(:last-child) {
    margin-bottom: 1rem;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .comment {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .comment img {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .reply-comment {
        padding-left: 1.5rem;
        margin-top: 0.8rem;
    }
    
    .reply-comment::before {
        left: -1px;
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    
    .comment-header {
        justify-content: flex-start;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .articles-list .article-list-item,
    #dynamic-articles .article-list-item,
    .article-list-item {
        flex-direction: column;
        border-radius: 12px;
        margin-top: 1rem;
        padding: 0;
        border-bottom: none;
    }

    .articles-list .article-list-image,
    #dynamic-articles .article-list-image,
    .article-list-image {
        width: 100%;
        margin: 0;
        height: 200px;
        border-radius: 0;
    }

    .articles-list .article-list-content,
    #dynamic-articles .article-list-content,
    .article-list-content {
        padding: 1.2rem 1rem;
        width: 100% !important;
        box-sizing: border-box;
    }

    .articles-list .article-list-meta,
    #dynamic-articles .article-list-meta,
    .article-list-meta {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .articles-list .article-list-meta span,
    #dynamic-articles .article-list-meta span,
    .article-list-meta span {
        font-size: 0.78rem;
        padding: 0.3rem 0.7rem;
    }

    .articles-list .article-list-content h3,
    #dynamic-articles .article-list-content h3,
    .article-list-content h3 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .articles-list .excerpt,
    #dynamic-articles .excerpt,
    .excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
    
    .author-widget .author-info {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu > li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-item .nav-link {
        position: relative;
        padding: 16px 24px;
        justify-content: space-between;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nav-item .nav-link i {
        display: block;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .nav-item.active .nav-link i {
        transform: rotate(180deg);
    }

    .nav-menu > li > a {
        display: block;
        padding: 16px 24px;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu > li:last-child > a {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-item.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu a {
        display: block;
        padding: 14px 24px 14px 36px;
        border-bottom: 1px solid #e8ecef;
        color: #495057;
        font-weight: 500;
        background: #fafbfc;
        transition: all 0.3s ease;
    }

    .dropdown-menu a:hover {
        background: #edf2f7;
        color: #3498db;
        padding-left: 40px;
    }

    .nav-search {
        order: 2;
        margin-left: 0;
        margin-right: 1rem;
    }

    .search-dropdown {
        width: 280px;
        right: -50px;
    }

    .search-toggle {
        font-size: 1rem;
        padding: 0.4rem;
        width: 36px;
        height: 36px;
    }

    .nav-search:hover .search-dropdown {
        transform: translateY(5px);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .nav-toggle.active {
        transform: rotate(90deg);
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .bar {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s ease;
    }

    /* 轮播图移动端优化 */
    .carousel-section {
        height: 400px;
        overflow: hidden;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-header .date {
        display: none;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-actions {
        flex-direction: column;
        align-items: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment {
        flex-direction: column;
        text-align: center;
    }

    .comment-header {
        justify-content: center;
    }
}
/* 超小屏幕适配 */
@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 100%;
    }

    .search-dropdown {
        width: 250px;
        right: -30px;
        padding: 1rem;
    }

    .search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .suggestion-tags {
        gap: 0.3rem;
    }

    .suggestion-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
    .carousel-section {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 文章分享组件样式 */
.article-share {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-label {
    margin-right: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 0.5rem;
    border-radius: 50%;
    font-size: 18px;
    color: white;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
}

.share-icon:hover {
    transform: translateY(-2px);
}

.weibo {
    background-color: #e6162d;
}

.wechat {
    background-color: #07C160;
}

.qq {
    background-color: #12B7F5;
}

.douban {
    background-color: #007722;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.douban-icon {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
}

.wechat-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    width: 140px;
    text-align: center;
}

.wechat-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
}

.wechat-qrcode span {
    display: block;
    font-size: 12px;
    color: #666;
}

.wechat:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 评论表单验证样式 */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

.error-message:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(231, 76, 60, 0.9) transparent;
}

.comment-input.error,
textarea.error {
    border-color: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes highlight {
    0% { background-color: rgba(52, 152, 219, 0.1); }
    50% { background-color: rgba(52, 152, 219, 0.3); }
    100% { background-color: rgba(52, 152, 219, 0.1); }
}

.comment {
    transition: background-color 0.3s ease;
}

.success-message {
    position: fixed;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* 初始位置将在JS中动态设置 */
}

/* 评论区新版样式 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.comment-main {
}

.reply-to {
    color: #95a5a6;
    font-size: 0.85rem;
    font-weight: 400;
}

.reply-to a {
    color: #3498db;
    text-decoration: none;
}

.reply-to a:hover {
    text-decoration: underline;
}

.comment-avatar {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    display: block;
}

.author-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-badge {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.reply-to {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-date {
    color: #95a5a6;
    font-size: 0.85rem;
}

.comment-body {
    margin-bottom: 1rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.comment-body p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.like-btn, .reply-btn, .show-replies-btn {
    background: transparent;
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
}

.like-btn:hover, .reply-btn:hover, .show-replies-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.like-btn i, .reply-btn i, .show-replies-btn i {
    font-size: 0.9rem;
}

.comment-replies {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.comment-reply {
    margin: 0.75rem 0;
    background: #fafbfc;
    padding: 1rem 1.2rem;
    display: flex;
    gap: 1rem;
    border-radius: 10px;
    border: 1px solid #eef0f2;
    border-left: 3px solid #3498db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.comment-reply:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    background: #f5f7fa;
    border-color: #3498db;
    transform: translateX(2px);
}

.comment-reply .comment-avatar {
    width: 40px;
    height: 40px;
}

.comment-reply .comment-avatar img {
    border-width: 2px;
}

.comment-reply .comment-author {
    font-size: 0.9rem;
}

.comment-reply .comment-header {
    margin-bottom: 0.5rem;
}

.comment-reply .comment-date {
    font-size: 0.85rem;
}

.comment-reply .comment-body {
    margin-bottom: 0.6rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.comment-reply .comment-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: break-word;
}

.comment-reply .comment-actions {
    gap: 0.8rem;
}

.comment-reply .reply-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 16px;
}

.reply-to {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 复制代码按钮样式 */
.copy-btn-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.copy-code-btn {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-code-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-1px);
}

.copy-code-btn.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    color: #27ae60;
}

pre {
    position: relative;
}

/* 确保代码区域有足够的右边距给按钮 */
pre code {
    padding-right: 80px !important;
}

/* 浮动讨论按钮样式 */
.discuss-float-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.discuss-float-btn.show {
    opacity: 1;
    transform: translateY(0);
}

#join-discuss-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

#join-discuss-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

/* 评论区响应式设计 */
@media (max-width: 768px) {
    .comment {
        flex-direction: column;
        padding: 1rem;
        align-items: flex-start;
        text-align: left;
    }

    .comment-content {
        width: 100%;
        text-align: left;
    }

    .comment-body {
        text-align: left;
    }

    .comment-body p {
        text-align: left;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-meta {
        width: 100%;
        justify-content: space-between;
    }

    .comment-reply {
        margin-left: 0;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        align-items: flex-start;
        text-align: left;
        border-radius: 8px;
        border-left: 2px solid #3498db;
    }

    .comment-reply .comment-content {
        width: 100%;
        text-align: left;
    }

    .comment-reply .comment-body {
        text-align: left;
    }

    .comment-reply .comment-body p {
        text-align: left;
    }

    .comment-replies {
        padding-top: 0.8rem;
        margin-top: 0.8rem;
    }

    .comment-reply .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-reply .comment-author {
        font-size: 0.85rem;
    }

    .comment-reply .comment-body p {
        font-size: 0.85rem;
    }

    .comment-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* 复制按钮移动端适配 */
    .copy-btn-container {
        top: 5px;
        right: 5px;
    }
    
    .copy-code-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    pre code {
        padding-right: 70px !important;
    }
}

/* 评论 - 登录用户信息 */
.comment-logged-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* 评论 - 暂无评论 */
.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.no-comments p {
    color: #95a5a6;
    font-size: 1rem;
    margin: 0;
}

/* 暂无文章提示样式 */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #95a5a6;
}

.no-articles i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #bdc3c7;
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.no-articles p {
    font-size: 1rem;
    margin: 0;
}

/* 评论 - 评论已关闭 */
.comments-closed {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.comments-closed p {
    color: #95a5a6;
    margin: 0;
}

/* 评论分页 */
.commentpagebar {
    text-align: center;
    margin: 2rem 0;
}

/* ========================================
   商品列表页面样式 - 参考toyean.com
   ======================================== */

/* 商品页面头部 */
.products-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 65px;
}

.products-page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.products-page-header .category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.products-page-header .category-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.products-page-header .category-link:hover,
.products-page-header .category-link.active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

/* 商品列表区域 */
.products-section {
    padding: 40px 0 0px;
    background: #f8f9fa;
}

/* 商品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 商品图片 */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 商品标签 */
.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 500;
}

.product-tag:nth-of-type(1) {
    background: #e74c3c;
}

.product-tag:nth-of-type(2) {
    background: #27ae60;
}

.product-tag:nth-of-type(3) {
    background: #3498db;
}

/* 商品信息 */
.product-info {
    padding: 15px;
}

.product-category {
    margin-bottom: 8px;
}

.product-category a {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #667eea;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3498db;
}

.product-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 商品底部 */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e74c3c;
}

.add-to-cart-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}
/* 响应式设计 */
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-page-header h1 {
        font-size: 1.8rem;
    }
    
    .products-page-header .category-link {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

/* 隐藏商品样式 */
.hidden-product {
    display: none;
}

/* ========================================
   商品详情页面样式
   ======================================== */

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 商品详情容器 */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* 商品图片区域 */
.product-image-section {
    position: relative;
}

.product-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-tag-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

/* 商品信息区域 */
.product-info-section {
    padding: 10px;
}

.product-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.product-category {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-rating .fas {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* 价格区域 */
.product-price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e74c3c;
}

.original-price {
    font-size: 1.4rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #27ae60;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 商品描述 */
.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* 特色功能 */
.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #4a5568;
}

.product-features .fas {
    color: #27ae60;
    font-size: 0.9rem;
}

/* 购买区域 */
.purchase-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

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

.quantity-selector label {
    font-weight: 600;
    color: #2d3748;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.quantity-controls input {
    width: 60px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-large {
    flex: 1;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

/* 规格信息 */
.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.spec-label .fas {
    color: #667eea;
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    color: #2d3748;
}

/* 标签页 - 居中对齐 */
.product-tabs {
    margin-bottom: 50px;
    text-align: center;
}

.tab-header {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.tab-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tab-pane {
    text-align: left;
    display: inline-block;
    width: 100%;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
}

.tab-pane h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: #4a5568;
}

.tab-pane p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
}

.tab-pane li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.tab-pane li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 相关商品 */
.related-products {
    margin-bottom: 60px;
}

.related-products h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #2d3748;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    height: 200px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 15px;
    text-align: center;
}

.related-product-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.related-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-header h1 {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-header h1 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 滚动加载样式 */
.scroll-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #667eea;
    font-weight: 600;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.all-loaded {
    color: #27ae60;
    font-weight: 600;
    padding: 15px 30px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 移动端关键修复 ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .main-content,
    .sidebar {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .sidebar {
        position: static !important;
    }

    .articles-list,
    #dynamic-articles {
        width: 100% !important;
    }

    .articles-list .article-list-item,
    #dynamic-articles .article-list-item,
    .article-list-item {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: none !important;
        box-sizing: border-box !important;
    }

    .article-list-image {
        width: 100% !important;
        margin: 0 !important;
        height: 200px !important;
        border-radius: 0 !important;
    }

    .article-list-content {
        width: 100% !important;
        padding: 1.2rem 1rem !important;
        box-sizing: border-box !important;
    }

    .article-list-meta {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .article-list-content h3 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .articles-list,
    #dynamic-articles {
        gap: 1rem;
    }

    .load-more-container {
        margin-top: 1.5rem;
    }

    .container {
        padding: 0 15px !important;
    }

    .articles-section {
        padding: 40px 0;
    }

    .carousel-section {
        height: 400px;
        margin-top: 65px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .sidebar-widget {
        margin-bottom: 1rem;
    }

    .author-widget .author-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        height: 320px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }
}

/* 打赏区域样式 */
.reward-section {
    text-align: center;
    margin: 50px 0 40px 0;
    padding: 0;
}

.reward-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.reward-section h3 i {
    color: #e74c3c;
    margin-right: 10px;
}

.reward-section p {
    margin: 0 0 30px 0;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.reward-options {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.reward-option {
    text-align: center;
}

.reward-option-title {
    margin-bottom: 12px;
    color: #25c25a;
    font-weight: 600;
    font-size: 1.1rem;
}

.reward-option-title i {
    margin-right: 8px;
}

.reward-option:nth-child(2) .reward-option-title {
    color: #1677ff;
}

.reward-qr-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.reward-qr-container img {
    width: 140px;
    height: 140px;
    display: block;
}

.reward-option p {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.reward-hint {
    margin: 30px 0 0 0;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* 打赏区域响应式设计 */
@media (max-width: 768px) {
    .reward-options {
        gap: 30px;
    }

    .reward-qr-container {
        padding: 15px;
    }

    .reward-qr-container img {
        width: 120px;
        height: 120px;
    }

    .reward-section h3 {
        font-size: 1.1rem;
    }

    .reward-section p {
        font-size: 0.9rem;
    }
}