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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-display: swap; /* 优化字体加载性能 */
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #05070a; /* 深邃黑 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .container {
    flex: 1;
}

a {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* 后台管理基础样式 (保留并微调) */
.admin-container { display: flex; background: #f8fafc; color: #1e293b; min-height: 100vh; }
.sidebar { width: 240px; background: #0f172a; color: #fff; padding: 2rem 1rem; }
.sidebar h2 { font-size: 1.25rem; margin-bottom: 2rem; color: #38bdf8; padding-left: 10px; text-align: left; }
.sidebar ul { list-style: none; }
.sidebar ul li a { color: #94a3b8; padding: 0.75rem 1rem; border-radius: 0.5rem; display: block; margin-bottom: 0.5rem; }
.sidebar ul li a:hover { background: #1e293b; color: #38bdf8; }
.main-content { flex: 1; padding: 2rem; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }
.header h2 { color: #0f172a; margin: 0; }
.btn { background: #3b82f6; color: white; padding: 0.6rem 1.2rem; border-radius: 0.4rem; font-weight: 500; }
.btn:hover { background: #2563eb; transform: translateY(-1px); }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table th, table td { padding: 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
table th { background: #f1f5f9; font-weight: 600; color: #475569; }
.actions a { margin-right: 10px; }
.admin-list-img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #e2e8f0; }
.admin-edit-img-container { margin-top: 15px; }
.admin-edit-img { max-width: 100%; height: auto; display: block; margin-top: 10px; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.no-img { color: #94a3b8; font-size: 0.8rem; }
.login-container { width: 400px; margin: 150px auto; background: white; padding: 2.5rem; border-radius: 1rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); color: #1e293b; }
.login-container h2 { margin-bottom: 1.5rem; font-weight: 700; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
input[type="text"], input[type="password"], textarea { width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 1rem; }

/* =========================================
   前台科技感样式 (High-Tech Style)
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.front-header {
    background: #0a0b10; /* 使用实色背景，彻底移除 blur 滤镜以解决滚动卡顿 */
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 基础层级提升 */
    transform: translateZ(0);
}

.front-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.front-header h1 a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00f2ff; /* 基础 fallback 颜色 */
    background: linear-gradient(90deg, #00f2ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.front-header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.front-header nav ul li a {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    transition: color 0.2s ease; /* 缩短过渡时间 */
    /* 添加呼吸动画 */
    animation: nav-breathing 3s ease-in-out infinite;
}

@keyframes nav-breathing {
    0%, 100% {
        color: #94a3b8;
        text-shadow: none;
    }
    50% {
        color: #00f2ff;
        text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
    }
}

.front-header nav ul li a:hover {
    color: #00f2ff;
}

.front-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f2ff;
    transition: width 0.2s ease;
}

.front-header nav ul li a:hover::after {
    width: 100%;
}

/* 响应式导航优化 */
@media (max-width: 768px) {
    .front-header {
        padding: 0.8rem 0;
        background: #0a0b10;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        position: sticky;
        top: 0;
    }
    .hero-slide.active {
        opacity: 0.8; /* 手机端增加透明度，让背景更清晰 */
    }
    .front-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 0 15px;
    }
    .front-header h1 {
        text-align: left;
        margin-bottom: 5px;
    }
    .front-header h1 a {
        font-size: 1.4rem;
        font-weight: 900;
        display: inline-block;
        letter-spacing: 0;
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
        position: relative;
        padding-left: 12px;
        border-left: 3px solid #00f2ff;
        line-height: 1;
        margin-top: 5px;
    }
    .front-header nav {
        width: 100%;
    }
    .front-header nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); /* 自动适配列数 */
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .front-header nav ul li a {
        font-size: 0.8rem;
        padding: 10px 4px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 242, 255, 0.2);
        border-radius: 10px;
        display: block;
        text-align: center;
        color: #fff;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }
    .front-header nav ul li.active a {
        background: rgba(0, 242, 255, 0.2);
        border-color: #00f2ff;
        color: #fff;
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }

    @keyframes nav-breathing-mobile {
        0%, 100% { border-color: rgba(0, 242, 255, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.2); color: #cbd5e1; }
        50% { border-color: rgba(0, 242, 255, 0.6); box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); color: #00f2ff; }
    }

    .front-header nav ul li a:active {
        background: rgba(0, 242, 255, 0.1);
        border-color: #00f2ff;
        transform: scale(0.95);
    }
    .front-header nav ul li a::after {
        display: none;
    }
}

/* 英雄区 (Hero Section) 性能优化 */
.hero-section {
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #05070a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* 缩短切换时间 */
    background-size: cover;
    background-position: center;
    /* 优化层级 */
    z-index: -2;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 0.5; /* 降低透明度以减轻混合开销 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 简化遮罩渐变 */
    background: rgba(5, 7, 10, 0.6);
    z-index: -1;
}

/* 英雄区文本样式优化 */
.hero-title-3d {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 30%, #00f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    line-height: 1.1;
    transform: translateZ(0);
}

.hero-subtitle-refined {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #7000ff);
    margin: 20px auto;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

@media (max-width: 768px) {
    .hero-title-3d {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .hero-subtitle-refined {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    .hero-section {
        min-height: 300px;
        padding: 40px 0 20px;
    }
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px; /* 间距 */
    position: relative;
    z-index: 10;
}

/* 产品网格布局 - 三列自适应 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 强制三列 */
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-actions .btn-3d-tech {
        width: 80%;
        max-width: 300px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        padding: 2rem 20px;
    }
}

/* 优化产品卡片性能 */
.product-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    contain: content;
    transform: translateZ(0);
}

.product-card-link {
    color: inherit;
    cursor: pointer;
}

.product-card-link:hover,
.product-card-link:focus,
.product-card-link:active {
    color: inherit;
}

.product-card-link:focus-visible {
    outline: 2px solid rgba(0, 242, 255, 0.6);
    outline-offset: 4px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00f2ff;
}

.product-card:hover img {
    transform: scale(1.05);
}

.image-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.product-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.product-slide.active {
    opacity: 1;
}

/* 按钮优化 */
.btn-3d-tech {
    --btn-color: #00f2ff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #0a0b10;
    border: 1px solid var(--btn-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    /* 简化阴影 */
    box-shadow: 0 3px 0 var(--btn-color);
}

.btn-3d-tech:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-3d-tech::before {
    display: none; /* 移除扫描光效，减少 GPU 负担 */
}

/* 首页版块标题样式 */
.home-section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-section-title span {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
}

.home-section-title span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.home-section-title small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 4px;
    font-weight: 400;
}

/* 公司资讯板块容器 (外边框装饰) */
.articles-section {
    background: rgba(10, 11, 16, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.15); /* 加深边框色 */
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 242, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

/* 装饰性四角 (更正式的科技框感) */
.articles-section::before, .articles-section::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.articles-section::before {
    top: 0; left: 0;
    border-top: 3px solid #00f2ff;
    border-left: 3px solid #00f2ff;
    border-top-left-radius: 24px;
}

.articles-section::after {
    bottom: 0; right: 0;
    border-bottom: 3px solid #00f2ff;
    border-right: 3px solid #00f2ff;
    border-bottom-right-radius: 24px;
}

/* 额外的右上与左下小装饰 */
.articles-section-decor {
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: 30px;
}

.articles-section-decor::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    border-right: 1px solid rgba(0, 242, 255, 0.3);
    width: 15px; height: 15px;
    border-top-right-radius: 24px;
}

/* 公司资讯网格与卡片样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 横向两列排序 */
    gap: 30px;
}

.article-item-card {
    text-decoration: none;
    display: block;
    perspective: 1000px;
}

.article-card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 140px; /* 增加最小高度，显得更大气 */
}

.article-card-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card-info h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.4s ease;
    padding: 5px 0;
    position: relative;
    /* 大气光环/发光特效 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 
                 0 0 20px rgba(0, 242, 255, 0.1);
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.article-card-date {
    font-size: 0.8rem;
    color: #00f2ff;
    font-weight: 600;
    opacity: 0.7;
}

.article-card-more {
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.article-card-preview {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 10px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 鼠标移至凸出效果 (Protruding Effect) */
.article-item-card:hover .article-card-inner {
    transform: translateY(-12px) translateZ(20px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 242, 255, 0.25);
}

.article-item-card:hover .article-card-preview {
    height: 45px; /* 约两行文字的高度 */
    opacity: 1;
    margin-top: 15px;
}

.article-item-card:hover .article-card-more {
    opacity: 1;
    transform: translateX(0);
    color: #00f2ff;
}

/* 悬浮时光环扩散效果 */
.article-item-card:hover .article-card-info h3 {
    color: #00f2ff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.8), 
                 0 0 30px rgba(0, 242, 255, 0.4), 
                 0 0 45px rgba(0, 242, 255, 0.2);
    transform: scale(1.02);
}

.article-item-card:hover .article-card-thumb img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .articles-section {
        padding: 30px 15px; /* 减少移动端内边距 */
        margin-top: 30px;
        border-radius: 16px;
    }

    .api-cta-section {
        margin-top: 60px !important;
        padding: 40px 20px !important;
        border-radius: 20px !important;
    }

    .api-cta-section h2 {
        font-size: 1.6rem !important;
    }

    .api-cta-section p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }

    .api-cta-section .btn-3d-tech {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
    
    .articles-section::before, .articles-section::after {
        width: 20px;
        height: 20px;
        border-width: 2px;
        border-radius: 16px;
    }
    
    .home-section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
        justify-content: center; /* 居中标题 */
    }
    
    .home-section-title span::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .article-grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    
    /* 手机端预览内容默认显示 (因为没有悬停) */
    .article-card-preview {
        height: auto;
        max-height: 45px;
        opacity: 1;
        margin-top: 10px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
    }
    
    .article-card-more {
        opacity: 1;
        transform: translateX(0);
        color: #00f2ff;
    }
    
    .article-card-inner {
        padding: 15px;
        gap: 12px;
        min-height: auto;
    }
    
    .article-card-thumb {
        width: 70px;
        height: 70px;
        border-radius: 8px;
    }
    
    .article-card-info h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        padding: 0;
        text-shadow: none;
    }
    
    .article-card-meta {
        margin-top: 5px;
    }
}

/* 子页面标题样式 - 更加端正大气 */
.subpage-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    position: relative;
}

.subpage-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subpage-underline {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 255, 0.6) 20%, rgba(0, 242, 255, 0.6) 80%, transparent 100%);
    margin: 25px auto 0;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.subpage-underline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 4px;
    background: #00f2ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #00f2ff, 0 0 40px rgba(0, 242, 255, 0.4);
    animation: line-glow 3s ease-in-out infinite;
}

@keyframes line-glow {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 15px #00f2ff; }
    50% { opacity: 1; box-shadow: 0 0 30px #00f2ff, 0 0 50px rgba(0, 242, 255, 0.6); }
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #05070a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* 页脚样式 - 确保居中并位于底部 */
.front-footer {
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    background: #05070a;
    width: 100%;
    text-align: center;
}

.front-footer p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .front-footer {
        padding: 30px 20px;
        margin-top: 40px;
    }
    .page-content {
        padding: 40px 15px !important;
    }
    .content-body {
        padding: 20px !important;
        font-size: 0.95rem;
    }
    .article-detail {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }
    .meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem !important;
    }
    .image-wrapper h3 {
        font-size: 1.4rem !important;
    }
    .image-wrapper {
        margin-bottom: 3rem !important;
    }
    .subpage-title {
        font-size: 1.8rem !important;
    }
}

/* 右下角悬浮：在线客服 + 返回顶部 */
.floating-side-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.floating-contact-btn {
    width: 50px;
    height: 50px;
    background: #0a0b10;
    border: 1px solid rgba(0, 242, 255, 0.5);
    border-radius: 50%;
    color: #00f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 242, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-contact-btn:hover {
    background: #0a0b10;
    border-color: #00f2ff;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

/* 统一图标样式 */
.floating-contact-btn__img {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 4px; /* 稍微圆角比全圆更好看 */
    object-fit: contain;
}

.floating-contact-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover svg {
    transform: scale(1.1);
}

/* 移除不一致的 --icon 类样式，改为通用适配 */
.floating-contact-btn--icon {
    /* 保持与基础类一致，仅作为标识 */
}

/* 返回顶部按钮 - 修复占用空间问题 */
.back-to-top {
    width: 50px;
    height: 50px;
    background: #0a0b10;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%;
    color: #00f2ff;
    display: none; /* 默认隐藏不占位 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    display: flex; /* 显示时占位 */
    opacity: 1;
}

.back-to-top:hover {
    border-color: #00f2ff;
    background: #0a0b10;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .floating-side-actions {
        bottom: 25px;
        right: 20px;
        gap: 12px;
    }

    .floating-contact-btn, .back-to-top {
        width: 44px;
        height: 44px;
    }

    .floating-contact-btn__img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    /* 增强全站自适应 */
    .container {
        padding: 0 15px;
    }

    .home-section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .articles-section {
        padding: 30px 15px;
        border-radius: 16px;
    }

    .article-card-inner {
        padding: 15px;
        gap: 15px;
        min-height: auto;
    }

    .article-card-thumb {
        width: 80px;
        height: 80px;
    }

    .article-card-info h3 {
        font-size: 1.1rem;
    }

    .subpage-title {
        font-size: 1.8rem;
    }

    .subpage-header {
        margin-bottom: 2.5rem;
    }

    .article-detail {
        padding: 30px 20px !important;
    }

    .article-detail h1.subpage-title {
        font-size: 1.5rem !important;
    }

    .page-content {
        padding: 20px 0;
    }

    /* 修复图片在手机端可能溢出的问题 */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* 友情链接样式 - 强化科技感 */
.friendship-links {
    margin-bottom: 80px;
    text-align: center;
    position: relative;
}

.links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 11, 16, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.friend-link-item {
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 4px; /* 改为硬朗的微圆角 */
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    overflow: hidden;
}

/* 装饰性切角效果 */
.friend-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-top: 1px solid #00f2ff;
    border-left: 1px solid #00f2ff;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.friend-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #7000ff;
    border-right: 1px solid #7000ff;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.friend-link-item:hover {
    color: #fff;
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 242, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

.friend-link-item:hover::before,
.friend-link-item:hover::after {
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* 扫光效果 */
.friend-link-item .scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.friend-link-item:hover .scan-line {
    left: 100%;
    transition: 0.5s;
}

@media (max-width: 768px) {
    .friendship-links {
        margin-top: 40px !important;
        padding-top: 20px !important;
    }
    .links-wrapper {
        padding: 15px;
        gap: 12px;
        border-radius: 16px;
    }
    .friend-link-item {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}
