/* 关键CSS - 首屏内容优化 */
.hero-grid, .hero-copy, .hero-status-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 确保预加载器在JavaScript失败时也能被隐藏 */
.preloader {
    transition: opacity 0.3s ease !important;
    animation: preloaderAutoHide .25s ease 3s forwards;
}

@keyframes preloaderAutoHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* 当页面加载完成后隐藏预加载器 */
body.loaded .preloader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 确保内容在预加载器隐藏后可见 */
body.loaded {
    overflow: visible !important;
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
}

/* 保证图片不超出，团队头像圆形优雅 */
.team-item .image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}
.team-item:hover .image img {
    transform: scale(1.02);
    border-color: #f5b13b;
}
.team-item .details {
    text-align: center;
    margin-top: 15px;
}
.team-item .details h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.team-item .details p {
    color: #777;
    font-style: italic;
}

/* 展示区图片圆角、阴影 */
.portfolio_item .pos_rel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.portfolio_item .pos_rel img {
    transition: transform 0.4s;
    display: block;
    width: 100%;
}
.portfolio_item .pos_rel picture {
    display: block;
    width: 100%;
}
.portfolio_item .pos_rel picture img {
    transition: transform 0.4s;
}
.portfolio_item .pos_rel:hover img {
    transform: scale(1.05);
}

/* 页脚优化 */
footer {
    background: #1b1b2a;
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 14px;
}
footer a {
    color: #ddd;
    text-decoration: none;
}
footer a:hover {
    color: #f5b13b;
}
footer .scroll-top {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: #f5b13b;
    color: #222;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    float: right;
    transition: 0.3s;
}
footer .scroll-top:hover {
    background: #ffc107;
    color: #000;
}

/* 联系信息图标颜色 */
.info-item .icon span {
    color: #f5b13b;
    font-size: 28px;
}

/* banner 微调 */
.banner .overlay {
    background: rgba(0,0,0,0.35);
}
.hero-banner {
    height: auto;
    min-height: 100vh;
}
.hero-banner .overlay {
    min-height: 100vh;
}
.hero-banner .banner-content {
    position: relative;
    top: auto;
    transform: none;
}
.banner-content h3 {
    font-size: 56px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.banner-content p {
    font-size: 22px;
    margin-bottom: 30px;
}
.default-button {
    background: #f5b13b;
    color: #222 !important;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.default-button:hover {
    background: #ffc85c;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

/* 预加载器保留原有 */
.preloader {
    background: #fff;
}

/* 页脚备案行 */
footer p {
    margin: 5px 0;
}
.tlinks { display: none; } /* 隐藏采集声明，不影响视觉 */

/* 导航菜单激活 */
.main-menu .navbar-nav li a:hover {
    color: #f5b13b !important;
}
.navbar-toggle .icon-bar {
    background: #333;
}

/* 服务器状态卡片样式 */
.server-status-card {
    background: linear-gradient(145deg, #2a2a3a, #1e1e2c);
    border-radius: 28px;
    padding: 30px 25px;
    color: #fff;
    box-shadow: 0 25px 40px -10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,215,0,0.3);
    transition: 0.3s;
}
.server-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -5px #00000080;
    border-color: #f5b13b;
}
.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a50;
    padding-bottom: 15px;
}
.status-header i {
    font-size: 36px;
    color: #f5b13b;
    margin-right: 15px;
}
.status-header h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}
.status-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #3a3a50;
    font-size: 16px;
}
.status-item:last-child {
    border-bottom: none;
}
.status-label {
    color: #aaa;
    font-weight: 400;
}
.status-value {
    font-weight: 600;
    color: #f5b13b;
    background: rgba(245, 177, 59, 0.15);
    padding: 4px 16px;
    border-radius: 40px;
    letter-spacing: 0.5px;
}
.online-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
.copy-ip {
    background: #f5b13b;
    color: #222;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    transition: 0.2s;
    font-size: 16px;
}
.copy-ip:hover {
    background: #ffc85c;
}
.version-tag {
    background: #4a4a6a;
    color: #ddd;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 14px;
    margin-left: 10px;
}

