/* 系统库 - 前台样式 (Cool-Admin 紫色主题风格) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    /* Cool-Admin 紫色主题 */
    --primary: #6c5ce7;
    --primary-dark: #4d3aff;
    --primary-light: #a29bfe;
    --primary-bg: rgba(108, 92, 231, .08);
    --accent: #d83b01;
    --success: #00d9a3;
    --warning: #ffa502;
    --danger: #ff4757;
    --info: #54a0ff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-lighter: #b2bec3;
    --bg: #f5f6fa;
    --bg-card: #ffffff;
    --bg-soft: #f1f2f6;
    --border: #e9ecf0;
    --border-light: #f1f2f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 16px 40px rgba(108,92,231,.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #4d3aff 100%);
    --gradient-primary-deep: linear-gradient(135deg, #4d3aff 0%, #6c5ce7 50%, #a29bfe 100%);
    --gradient-orange: linear-gradient(135deg, #d83b01 0%, #ff8c42 100%);
    --gradient-orange-deep: linear-gradient(135deg, #8a2c00 0%, #d83b01 50%, #ff8c42 100%);
    --gradient-purple-deep: linear-gradient(135deg, #2d2f3a 0%, #4d3aff 40%, #6c5ce7 70%, #a29bfe 100%);
    --gradient-dark-purple: linear-gradient(135deg, #140a2e 0%, #2d1b4e 35%, #3a1f6e 65%, #4d2d8a 100%);
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "Segoe UI", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, li { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
.header { background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(233,236,240,.6); }
.header-inner { display: flex; align-items: center; height: 68px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.logo .logo-icon { width: 40px; height: 40px; background: var(--gradient-primary); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 4px 12px rgba(108,92,231,.35); transition: var(--transition); }
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); }
.logo:hover { color: var(--primary); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-light); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 8px; transition: var(--transition); position: relative; }
.nav a::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); transform: translateX(-50%); }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 60%; }
.nav a.active { color: var(--primary); background: var(--primary-bg); }
.nav a.active::after { width: 60%; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; }
.search-box input { width: 240px; height: 40px; border: 1.5px solid var(--border); border-radius: 20px; padding: 0 40px 0 18px; font-size: 13px; outline: none; background: var(--bg-card); transition: var(--transition); color: var(--text); }
.search-box input::placeholder { color: var(--text-lighter); }
.search-box input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(108,92,231,.12); width: 280px; }
.search-box button { position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; color: var(--text-lighter); font-size: 14px; border-radius: 50%; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.search-box button svg { width: 15px; height: 15px; }
.search-box button:hover { color: #fff; background: var(--gradient-primary); }
.btn-admin { color: var(--text-light); font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--border); font-weight: 500; }
.btn-admin:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-bg); }

/* 搜索结果页表单 */
.search-form { display: flex; gap: 12px; max-width: 600px; margin-bottom: 24px; }
.sf-input { position: relative; flex: 1; }
.sf-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-lighter); pointer-events: none; }
.sf-input input { width: 100%; height: 46px; padding: 0 16px 0 46px; border: 1.5px solid var(--border); border-radius: 23px; font-size: 14px; outline: none; background: var(--bg-card); transition: var(--transition); color: var(--text); font-family: inherit; }
.sf-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,92,231,.12); }
.search-form .btn-download { height: 46px; padding: 0 28px; border-radius: 23px; white-space: nowrap; }
.search-tip { color: var(--text-lighter); font-size: 13px; margin-bottom: 20px; }

/* 搜索结果分区 */
.search-section { margin-bottom: 32px; }
.ss-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; letter-spacing: -.2px; }
.ss-title::before { content: ''; width: 4px; height: 18px; background: var(--gradient-primary); border-radius: 2px; }
.ss-count { font-size: 13px; color: var(--primary); background: var(--primary-bg); padding: 2px 10px; border-radius: 10px; font-weight: 600; }

