/* 琳东源码网 - 现代化美化样式 */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

/* 现代化卡片样式 */
article.post, .source-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 20px;
    margin-bottom: 20px;
}

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

/* 现代化按钮 */
a.button, .modern-button, input[type='submit'] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

a.button:hover, .modern-button:hover, input[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 源码标签样式 */
.source-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

.source-tag.php {
    background: #3498db;
}

.source-tag.h5 {
    background: #9b59b6;
}

.source-tag.payment {
    background: #e67e22;
}

/* 导航栏美化 */
nav, .site-header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

nav a, .site-header a {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover, .site-header a:hover {
    color: var(--accent-color) !important;
    text-decoration: none;
}

/* 搜索框美化 */
.search-box input[type='search'], input[type='text'], input[type='email'] {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    transition: border-color 0.3s ease;
}

.search-box input[type='search']:focus, input[type='text']:focus, input[type='email']:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* 页脚美化 */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    border-radius: 15px 15px 0 0;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

/* 响应式优化 */
@media (max-width: 768px) {
    article.post, .source-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .modern-button {
        width: 100%;
        text-align: center;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

article.post, .source-card {
    animation: fadeIn 0.6s ease-out;
}

/* 价格标签美化 */
.price-tag {
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin: 10px 0;
}

/* 分类标签 */
.category-tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
}

/* USDT支付按钮美化 - 保留原有功能 */
.usdt-payment-btn, .bepusdt-pay-button {
    background: linear-gradient(135deg, #26a17b 0%, #1e8b6a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(38, 161, 123, 0.3);
}

.usdt-payment-btn:hover, .bepusdt-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 161, 123, 0.4);
    background: linear-gradient(135deg, #2cb380 0%, #249d70 100%);
}

/* 产品卡片样式 */
.product-item, .source-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

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

/* 价格显示美化 */
.price {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: 700;
}

.price del {
    color: #95a5a6;
    font-size: 1rem;
}

/* 购买按钮 */
.add-to-cart, .buy-now {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.add-to-cart:hover, .buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 导航菜单美化 */
.main-navigation {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 0 0 15px 15px;
    padding: 15px 0;
}

.main-navigation a {
    color: white !important;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.1);
    color: #3498db !important;
}

/* 搜索框美化 */
.search-form input[type='search'] {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px 12px 45px;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
}

.search-form input[type='search']:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 面包屑导航 */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 侧边栏美化 */
.sidebar .widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

/* 文章列表样式 */
.post-list article {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-list article:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 阅读更多按钮 */
.read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .product-item, .source-item {
        margin-bottom: 15px;
    }
    
    .main-navigation a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .post-list article {
        padding: 15px;
    }
    
    .sidebar .widget {
        padding: 15px;
    }
}

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

.product-item, .post-list article, .source-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 网站头部大图/横幅美化 */
.site-hero, .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #3498db 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

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

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.site-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.site-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 分类导航美化 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.category-nav a {
    padding: 10px 25px;
    border-radius: 25px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-nav a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.category-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 统计信息卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-card .label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* 通知/公告条 */
.announcement-bar {
    background: linear-gradient(90deg, #f39c12, #e74c3c, #9b59b6);
    padding: 12px 20px;
    text-align: center;
    color: white;
    font-weight: 500;
    animation: gradientMove 3s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 标签云美化 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
}

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

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

/* 暗黑模式支持（可选） */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
        color: #e0e0e0;
    }
    
    article.post, .source-card, .product-item, .source-item {
        background: #16213e;
        color: #e0e0e0;
    }
    
    .stats-card, .category-nav {
        background: #16213e;
    }
}
