* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a1a;
    color: #ffffff;
    line-height: 1.6;
    background-image: url('/p/s/<?php echo rand(1, 9); ?>.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero {
    padding: 120px 0 80px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-text .subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero-text .system-info {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #ffffff;
    border: 2px solid #00c6ff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #00c6ff;
    border: 2px solid #00c6ff;
}

.btn-secondary:hover {
    background-color: rgba(0, 198, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.2);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.features {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
}

.features h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.features p {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00c6ff;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
    text-align: left;
}

.versions {
    padding: 80px 0;
}

.versions h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.versions p {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.version-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.version-card:hover {
    transform: translateY(-5px);
    border-color: #00c6ff;
}

.version-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.version-card p {
    text-align: left;
    color: #ffffff;
    line-height: 1.6;
}

.news-faq {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
}

.news-faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.news-section h2,
.faq-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00c6ff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.news-item,
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.news-item:hover,
.faq-item:hover {
    transform: translateY(-2px);
    border-color: #00c6ff;
}

.news-item h3,
.faq-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.news-item p,
.faq-item p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.guide {
    padding: 80px 0;
}

.guide h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.guide p {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #00c6ff;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-card p {
    text-align: left;
    color: #ffffff;
    line-height: 1.6;
}

footer {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* 相关链接样式 */
.related-links {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
}

.related-links-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-link-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.related-link-card:hover {
    transform: translateY(-5px);
    border-color: #00c6ff;
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.3);
}

.related-link-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-link-card:hover .related-link-desc {
    color: #00c6ff;
    text-decoration: underline;
}

.related-link-url {
    font-size: 12px;
    color: #999999;
    margin-top: 5px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .news-faq-content {
        grid-template-columns: 1fr;
    }
    
    .related-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 友情链接 ===== */
.flink-section {
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 26, 0.94);
    backdrop-filter: blur(8px);
}
.flink-section .container,
.flink-section .inner,
.flink-section .wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.flink-section .container > *:not(h2):not(.flinks-grid),
.flink-section .inner > *:not(h2):not(.flinks-grid),
.flink-section .wrap > *:not(h2):not(.flinks-grid) {
    display: none !important;
}
.flink-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}
.flinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
    position: relative;
    z-index: 1;
}
.flinks-grid > *:not(.flink-item) {
    display: none !important;
}
.flink-item {
    font-size: 0.8125rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: 6px;
    padding: 8px 10px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.flink-item:hover {
    color: #ffffff;
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.5);
}
@media (max-width: 640px) {
    .flinks-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 全局组件（悬浮条 / 回顶 / 友链等）===== */
.float-dl-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9000;
  width: min(420px, calc(100% - 32px));
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.float-dl-banner.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.float-dl-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.float-dl-close:hover {
  color: #fff;
}
.float-dl-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 40px 14px 16px;
  color: #fff;
  text-decoration: none;
}
.float-dl-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.float-dl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.float-dl-text small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9100;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.45);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
}
@media (max-width: 640px) {
  .float-dl-banner {
    width: calc(100% - 24px);
    bottom: 12px;
  }
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}
