/*
 * 星辰视界 - 小旋风蜘蛛池Pro模板
 * 设计风格: 星空宇宙科幻
 * 配色: 深空黑(#060612), 星光白(#f0f0ff), 星云蓝(#4488ff), 星云紫(#9944ff), 星尘金(#ffcc44)
 */

/* --- 基础与重置 --- */
:root {
    --bg-color: #060612;
    --text-color: #f0f0ff;
    --primary-color: #4488ff;
    --secondary-color: #9944ff;
    --accent-color: #ffcc44;
    --card-bg: rgba(10, 20, 40, 0.5);
    --border-color: rgba(68, 136, 255, 0.3);
}

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

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 20% 30%, rgba(68, 136, 255, 0.1), transparent 30%),
                      radial-gradient(circle at 80% 70%, rgba(153, 68, 255, 0.1), transparent 30%);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 反干扰CSS --- */
.xf7k2m, .qw3p8n, .zt9v1x {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

@keyframes star-twinkle {
    0%, 100% { box-shadow: 0 0 5px 0px rgba(255, 204, 68, 0.5); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 204, 68, 1); }
}

@keyframes meteor-streak {
    0% { transform: translateX(-100vw) translateY(-50vh) rotate(-45deg); opacity: 1; }
    100% { transform: translateX(100vw) translateY(50vh) rotate(-45deg); opacity: 0; }
}

.meteor {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: meteor-streak 10s linear infinite;
    z-index: 9999;
    pointer-events: none;
}

/* --- 公共头部 --- */
.header {
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .top-decoration {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-area .logo-img {
    width: 160px;
    height: auto;
}

.navigation ul {
    display: flex;
    gap: 25px;
}

.navigation a {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 0;
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.search-area {
    display: flex;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    color: var(--text-color);
    padding: 8px 15px;
    outline: none;
}

.search-button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--secondary-color);
}

/* --- 公共底部 --- */
.footer {
    background: #04040a;
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.footer-column p, .footer-column li {
    color: #aab;
    margin-bottom: 10px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: #778;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-meta {
    margin-top: 10px;
    opacity: 0.5;
}

/* --- 侧边栏 --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.widget-title {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(68, 136, 255, 0.2);
    padding-bottom: 10px;
}

.widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.widget-post-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-post-title {
    font-size: 1em;
    color: var(--text-color);
}

.widget-post-date {
    font-size: 0.8em;
    color: #889;
}

.tag-cloud a {
    display: inline-block;
    background: rgba(68, 136, 255, 0.2);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    margin: 5px 5px 0 0;
    font-size: 0.9em;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 主体内容 --- */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #889;
}

.breadcrumb a {
    color: #aab;
}

.section-title {
    font-size: 2em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* --- 首页 (index.html) --- */
.hero-section {
    margin-bottom: 30px;
}

.hero-banner {
    background: url('https://source.unsplash.com/random/1200x400/?galaxy') no-repeat center center/cover;
    padding: 80px 40px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 6, 18, 0.7);
}

.hero-banner h1, .hero-banner p {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 3em;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
}

.hero-banner p {
    font-size: 1.2em;
    color: var(--text-color);
    margin-top: 10px;
}

.announcement-bar {
    background: var(--card-bg);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.video-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: star-twinkle 1.5s infinite ease-in-out;
}

.video-card .video-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-card .video-info {
    padding: 15px;
}

.video-card .video-title {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card .video-meta {
    font-size: 0.9em;
    color: #889;
}

.feature-services {
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1.1em;
    font-weight: bold;
}

.contact-area {
    text-align: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- 列表页 (list.html) --- */
.list-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.list-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.list-card-link {
    display: flex;
    gap: 20px;
}

.list-card-thumb-wrapper {
    flex-shrink: 0;
}

.list-card-thumb {
    width: 150px;
    height: 100%;
    object-fit: cover;
}

.list-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.list-card-title {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.list-card-meta {
    font-size: 0.9em;
    color: #889;
    margin-bottom: 15px;
}

.list-card-desc {
    color: #aab;
    font-size: 1em;
    flex-grow: 1;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 4px;
}

.pagination a:hover, .pagination span.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- 内容页 (show.html) --- */
.post-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: 2.5em;
    color: var(--accent-color);
}

.post-meta {
    margin-top: 15px;
    color: #889;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-meta a {
    color: #aab;
}

.post-body {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.post-poster {
    flex: 0 0 250px;
}

.post-poster img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.post-text-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.post-tags {
    margin-top: 20px;
}

.post-tags a {
    display: inline-block;
    background: rgba(153, 68, 255, 0.2);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    margin: 5px 5px 0 0;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-section .faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background: rgba(68, 136, 255, 0.1);
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.faq-answer {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    display: none;
}

.related-posts {
    margin-top: 30px;
}

.video-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.video-card-small .video-thumb {
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.video-card-small .video-title {
    font-size: 1em;
    margin-top: 10px;
    color: var(--text-color);
    text-align: center;
}

/* --- 响应式设计 --- */
@media (max-width: 1024px) {
    .container { width: 95%; }
    .content-wrapper { grid-template-columns: 1fr; }
    .side-col { margin-top: 40px; }
    .video-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .list-grid-2col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .post-body { flex-direction: column; }
    .post-poster { flex: 0 0 auto; max-width: 300px; margin: 0 auto 20px; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .navigation ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-banner h1 { font-size: 2.2em; }
    .video-grid-3col, .video-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .hero-banner { padding: 40px 20px; }
    .hero-banner h1 { font-size: 1.8em; }
    .video-grid-3col, .video-grid-4col { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .search-area { width: 100%; }
    .search-input { width: 100%; }
    .post-title { font-size: 2em; }
}
