/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: #e91e8c; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo img { height: 40px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 16px; font-weight: 500; padding: 10px 0; }
.nav a.active { color: #e91e8c; border-bottom: 2px solid #e91e8c; }
.header-actions { display: flex; gap: 15px; align-items: center; }
.btn-search, .btn-menu { background: none; border: none; cursor: pointer; font-size: 20px; color: #666; }

/* Hero Section (Index & Download) */
.hero { background: #fff; margin-top: 20px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; object-fit: cover; }

/* Main Layout */
.main-layout { display: flex; gap: 30px; margin: 30px 0; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* Section Title */
.section-title { font-size: 24px; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.section-title span { font-size: 14px; font-weight: normal; color: #999; cursor: pointer; }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.article-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.article-thumb { width: 240px; height: 160px; flex-shrink: 0; border-radius: 8px; overflow: hidden; position: relative; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-item:hover .article-thumb img { transform: scale(1.05); }
.category-tag { position: absolute; top: 10px; left: 10px; background: #e91e8c; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; z-index: 2; }
.article-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.article-desc { color: #666; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 15px; color: #999; font-size: 13px; margin-top: 15px; }
.article-author { display: flex; align-items: center; gap: 8px; }
.article-author img { width: 24px; height: 24px; border-radius: 50%; }

/* Sidebar Widgets */
.widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.widget-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.widget-title a { font-size: 13px; color: #999; font-weight: normal; }
.side-list { display: flex; flex-direction: column; gap: 15px; }
.side-item { display: flex; gap: 12px; }
.side-thumb { width: 100px; height: 70px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.side-title { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-date { font-size: 12px; color: #999; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: #666; margin-bottom: 20px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e91e8c; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* Single Article */
.single-article { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.single-header { margin-bottom: 30px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.single-title { font-size: 28px; font-weight: 600; margin-bottom: 15px; color: #333; }
.single-meta { display: flex; justify-content: center; align-items: center; gap: 20px; color: #999; font-size: 14px; }
.single-content { font-size: 16px; line-height: 1.8; color: #444; }
.single-content p { margin-bottom: 20px; }
.single-content img { margin: 20px auto; border-radius: 8px; }
.single-content h2 { font-size: 22px; margin: 30px 0 15px; color: #333; }
.single-content h3 { font-size: 18px; margin: 25px 0 15px; color: #333; }

/* Download Page */
.download-hero { background: linear-gradient(135deg, #fff0f5 0%, #fff 100%); padding: 60px 0; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.download-title { font-size: 36px; font-weight: 700; margin-bottom: 20px; color: #333; }
.download-desc { font-size: 18px; color: #666; margin-bottom: 40px; }
.download-btn { display: inline-block; background: #e91e8c; color: #fff; font-size: 20px; font-weight: 600; padding: 15px 50px; border-radius: 30px; box-shadow: 0 5px 15px rgba(233,30,140,0.3); transition: all 0.3s ease; }
.download-btn:hover { background: #d8157c; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,30,140,0.4); }
.download-info { margin-top: 20px; font-size: 14px; color: #999; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.feature-card { background: #fff; padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.feature-icon { width: 60px; height: 60px; background: #fff0f5; color: #e91e8c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 20px; }
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: #666; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: #fff; border: 1px solid #ddd; border-radius: 4px; color: #666; transition: all 0.3s ease; }
.page-link:hover, .page-link.active { background: #e91e8c; color: #fff; border-color: #e91e8c; }

/* Footer */
.footer { background: #fff; padding: 40px 0 20px; margin-top: 50px; border-top: 1px solid #eee; text-align: center; color: #999; font-size: 13px; line-height: 2; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #666; margin: 0 10px; }
.footer-links a:hover { color: #e91e8c; }

/* Responsive */
@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; height: 200px; }
    .features-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
}
