@charset "UTF-8";
/* 
 * 统一样式文件 - 用于 index.php, readme.php, header.php
 * 包含网站通用样式和组件样式
 */

/* 基础样式重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 通用字体和颜色 */
body { font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; }

/* 头部导航样式 */
header { 
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%); 
    color: white; 
    padding: 0 20px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 70px;
}

.logo { 
    font-size: 28px; 
    font-weight: bold; 
    color: #3498db; 
    text-decoration: none; 
    transition: all 0.3s ease;
}

.logo:hover {
    color: #2980b9;
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover { 
    color: #3498db; 
}

nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px; 
    background: #3498db; 
    transition: width 0.3s ease; 
}

nav a:hover::after { 
    width: 100%; 
}

/* 当前页面高亮 */
nav a.active { 
    color: #3498db; 
}

nav a.active::after { 
    width: 100%; 
}

/* 主页样式 - 卡片式布局 */
body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
main { max-width: 1200px; margin: 0 auto; padding: 0px 20px; }
main h1 { text-align: center; color: white; font-size: 2.5rem; margin-bottom: 40px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); font-weight: 600; }

/* 卡片区域样式 */
.card-section { margin: 10px 0; }
.card-section h2 { color: white; font-size: 2rem; margin-bottom: 30px; text-align: center; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); font-weight: 600; }
.card-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

/* 卡片样式 */
.card { background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%); border-radius: 20px; padding: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.8); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.6s ease; }
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.5); }

/* 卡片内容样式 */
.card h3 { font-size: 1.4rem; font-weight: 700; background: linear-gradient(135deg, #2c3e50, #3498db); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 15px; position: relative; display: inline-block; }
.card h3::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: linear-gradient(135deg, #3498db, #2c3e50); transition: width 0.4s ease; }
.card:hover h3::after { width: 100%; }
.card p { color: #666; line-height: 1.6; margin-bottom: 15px; font-size: 0.95rem; }
.card span { display: block; font-size: 0.9rem; color: #888; margin-top: 10px; padding: 8px 12px; background: linear-gradient(135deg, #f8f9fa, #e9ecef); border-radius: 8px; border-left: 4px solid #3498db; }

/* 特定卡片样式 */
.card .version { border-left-color: #27ae60; }
.card .provider { border-left-color: #e74c3c; }
.card .language { border-left-color: #9b59b6; }

/* 下载说明页面样式 */
.readme-body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; line-height: 1.6; min-height: 100vh;}
.readme-container { max-width: 800px; margin: 0 auto; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; }
.readme-header { background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%); color: white; padding: 40px; text-align: center; }
.readme-header h1 { font-size: 32px; margin-bottom: 10px; font-weight: 600; }
.readme-header p { font-size: 16px; opacity: 0.9; }
.readme-content { padding: 40px; }
.download-section { background: #f8f9fa; border-radius: 10px; padding: 30px; margin-bottom: 30px; border-left: 5px solid #3498db; }
.download-section h2 { color: #2c3e50; margin-bottom: 15px; font-size: 24px; }
.download-section p { margin-bottom: 15px; font-size: 16px; }
.important-note { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 5px; padding: 15px; margin: 20px 0; }
.important-note h3 { color: #856404; margin-bottom: 10px; }
.baidu-link { display: inline-block; background: #e74c3c; color: white; padding: 15px 30px; border-radius: 25px; text-decoration: none; font-size: 18px; font-weight: 600; margin: 20px 0; transition: all 0.3s ease; }
.baidu-link:hover { background: #c0392b; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3); }
.steps { margin: 20px 0; }
.step { display: flex; align-items: flex-start; margin-bottom: 15px; background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.step-number { background: #3498db; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 15px; flex-shrink: 0; }
.step-content { flex: 1; }
.contact-info { background: #e8f5e8; border: 1px solid #c8e6c9; border-radius: 10px; padding: 25px; margin-top: 30px; }
.contact-info h3 { color: #2e7d32; margin-bottom: 15px; }
.contact-item { display: flex; align-items: center; margin-bottom: 10px; }
.contact-item i { width: 20px; margin-right: 10px; color: #2e7d32; }
.footer { text-align: center; padding: 20px; background: #f8f9fa; color: #666; font-size: 14px; }

/* 底部版权样式 */
footer { 
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)); 
    color: white; 
    margin-top: 60px; 
    padding: 40px 0; 
    border-top: 3px solid rgba(52, 152, 219, 0.3); 
    width: 100%; 
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

footer p:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 通用组件样式 */
.section-header { text-align: center; margin: 40px 0 30px 0; color: white; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); font-weight: 600; }
.section-header p { font-size: 1.1rem; opacity: 0.9; }
.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: 15px; color: #666; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; color: #999; }
.admin-links { text-align: center; margin-top: 30px; }
.admin-links a { color: white; text-decoration: none; margin: 0 15px; opacity: 0.8; transition: opacity 0.3s ease; }
.admin-links a:hover { opacity: 1; text-decoration: underline; }

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #2c3e50; flex-direction: column; padding: 20px; gap: 15px; }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .site-title { font-size: 18px; }
    .software-grid { grid-template-columns: 1fr; }
    .home-header h1 { font-size: 2rem; }
    .software-header { flex-direction: column; gap: 10px; }
    .action-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .readme-container { margin: 10px; }
    .readme-header { padding: 30px 20px; }
    .readme-content { padding: 20px; }
}

.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }