/* 现代化门户网站样式增强 */

/* 颜色变量扩展 */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-info: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

/* 卡片增强效果 */
.w25,
.news_qh {
    position: relative;
    overflow: hidden;
}

.w25::before,
.news_qh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.w25:hover::before,
.news_qh:hover::before {
    transform: scaleX(1);
}

/* 列表项悬停增强 */
.w528_bot dl dd {
    position: relative;
    overflow: hidden;
}

.w528_bot dl dd a {
    display: inline-block;
    line-height: 20px;
    font-size: 13px;
}

.w528_bot dl dd span {
    line-height: 20px;
    font-size: 12px;
    padding: 2px 8px;
}

.w528_bot dl dd::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.w528_bot dl dd:hover::after {
    width: 100%;
}

/* 新标签脉冲效果 */
.blink {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    animation: modernBlink 2s ease-in-out infinite,
               pulse 2s ease-in-out infinite;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.3) !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    min-width: 36px !important;
    height: 20px !important;
    text-decoration: none !important;
}

/* 特别针对招标公告区域 */
.tabList .blink,
.tabList a .blink,
.tabList p a .blink {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    animation: modernBlink 2s ease-in-out infinite,
               pulse 2s ease-in-out infinite;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.3) !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    min-width: 36px !important;
    height: 20px !important;
    text-decoration: none !important;
}

/* 确保招标公告区域的链接颜色一致 */
.tabList dd p a,
.tabList dd p a[href*="newsdetail?type=zbgg&num=8"] {
    color: #333 !important;
}

.tabList dd p a[href*="newsdetail?type=zbgg&num=8"]:hover {
    color: #d9534f !important;
}

/* 移除第一个字母的特殊样式，保持颜色一致 */
.tabList dd p a::first-letter,
.w528_bot a::first-letter {
    color: inherit !important;
    font-weight: inherit !important;
}

/* 修复招标公告区域列表项的浮动问题 */
.tabList dd {
    overflow: hidden;
    position: relative;
    clear: both;
}

.tabList dd p {
    float: left !important;
    width: 70% !important;
    margin: 0;
    padding: 0 0 0 25px;
    line-height: 26px;
    background: url(../images/index_r6_c15.jpg) 0 10px no-repeat !important;
}

.tabList dd span {
    float: right !important;
    width: auto !important;
    margin: 0;
    padding: 1px 5px;
    line-height: 1;
    text-align: center;
    color: #666;
    font-size: 12px !important;
    white-space: nowrap;
    overflow: visible;
    background: #f0f0f0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 使用 flexbox 布局替代浮动 */
.tabList dd {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2px 15px !important;
    line-height: 33px;
    height: 39px;
}

.tabList dd p {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: visible !important;
    margin-right: 10px !important;
    padding-left: 25px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -3px !important;
    background: url(../images/index_r6_c15.jpg) 0 3px no-repeat !important;
    font-size: 13px;
    line-height: 22px;
}

.tabList dd p a {
    display: inline-block;
    max-width: 98%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(217, 83, 79, 0);
    }
}

/* 导航链接增强 */
.nav_right .nav li a {
    position: relative;
    overflow: hidden;
    color: #000000;
}

.nav_right .nav li.now a {
    color: #ffffff;
}

.nav_right .nav li:hover a {
    color: #D82128;
}

.nav_right .nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav_right .nav li.now a::after,
.nav_right .nav li:hover a::after {
    width: 80%;
}

/* 轮播图指示器增强 */
.carousel-indicators {
    bottom: 10px !important;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.carousel-indicators li.active {
    width: 30px;
    height: 12px;
    background: white;
    border-radius: 6px;
    transform: scale(1.1);
}

.carousel-indicators li:hover {
    transform: scale(1.2);
}

/* 图片容器增强 */
.js_news,
.slide_container {
    border-radius: 12px;
    overflow: hidden;
}

.js_news:hover,
.slide_container:hover {
    box-shadow: var(--shadow-lg);
}

/* 列表文本增强 */
.w528_bot a,
.tabList dd p a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.w528_bot a::first-letter,
.tabList dd p a::first-letter {
    color: var(--primary-color);
    font-weight: 600;
}

/* 标题区域渐变背景 */
.w25_top {
    position: relative;
    overflow: hidden;
}

.w25_top::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 更多按钮增强 */
.w25_top span a,
.tabClick ol a {
    position: relative;
    padding-right: 15px;
    transition: all 0.3s ease;
}

.w25_top span a::after,
.tabClick ol a::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.w25_top span a:hover::after,
.tabClick ol a:hover::after {
    opacity: 1;
    right: -10px;
}

/* 时间标签增强 */
.w528_bot span,
.tabList dd span {
    position: relative;
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 焦点图区域优化 */
.slide_container {
    position: relative;
}

.slide_container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

/* 列表悬停动画 */
.tabList dd {
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 0;
    padding: 8px 12px;
}

.tabList dd:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .w528_bot dl dd:hover::after {
        width: 0;
    }

    .tabList dd:hover {
        transform: none;
    }

    .nav_right .nav li a::after {
        display: none;
    }
}

/* 加载骨架屏效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 工具提示效果 */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

[data-tooltip]::after {
    content: '';
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent;
    border-top-color: #333;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(-5px);
}

[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 顶部欢迎文字科技效果 */
.top_bg p {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 50%, #00d2ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 8s linear infinite;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
    position: relative;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 欢迎图标发光效果 */
.top_bg p img {
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
    animation: iconGlow 5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
        transform: scale(1.05);
    }
}

/* 顶部入口按钮美化 */
.top_bg span a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
    vertical-align: middle;
}

.top_bg span a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.top_bg span a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.top_bg span a:hover::before {
    width: 300px;
    height: 300px;
}

.top_bg span a:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* 不同按钮的渐变背景 */
.top_bg span a:nth-child(1):hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.top_bg span a:nth-child(2):hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f093fb;
}

.top_bg span a:nth-child(3):hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
}

.top_bg span a:nth-child(4):hover {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-color: #fa709a;
}

/* 按钮图标装饰 */
.top_bg span a::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    top: 6px;
    right: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top_bg span a:hover::after {
    opacity: 1;
}

/* 打印样式优化 */
@media print {
    .top_bg,
    .nav_right,
    .box_b,
    .copy_bg {
        display: none !important;
    }

    .w528_bot a {
        color: black !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a9eff;
        --secondary-color: #6ea8fe;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --light-gray: #2a2a2a;
        --border-color: #3a3a3a;
    }

    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .w25,
    .news_qh {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .w528_bot a {
        color: #e0e0e0;
    }

    .w528_bot dl dd:hover {
        background: #3a3a3a;
    }
}

/* 性能优化 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* 可访问性增强 */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* 文本选择 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 表单元素优化 */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 按钮效果 */
.btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

/* 徽章效果 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-success {
    background: var(--gradient-success);
    color: white;
}

.badge-warning {
    background: var(--gradient-warning);
    color: white;
}

/* 进度条效果 */
.progress {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 提示框效果 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

/* 分页器效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* 搜索框效果 */
.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    color: var(--primary-color);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c7da0 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.4);
    font-size: 22px;
    font-weight: bold;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.5s ease;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 24px rgba(44, 125, 160, 0.6);
    background: linear-gradient(135deg, #2c7da0 0%, #1a5f7a 100%);
}

.back-to-top:active {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 2px 8px rgba(44, 125, 160, 0.4);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        transform: translateY(-8px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 防止底部区域遮挡 */
.copy_bg {
    position: relative;
    z-index: 10;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