/* 横幅 - Cool-Admin 紫色渐变 */
.banner { color: #fff; padding: 80px 0 100px; text-align: center; position: relative; overflow: hidden; }
.banner-windows { background: var(--gradient-purple-deep); }
.banner-office { background: var(--gradient-orange-deep); }
.banner-dark-purple { background: var(--gradient-dark-purple); }
.banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.18) 0%, transparent 45%), radial-gradient(circle at 80% 30%, rgba(255,255,255,.12) 0%, transparent 45%), radial-gradient(circle at 50% 100%, rgba(0,0,0,.15) 0%, transparent 50%); }
.banner::after { content: ''; position: absolute; inset: 0; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M40 10 L70 40 L40 70 L10 40 Z" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1.5"/></svg>'); opacity: .7; }
.banner > .container { position: relative; z-index: 2; }
.banner h1 { font-size: 46px; font-weight: 900; margin-bottom: 16px; position: relative; letter-spacing: 1.5px; text-shadow: 0 4px 20px rgba(0,0,0,.15); line-height: 1.2; }
.banner p { font-size: 18px; opacity: .95; position: relative; font-weight: 300; max-width: 600px; margin: 0 auto; }
.banner .banner-icon { font-size: 64px; margin-bottom: 20px; position: relative; opacity: .95; display: inline-block; animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.banner .banner-stats { display: flex; justify-content: center; gap: 50px; margin-top: 32px; flex-wrap: wrap; }
.banner .banner-stats .stat { text-align: center; }
.banner .banner-stats .stat-num { font-size: 28px; font-weight: 800; opacity: .95; }
.banner .banner-stats .stat-label { font-size: 13px; opacity: .8; margin-top: 4px; }

/* 通用区块 */
.section { padding: 50px 0; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 30px; display: flex; align-items: center; gap: 14px; color: var(--text); letter-spacing: -.3px; }
.section-title::before { content: ''; width: 6px; height: 28px; background: var(--gradient-primary); border-radius: 3px; box-shadow: 0 2px 8px rgba(108,92,231,.3); }
.section-title .sub { font-size: 14px; color: var(--text-lighter); font-weight: 400; margin-left: 4px; }

/* 下载选择器 */
.download-box { background: var(--bg-card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); margin-top: -50px; position: relative; z-index: 5; border: 1px solid rgba(255,255,255,.8); }
.download-box .db-title { font-size: 22px; font-weight: 800; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; color: var(--text); letter-spacing: -.3px; }
.download-box .db-title .icon { width: 36px; height: 36px; background: var(--gradient-primary); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; box-shadow: 0 4px 10px rgba(108,92,231,.3); }
.download-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; color: var(--text-light); font-weight: 600; }
.form-group select { height: 46px; padding: 0 38px 0 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5 L6 8 L9 5' stroke='%23636e72' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center; outline: none; cursor: pointer; transition: var(--transition); appearance: none; -webkit-appearance: none; color: var(--text); font-weight: 500; }
.form-group select:hover { border-color: var(--primary-light); }
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,92,231,.12); }
.btn-download { height: 46px; padding: 0 40px; background: var(--gradient-primary); color: #fff; border: 0; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); box-shadow: 0 6px 18px rgba(108,92,231,.35); letter-spacing: 1px; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(108,92,231,.45); }
.btn-download:active { transform: translateY(0); }
.btn-download:disabled { background: linear-gradient(135deg, #dfe4ea, #f1f2f6); cursor: not-allowed; box-shadow: none; transform: none; color: #b2bec3; }

/* 版本信息展示 */
.version-info { background: var(--bg-card); border-radius: var(--radius); padding: 32px; margin-top: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.version-info .vi-title { font-size: 19px; font-weight: 800; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--border-light); color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: -.2px; }
.version-info .vi-title::before { content: ''; width: 5px; height: 20px; background: var(--gradient-primary); border-radius: 3px; }
.version-info .vi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 36px; }
.version-info .vi-row { display: flex; font-size: 13px; padding: 11px 0; border-bottom: 1px dashed var(--border-light); align-items: center; }
.version-info .vi-row:last-child { border-bottom: 0; }
.version-info .vi-row .lbl { width: 120px; color: var(--text-light); flex-shrink: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.version-info .vi-row .lbl::before { content: '·'; color: var(--primary); font-weight: 900; }
.version-info .vi-row .val { color: var(--text); word-break: break-all; font-family: "Consolas", "Monaco", "Courier New", monospace; font-size: 13px; }
.version-info .vi-empty { text-align: center; color: var(--text-lighter); padding: 60px 0; font-size: 15px; }
.version-info .vi-empty::before { content: '⬇'; display: block; font-size: 48px; margin-bottom: 14px; opacity: .25; }

/* 下载链接按钮 */
.dl-links { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 14px; }
.dl-links a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; transition: var(--transition); position: relative; overflow: hidden; }
.dl-links a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.2), transparent); opacity: 0; transition: opacity .3s; }
.dl-links a:hover::after { opacity: 1; }
.dl-links a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.dl-link-official { background: var(--gradient-primary); color: #fff !important; box-shadow: 0 4px 12px rgba(108,92,231,.3); }
.dl-link-ed2k { background: linear-gradient(135deg, #00d9a3, #00b894); color: #fff !important; box-shadow: 0 4px 12px rgba(0,217,163,.3); }
.dl-link-magnet { background: linear-gradient(135deg, #ffa502, #ff7f50); color: #fff !important; box-shadow: 0 4px 12px rgba(255,165,2,.3); }
.dl-link-bt { background: linear-gradient(135deg, #54a0ff, #2e86de); color: #fff !important; box-shadow: 0 4px 12px rgba(84,160,255,.3); }

/* 公告/说明区 */
.notice { background: linear-gradient(135deg, #fff9e6, #fff5d6); border: 1px solid #ffe58f; border-left: 5px solid #ffa502; border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; font-size: 13px; color: #614700; line-height: 1.9; }
.notice strong { color: #d48806; }

/* 版本追踪卡片 */
.version-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.version-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-light); position: relative; overflow: hidden; cursor: pointer; }
.version-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.version-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.version-card:hover::before { transform: scaleX(1); }
.version-card.ended { background: #fafbfc; }
.version-card.ended::before { background: linear-gradient(135deg, #b2bec3, #dfe4ea); transform: scaleX(1); }
.version-card .vc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 16px; }
.version-card .vc-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; flex-shrink: 0; box-shadow: 0 6px 14px rgba(108,92,231,.3); transition: var(--transition); }
.version-card:hover .vc-icon { transform: scale(1.08) rotate(-5deg); }
.version-card.ended .vc-icon { background: linear-gradient(135deg, #b2bec3, #dfe4ea); box-shadow: 0 4px 10px rgba(178,190,195,.25); }
.version-card .vc-name { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.version-card .vc-name .badge-end { font-size: 11px; background: var(--danger); color: #fff; padding: 3px 9px; border-radius: 10px; margin-left: 8px; vertical-align: middle; font-weight: 600; }
.version-card .vc-build { font-size: 12px; color: var(--text-lighter); margin-top: 4px; font-family: "Consolas", monospace; }
.version-card .vc-body { font-size: 13px; }
.version-card .vc-row { display: flex; justify-content: space-between; padding: 7px 0; gap: 10px; align-items: center; }
.version-card .vc-row .lbl { color: var(--text-lighter); flex-shrink: 0; font-weight: 500; }
.version-card .vc-row .val { color: var(--text); text-align: right; word-break: break-all; font-weight: 600; }
.version-card .vc-row .val a { word-break: break-all; }
.version-card .vc-source { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-lighter); display: flex; align-items: center; gap: 6px; }

/* 底部 */
.footer { background: linear-gradient(180deg, #1e1f26 0%, #0f1015 100%); color: #94a3b8; padding: 60px 0 28px; margin-top: 80px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer .foot-logo { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; letter-spacing: -.3px; }
.footer .foot-logo .logo-icon { width: 38px; height: 38px; background: var(--gradient-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.footer .foot-desc { font-size: 13px; line-height: 1.9; color: #64748b; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a { color: #94a3b8; font-size: 13px; transition: var(--transition); display: inline-block; }
.footer ul li a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { border-top: 1px solid #2d2f3a; margin-top: 40px; padding-top: 26px; text-align: center; font-size: 13px; color: #64748b; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* 面包屑导航 */
.breadcrumb { font-size: 13px; color: var(--text-light); padding: 20px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-lighter); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* 详情页标题 */
.detail-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--text); letter-spacing: -.5px; }
.detail-meta { color: var(--text-light); margin-bottom: 24px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.detail-meta .tag { display: inline-flex; align-items: center; padding: 3px 10px; background: var(--primary-bg); border-radius: 12px; font-size: 12px; color: var(--primary); font-weight: 500; }

/* 帮助/关于页通用 */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.info-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: var(--transition); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ic-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; margin-bottom: 18px; box-shadow: 0 6px 14px rgba(108,92,231,.3); }
.info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.info-card p { color: var(--text-light); line-height: 1.9; font-size: 14px; }
.info-card ul { margin-top: 10px; }
.info-card ul li { padding: 6px 0 6px 22px; position: relative; color: var(--text-light); font-size: 14px; line-height: 1.7; }
.info-card ul li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--success); font-weight: 700; }

/* 搜索结果 */
.search-results { background: var(--bg-card); border-radius: var(--radius); padding: 20px 28px; box-shadow: var(--shadow); margin-bottom: 18px; transition: var(--transition); border: 1px solid var(--border-light); }
.search-results:hover { transform: translateX(4px); border-color: var(--primary-light); box-shadow: 0 6px 18px rgba(108,92,231,.1); }
.search-results h3 { font-size: 17px; margin-bottom: 8px; }
.search-results h3 a { color: var(--text); }
.search-results h3 a:hover { color: var(--primary); }
.search-results .sr-meta { color: var(--text-lighter); font-size: 13px; margin-bottom: 10px; }
.search-results .sr-desc { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.search-results mark { background: rgba(108,92,231,.15); color: var(--primary); padding: 1px 4px; border-radius: 3px; }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 16px; }
    .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 4px; }
    .header-right { margin-left: 0; }
    .search-box input { width: 180px; }
    .search-box input:focus { width: 200px; }
    .banner { padding: 50px 0 70px; }
    .banner h1 { font-size: 30px; }
    .banner p { font-size: 15px; }
    .banner .banner-stats { gap: 30px; }
    .banner .banner-stats .stat-num { font-size: 22px; }
    .download-box { padding: 22px; margin-top: -35px; }
    .download-form { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }
    .version-info { padding: 22px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .detail-title { font-size: 22px; }
}
