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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.7;
    color: var(--gray-700);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    max-height: 40px;
    border-radius: var(--radius-sm);
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    color: var(--gray-600);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--primary);
    background: var(--gray-100);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    border-radius: 2px;
}

nav a:hover::after {
    width: 20px;
}

.desktop-nav {
    display: flex;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    max-height: 500px;
}

.mobile-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* Main */
main {
    padding: 32px 0;
    min-height: calc(100vh - 180px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.hero h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.article-content {
    padding: 24px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.article-content h3 a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 12px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 48px 32px 80px;
    font-size: 28px;
    font-weight: 700;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.banner-dot:hover {
    background: rgba(255,255,255,0.6);
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: var(--primary);
}

/* Article Detail */
.article-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.article-detail {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.article-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-thumb {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-thumb img {
    width: 100%;
    display: block;
}

/* 文章卡片网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

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

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

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--gray-300);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-card:hover .card-title {
    color: var(--primary);
}

.card-summary {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-400);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta svg {
    width: 14px;
    height: 14px;
}

.article-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin: 24px 0;
}

.summary-label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray-700);
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-light);
    transition: all 0.3s;
}

.article-content a:hover {
    border-color: var(--primary);
}

.article-content code {
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--danger);
}

.article-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-600);
}

/* Sidebar */
.article-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all 0.3s;
}

.header-search-icon:hover {
    background: var(--primary);
    color: #fff;
}

.header-search-icon svg {
    width: 20px;
    height: 20px;
}

.page-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.article-toc,
.hot-articles {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.toc-title,
.hot-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item {
    color: var(--gray-600);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    font-size: 14px;
    display: block;
    border-left: 3px solid transparent;
}

.toc-item:hover {
    color: var(--primary);
    background: var(--gray-50);
    border-left-color: var(--primary);
}

.toc-level-3 {
    padding-left: 20px;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-700);
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.hot-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.hot-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.hot-rank.top-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.hot-rank.top-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
}

.hot-rank.top-3 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
}

/* FAQ */
.article-faq {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--gray-700);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--gray-400);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px 68px;
    color: var(--gray-600);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Download Section */
.article-download {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.download-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.download-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.download-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.download-index {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 600;
}

.download-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    color: var(--primary);
    word-break: break-all;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.download-link:hover {
    background: var(--primary);
    color: #fff;
}

.download-passwords {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-login-tip {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: var(--radius);
}

.download-login-tip p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.download-login-tip .login-link {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.download-login-tip .login-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.password-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-label {
    color: var(--gray-600);
    font-size: 14px;
}

.password-value {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 32px;
    margin-top: 64px;
}

.quick-links,
.friend-links {
    margin-bottom: 24px;
}

.quick-links-title,
.links-title {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.quick-links-list,
.links-list {
    display: inline;
}

.quick-links-list a,
.links-list a {
    color: var(--gray-300);
    text-decoration: none;
    margin-right: 16px;
    transition: color 0.3s;
}

.quick-links-list a:hover,
.links-list a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

.contact-info {
    text-align: center;
    margin-top: 16px;
    color: var(--gray-400);
}

/* Article Navigation */
.article-nav {
    margin-top: 32px;
    text-align: center;
}

.article-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s;
    font-weight: 600;
}

.article-nav a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .article-toc,
    .hot-articles {
        flex: 1;
        min-width: 280px;
    }
    
    .toc-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .toc-level-3 {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header .container {
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
    }
    
    .header-user {
        order: 2;
        padding-left: 0;
        margin-left: 0;
    }
    
    .user-nickname {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .user-trigger {
        padding: 8px;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav.open {
        display: flex;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .hero {
        padding: 40px 24px;
        margin-bottom: 32px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .banner-slider {
        height: 280px;
    }
    
    .banner-title {
        font-size: 20px;
        padding: 32px 20px 70px;
    }
    
    .banner-dots {
        bottom: 20px;
    }
    
    .article-detail {
        padding: 24px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-download {
        padding: 24px;
        margin: 24px 0;
    }
    
    .download-passwords {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-faq {
        padding: 24px;
    }
}

/* Article Share Section */
.article-share-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin: 32px 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 20px;
    flex-wrap: wrap;
}

.share-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-wechat {
    background: #07c160;
}

.share-weibo {
    background: #e6162d;
}

.share-qq {
    background: #12b7f6;
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #4267b2;
}

.share-right {
    display: flex;
    gap: 12px;
}

.qr-btn,
.poster-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.qr-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.poster-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
}

.poster-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* QRCode Modal */
.qrcode-modal,
.poster-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.qrcode-modal.show,
.poster-modal.show {
    display: flex;
}

.qrcode-content,
.poster-content {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

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

.qrcode-header,
.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.qrcode-header h3,
.poster-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qrcode-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#qrcodeCanvas {
    border-radius: var(--radius-sm);
}

#qrcodeCanvas img {
    display: block;
}

.qrcode-tip {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin: 0;
}

.poster-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#posterPreview {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.poster-actions {
    display: flex;
    gap: 12px;
}

.download-poster-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.download-poster-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-comments {
    margin-top: 48px;
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--gray-800);
}

.comment-form {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 32px;
}

.form-header {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.login-prompt {
    text-align: center;
    padding: 24px;
}

.prompt-text {
    color: var(--gray-500);
    margin-bottom: 12px;
}

.login-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
}

.login-link:hover {
    background: var(--primary-dark);
}

.comment-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 12px;
}

.submit-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.cancel-btn {
    padding: 10px 24px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: var(--gray-300);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.avatar-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.comment-avatar.small .avatar-default {
    font-size: 14px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    color: var(--gray-800);
}

.comment-time {
    font-size: 12px;
    color: var(--gray-400);
}

.comment-content {
    color: var(--gray-600);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions button {
    padding: 4px 12px;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.comment-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.replies {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    display: flex;
    gap: 12px;
}

.reply-body {
    flex: 1;
    font-size: 14px;
}

.reply-author {
    font-weight: 500;
    color: var(--gray-700);
    margin-right: 8px;
}

.reply-content {
    color: var(--gray-600);
}

.reply-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-left: 8px;
}

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 20px;
}

.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.user-trigger:hover {
    background: var(--gray-100);
}

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

.user-avatar-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-nickname {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--gray-400);
    transition: transform 0.3s;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 9999;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-item svg {
    flex-shrink: 0;
}

/* 美化提示框 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-alert {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 480px;
    padding: 24px;
    animation: slideIn 0.3s ease;
}

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

.custom-alert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-icon.success {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

.custom-alert-icon.error {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
}

.custom-alert-icon.warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
}

.custom-alert-icon.info {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.custom-alert-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    text-align: center;
    margin-bottom: 12px;
}

.custom-alert-message {
    font-size: 14px;
    color: #595959;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-alert-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-alert-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .article-comments {
        padding: 20px;
    }
    
    .comment-item {
        gap: 12px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .replies {
        padding-left: 12px;
    }
}

@media (max-width: 768px) {
    .article-share-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-right {
        width: 100%;
    }
    
    .qr-btn,
    .poster-btn {
        flex: 1;
        justify-content: center;
    }
    
    .qrcode-content,
    .poster-content {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}