/* 联系信息区现在改为服务器状态区，保留原容器尺寸 */
.contact-info {
    background: transparent;
    padding: 0;
}
.contact-info .info-item {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
/* 2026-03 首页改版 */
.site-brand {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 34px 15px;
}
.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 64px;
}
.hero-copy {
    max-width: 640px;
    text-align: left;
}
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(245,177,59,.18);
    color: #ffd27a;
    font-weight: 600;
    letter-spacing: .5px;
}
.hero-subtitle {
    max-width: 620px;
    line-height: 1.9;
}
.hero-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0 34px;
}
.hero-quick-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-actions .default-button i,
.copy-ip i { margin-right: 8px; }
.ghost-button {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: none;
}
.ghost-button:hover {
    background: rgba(255,255,255,.22);
    color: #fff !important;
}
.hero-status-panel {
    width: 380px;
    flex: 0 0 380px;
}
.hero-status-card {
    background: rgba(20,20,32,.82);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border-radius: 26px;
    padding: 28px 24px;
    color: #fff;
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.status-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(76,175,80,.18);
    color: #7CFF92;
    font-weight: 600;
}
.status-badge.is-offline {
    background: rgba(244,67,54,.18);
    color: #ff7a7a;
}
.hero-status-card h3 {
    margin: 0 0 18px;
    font-size: 26px;
    color: #fff;
}
.hero-status-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-status-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255,255,255,.12);
}
.hero-status-card li:last-child { border-bottom: 0; }
.hero-status-card li span { color: rgba(255,255,255,.72); }
.hero-status-card li strong { color: #fff; text-align: right; }
.highlight-card {
    background: #fff;
    border-radius: 22px;
    padding: 34px 28px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(24,34,58,.08);
    height: 100%;
}
.highlight-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg,#f5b13b,#ffd67c);
    color: #1b1b2a;
    font-size: 24px;
    margin-bottom: 18px;
}
.highlight-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}
.highlight-card p {
    color: #666;
    line-height: 1.9;
}
.team-item .details h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
}
.contact-info a { color: #222; }
.download-box .content { width: 100%; }
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.download-actions .default-button {
    padding: 10px 18px;
    font-size: 14px;
}
.green-button {
    background: #4caf50;
    color: #fff !important;
}
.green-button:hover {
    background: #5dc761;
    color: #fff !important;
}
.tip-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
@media (max-width: 991px) {
    .hero-grid {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding-top: 112px;
        padding-bottom: 56px;
    }
    .hero-copy,
    .hero-status-panel {
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }
    .hero-copy { text-align: center; }
    .hero-quick-info,
    .hero-actions { justify-content: center; }
}
@media (max-width: 767px) {
    .site-brand { padding: 28px 15px; }
    header .main-menu {
        min-height: 74px;
    }
    header .main-menu ul li a {
        padding: 14px 15px;
    }
    .hero-grid {
        gap: 24px;
        padding-top: 96px;
        padding-bottom: 42px;
    }
    .banner-content h1,
    .banner-content h3 { font-size: 40px; }
    .hero-quick-info {
        margin: 20px 0 24px;
        gap: 10px;
    }
    .hero-quick-info span {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
    .hero-actions .default-button,
    .download-actions .default-button {
        width: 100%;
        text-align: center;
    }
    .hero-status-card li,
    .status-item {
        flex-direction: row;
        align-items: center;
    }
    .hero-status-card li strong,
    .status-value { text-align: right; }
}

.join-panel {
    background: linear-gradient(145deg, #2a2a3a, #1e1e2c);
    border-radius: 28px;
    padding: 32px 28px;
    color: #fff;
    box-shadow: 0 25px 40px -10px rgba(0,0,0,0.45);
}
.join-panel h3 {
    color: #fff;
    margin: 0 0 24px;
    font-size: 28px;
}
.join-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.join-step span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5b13b;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 34px;
}
.join-step h4 {
    color: #fff;
    margin: 2px 0 6px;
    font-size: 18px;
}
.join-step p {
    color: rgba(255,255,255,.78);
    margin: 0;
    line-height: 1.8;
}

/* 修复建筑展示首次打开挤在一起的问题 */
.portfolio_items {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.portfolio .portfolio_item {
    width: 33.3333%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.portfolio .portfolio_item .pos_rel,
.portfolio .portfolio_item img {
    width: 100%;
}
@media (max-width: 991px) {
    .portfolio .portfolio_item {
        width: 50%;
    }
}
@media (max-width: 767px) {
    .portfolio .portfolio_item {
        width: 100%;
    }
}

/* 移动端建筑展示放大，避免图片太小 */
@media (max-width: 767px) {
    .portfolio_items {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .portfolio .portfolio_item {
        width: 100% !important;
        float: none !important;
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    .portfolio .portfolio_item .pos_rel {
        margin-bottom: 0 !important;
        border-radius: 16px;
    }
    .portfolio .portfolio_item img {
        width: 100% !important;
        display: block;
    }
    .portfolio .port_caption {
        padding: 18px !important;
    }
}

.qq-button {
    background: #12b7f5;
    color: #fff !important;
}
.qq-button:hover {
    background: #31c3ff;
    color: #fff !important;
}
.join-panel .download-actions .qq-button {
    min-width: 180px;
    box-shadow: 0 10px 24px rgba(18,183,245,.28);
}

/* FAQ */
.faq-grid {
    display: flex;
    flex-wrap: wrap;
}
.faq-item {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(24,34,58,.08);
    height: calc(100% - 24px);
}
.faq-item h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #1f2430;
}
.faq-item p {
    margin: 0;
    color: #666;
    line-height: 1.9;
}

/* mobile spacing polish */
@media (max-width: 767px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
    }
    
    .padding-120 {
        padding: 72px 0;
    }
    .banner-content h1,
    .banner-content h3 {
        font-size: 34px;
        line-height: 1.25;
    }
    .hero-eyebrow {
        margin-bottom: 14px;
        font-size: 13px;
    }
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 20px;
    }
    .hero-status-card,
    .server-status-card,
    .join-panel,
    .faq-item,
    .contact-info .info-item {
        border-radius: 20px;
    }
    .hero-status-card,
    .server-status-card,
    .join-panel {
        padding: 22px 18px;
    }
    .section-header {
        margin-bottom: 36px;
    }
    .section-header h2,
    .section-header h3 {
        font-size: 30px;
        line-height: 1.3;
    }
    .hero-actions,
    .download-actions {
        gap: 12px;
    }
    .hero-actions .default-button,
    .download-actions .default-button,
    .copy-ip {
        min-height: 50px;
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* 优化移动端触摸体验 */
    button, 
    .default-button,
    a.default-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .team-item {
        margin-bottom: 22px;
    }
    .faq-item {
        padding: 22px 18px;
        margin-bottom: 18px;
    }
    .faq-item h3 {
        font-size: 20px;
    }
    .contact-info .info-item {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    /* 防止移动端缩放 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    textarea {
        font-size: 16px;
    }
}

/* final polish */
.qq-highlight {
    background: linear-gradient(145deg, #1f8fff, #12b7f5);
    color: #fff;
    border-radius: 24px;
    padding: 24px 22px;
    margin-bottom: 20px;
    box-shadow: 0 20px 36px rgba(18,183,245,.22);
}
.qq-highlight-label {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: .88;
    margin: 0 0 8px;
}
.qq-highlight-main {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.qq-highlight .default-button {
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,.16);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: none;
}
.qq-highlight .default-button:hover {
    background: rgba(255,255,255,.24);
}
footer {
    padding: 30px 0 18px;
}
.footer-row {
    display: flex;
    align-items: center;
}
footer p {
    margin: 4px 0;
}
@media (max-width: 767px) {
    .qq-highlight {
        padding: 20px 18px;
        border-radius: 20px;
    }
    .qq-highlight-main {
        font-size: 26px;
    }
    .footer-row {
        display: block;
    }
}

/* tone down qq highlight card */
.qq-highlight {
    background: #ffffff;
    color: #1f2430;
    border-radius: 22px;
    padding: 22px 20px;
    margin-bottom: 20px;
    box-shadow: 0 14px 32px rgba(24,34,58,.08);
    border: 1px solid rgba(18,183,245,.14);
}
.qq-highlight-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .8px;
    color: #12b7f5;
    background: rgba(18,183,245,.08);
    padding: 6px 10px;
    border-radius: 999px;
    margin: 0 0 10px;
}
.qq-highlight-main {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #1f2430;
}
.qq-highlight .default-button {
    width: 100%;
    text-align: center;
    background: #12b7f5;
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 24px rgba(18,183,245,.18);
}
.qq-highlight .default-button:hover {
    background: #31c3ff;
    color: #fff !important;
}
@media (max-width: 767px) {
    .qq-highlight {
        padding: 18px 16px;
        border-radius: 18px;
    }
    .qq-highlight-main {
        font-size: 24px;
    }
}

/* custom fullscreen gallery overlay */
body.gallery-open {
    overflow: hidden;
}
.gallery-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .2s ease, visibility .2s ease;
}
.gallery-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gallery-overlay img {
    display: block;
    max-width: min(96vw, 1800px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    border-radius: 10px;
}
.gallery-overlay-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255,255,255,.15);
    border-top-color: #f5b13b;
    border-radius: 50%;
    animation: gallery-spin .7s linear infinite;
    pointer-events: none;
    z-index: 1;
    transition: opacity .25s ease;
}
.gallery-overlay-spinner.is-hidden {
    opacity: 0;
}
@keyframes gallery-spin {
    to { transform: rotate(360deg); }
}
.gallery-overlay-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.gallery-overlay-close:hover {
    background: rgba(255,255,255,.22);
}
@media (max-width: 767px) {
    .gallery-overlay {
        padding: 12px;
    }
    .gallery-overlay img {
        max-width: 100vw;
        max-height: 88vh;
        border-radius: 8px;
    }
    .gallery-overlay-close {
        top: 10px;
        right: 10px;
    }
}

.gallery-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.gallery-overlay-prev { left: 18px; }
.gallery-overlay-next { right: 18px; }
.gallery-overlay-nav:hover {
    background: rgba(255,255,255,.22);
}
@media (max-width: 767px) {
    .gallery-overlay-nav {
        width: 46px;
        height: 46px;
        font-size: 34px;
    }
    .gallery-overlay-prev { left: 10px; }
    .gallery-overlay-next { right: 10px; }
}

.gallery-overlay-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.42);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .5px;
}
@media (max-width: 767px) {
    .gallery-overlay-counter {
        bottom: 12px;
        font-size: 13px;
        padding: 7px 12px;
    }
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: copySlideIn 0.3s ease, copyFadeOut 0.3s ease 2.7s;
    max-width: 300px;
    word-break: break-all;
}
@keyframes copySlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes copyFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
