/* 在 themes/default/style.css 文件最顶部添加 */
:root {
    /* 基础字体配置 */
    --base-font-size: 19px;        /* 主文字大小（原16px） */
    --heading-scale: 1.3;          /* 标题放大系数 */
    --small-text: 0.9em;           /* 小字号比例 */
    
    /* 响应式调整 */
    --mobile-scale: 0.95;          /* 移动端缩放系数 */
}

/* 基础字体设置 */
body {
    font-size: var(--base-font-size);
    line-height: 1.7;              /* 增加行高提升可读性 */
}

/* 标题放大 */
h1 { font-size: calc(2em * var(--heading-scale)); }
h2 { font-size: calc(1.8em * var(--heading-scale)); }
h3 { font-size: calc(1.6em * var(--heading-scale)); }
h4 { font-size: calc(1.4em * var(--heading-scale)); }
h5 { font-size: calc(1.2em * var(--heading-scale)); }
h6 { font-size: calc(1.1em * var(--heading-scale)); }

/* 小字号元素 */
small, .text-small {
    font-size: var(--small-text);
}

/* 导航栏文字调整 */
.navbar {
    font-size: calc(var(--base-font-size) * 1.1);
}

/* 按钮文字 */
.button {
    font-size: calc(var(--base-font-size) * 1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    :root {
        --base-font-size: calc(18px * var(--mobile-scale));
        --heading-scale: 1.2;
    }
    
    /* 移动端微调 */
    .case-text {
        font-size: calc(var(--base-font-size) * 0.98);
    }
}

/* 打印样式 */
@media print {
    :root {
        --base-font-size: 16px;
        --heading-scale: 1.2;
    }
}

/* 基础页面样式 */
body {
    font-family: '微软雅黑', sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    padding: 20px;
    padding-top: 70px; /* 导航栏补偿高度 */
    box-sizing: border-box;
}

/* 导航栏优化 */
.navbar {
    position: fixed;
    top: 0;
    left:20px; right:20px;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(52, 152, 219, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

/* 轮播图模块 */
.hero-banner {
    margin: 0;
    height: 30vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.slideshow {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active { 
    opacity: 1;
}

.slide h3 {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    padding: 12px 25px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    white-space: nowrap;
}

/* 服务模块 */
.services {
    position: relative;
    z-index: 500;
    padding: 50px 20px;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* 案例展示区 */
.cases {
    padding: 50px 20px;
    background: #f9f9f9;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: scale(1.03);
}

.case-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-info {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    width: 100%;
    padding: 20px;
}

/* 轮播控制按钮容器 */
.slideshow-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: row; /* 强制水平排列 */
    flex-wrap: nowrap;   /* 禁止换行 */
    gap: 15px;
    white-space: nowrap; /* 防止内容换行 */
}

/* 大屏设备按钮尺寸 */
.prev-btn, .next-btn {
    /* 其他样式保持不变 */
    min-width: 50px;   /* 设置最小宽度 */
    min-height: 50px;  /* 设置最小高度 */
}

/* 移动端适配调整 */
@media (max-width: 768px) {
    .slideshow-control {
        gap: 10px;     /* 缩小间距保持排列 */
        bottom: 15px;  /* 更靠近底部 */
    }
    
    .prev-btn, .next-btn {
        padding: 14px 18px; /* 紧凑尺寸 */
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .slideshow-control {
        gap: 8px;      /* 极窄间距 */
        transform: translateX(-50%) scale(0.9); /* 整体缩放 */
    }
    
    .prev-btn, .next-btn {
        padding: 12px 16px;
        font-size: 1rem;
    }
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh; /* 原55vh→50vh */
        min-height: 350px; /* 原400px→350px */
    }

    .services {
        padding: 30px 15px; /* 原40px→30px */
        margin-top: -20px; /* 新增向上位移 */
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 45vh;
        min-height: 280px; /* 原350px→280px */
    }

    /* 按钮二次放大 */
    .prev-btn, .next-btn {
        padding: 14px 20px; /* 移动端更大尺寸 */
        font-size: 1.4rem;
    }
}

@media (max-width: 400px) {
    .hero-banner {
        height: 40vh;
        min-height: 250px; /* 原300px→250px */
    }

    .services {
        padding: 25px 10px; /* 进一步减少间距 */
        margin-top: -30px; /* 更大向上位移 */
    }
}

    .navbar {
        padding: 12px 0;
    }

    body {
        padding-top: 60px;
    }

    .service-grid,
    .case-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slide h3 {
        font-size: 1.6rem;
        bottom: 20%;
        width: 90%;
        white-space: normal;
        text-align: center;
    }

    .services {
        padding: 40px 15px;
    }

    .cases {
        padding: 40px 15px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 45vh;
        min-height: 350px;
    }

    .slide h3 {
        font-size: 1.4rem;
        padding: 8px 15px;
    }

    .prev-btn, .next-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .service-item {
        padding: 20px;
    }

    .case-card img {
        height: 200px;
    }
}

@media (max-width: 400px) {
    .hero-banner {
        height: 40vh;
        min-height: 300px;
    }

    .slide h3 {
        font-size: 1.2rem;
        bottom: 15%;
    }
}
/* 服务项链接样式 */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.service-link:hover {
    transform: translateY(-5px);
}

.service-link:hover .service-item {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 原.service-item增加光标样式 */
.service-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* 点击反馈效果 */
.service-item:active {
    transform: scale(0.98);
}

/* 增加视觉提示 */
.service-item::after {
    content: "点击查看详情 →";
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #3498db;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-item:hover::after {
    opacity: 1;
}
/* 服务项链接样式 */
.service-link {
    display: block;
    text-decoration: none !important; /* 强制去除下划线 */
    color: inherit !important; /* 保持原有字体颜色 */
    transition: transform 0.3s ease;
    outline: none; /* 去除点击轮廓 */
}

/* 覆盖所有链接状态 */
.service-link:link,
.service-link:visited,
.service-link:hover,
.service-link:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* 原有悬停效果保持 */
.service-link:hover {
    transform: translateY(-5px);
}
