/**
 * Gangwan Theme Custom CSS
 */

/* 动画效果 */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 全局样式 */
.animate-slide-in-down {
    animation: slideInDown 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* 自定义样式 */
.icon-box {
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.icon-box:hover::before {
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 导航菜单样式 */
.site-header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.primary-menu > li > a {
    position: relative;
    padding-bottom: 4px;
    font-weight: 500; /* 增加字体粗细 */
    color: #1f2937; /* 深灰色提高可读性 */
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.primary-menu > li > a:hover::after {
    width: 100%;
}

/* 卡片悬停效果 */
.card-shadow {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 按钮样式 */
.btn-primary {
    position: relative;
    overflow: hidden;
    background-color: #3b82f6; /* blue-500 */
    transition: all 0.3s ease;
    font-weight: 600; /* 增加字体粗细 */
    letter-spacing: 0.025em; /* 微调字母间距提高可读性 */
}

.btn-primary:hover {
    background-color: #2563eb; /* blue-600 */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 页脚样式 */
.footer-menu li a {
    position: relative;
    color: #9ca3af;
    transition: color 0.3s ease;
    font-weight: 500; /* 增加字体粗细 */
}

.footer-menu li a:hover {
    color: #ffffff;
}

.footer-menu li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-menu li a:hover::before {
    opacity: 1;
    left: -15px;
}

/* 社交媒体图标 */
.social-links a {
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.social-links a:hover::before {
    width: 40px;
    height: 40px;
}

/* 分页样式 */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-numbers:not(.current):hover {
    background-color: #f3f4f6;
}

/* 港湾科技页面专用样式 */
.leading-technology-section {
    font-family: 'Inter', sans-serif; /* 使用Google Fonts字体 */
    -webkit-font-smoothing: antialiased; /* 提高字体渲染质量 */
    -moz-osx-font-smoothing: grayscale;
}

.leading-technology-section h1,
.leading-technology-section h2,
.leading-technology-section h3 {
    color: #111827; /* 更深的颜色提高可读性 */
    font-weight: 700;
}

.leading-technology-section p {
    color: #374151; /* 更深的颜色提高可读性 */
    font-size: 1rem;
    line-height: 1.6;
}

.leading-technology-section .card-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 5px 10px -5px rgba(0, 0, 0, 0.08);
}

.leading-technology-section textarea {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.5;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.leading-technology-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.leading-technology-section .btn-primary {
    background-color: #3b82f6;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.leading-technology-section .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.leading-technology-section .btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.leading-technology-section .btn-primary:disabled:hover {
    background-color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.leading-technology-section #tool-suggestion-output {
    font-size: 1rem;
    line-height: 1.6;
}

.leading-technology-section #tool-suggestion-output h1,
.leading-technology-section #tool-suggestion-output h2,
.leading-technology-section #tool-suggestion-output h3 {
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.leading-technology-section #tool-suggestion-output p {
    color: #374151;
    margin-bottom: 1rem;
}

.leading-technology-section #tool-suggestion-output ul,
.leading-technology-section #tool-suggestion-output ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.leading-technology-section #tool-suggestion-output li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.leading-technology-section #tool-suggestion-output strong {
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .mobile-menu.active {
        max-height: 500px;
    }
    
    .footer-menu li a::before {
        display: none;
    }
    
    /* 港湾科技页面响应式调整 */
    .leading-technology-section .grid {
        grid-template-columns: 1fr;
    }
    
    .leading-technology-section h1 {
        font-size: 2rem;
    }
    
    .leading-technology-section h2 {
        font-size: 1.5rem;
    }
    
    .leading-technology-section .btn-primary {
        width: 100%;
        margin-bottom: 10px;
        padding: 1rem;
    }
    
    .leading-technology-section textarea {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* 改善移动端字体清晰度 */
    .leading-technology-section {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .leading-technology-section h1,
    .leading-technology-section h2,
    .leading-technology-section h3 {
        color: #111827;
    }
    
    .leading-technology-section p,
    .leading-technology-section li {
        color: #374151;
    }
}

/* AI合作伙伴页面专用样式 */
.ai-partners-section {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ai-partners-section h1,
.ai-partners-section h2,
.ai-partners-section h3 {
    color: #111827;
    font-weight: 700;
}

.ai-partners-section p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

/* AI卡片样式 */
.ai-partners-section .w-24 {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ai-partners-section .card-shadow:hover .w-24 {
    transform: scale(1.1);
}

.ai-partners-section .card-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

/* AI Logo渐变背景动画 */
.ai-partners-section .bg-gradient-to-br {
    position: relative;
    overflow: hidden;
}

.ai-partners-section .bg-gradient-to-br::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.ai-partners-section .card-shadow:hover .bg-gradient-to-br::after {
    transform: scale(1);
}

/* 按钮悬停效果 */
.ai-partners-section .btn-primary {
    background-color: #3b82f6;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.ai-partners-section .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 标签样式 */
.ai-partners-section .rounded-full {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* 应用场景卡片 */
.ai-partners-section .card-shadow .icon-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-partners-section .grid {
        grid-template-columns: 1fr;
    }
    
    .ai-partners-section h1 {
        font-size: 2rem;
    }
    
    .ai-partners-section h2 {
        font-size: 1.5rem;
    }
    
    .ai-partners-section .btn-primary {
        width: 100%;
        margin-bottom: 10px;
        padding: 1rem;
    }
    
    .ai-partners-section h1,
    .ai-partners-section h2,
    .ai-partners-section h3 {
        color: #111827;
    }
    
    .ai-partners-section p,
    .ai-partners-section li {
        color: #374151;
    }
}

/* ==========================================================================
   投标指南页面专用样式 - Bidding Guide Page
   ========================================================================== */

/* ---- CSS 变量（蓝色政务色系） ---- */
.bidding-guide-section {
    --bg-primary: #1a56db;
    --bg-primary-dark: #1e429f;
    --bg-primary-light: #eff6ff;
    --accent: #f59e0b;
    --text-main: #111827;
    --text-sub: #6b7280;
    --border: #e5e7eb;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Hero 横幅 ---- */
.bidding-guide-section .bg-section-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}
.bidding-guide-section .bg-section-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.bidding-guide-section .bg-section-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.bidding-guide-section .bg-icon-wrap {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.bidding-guide-section .bg-btn-primary {
    background-color: var(--accent);
    color: #1e3a8a;
}
.bidding-guide-section .bg-btn-primary:hover {
    background-color: #d97706;
}

/* ---- 统计数字区 ---- */
.bidding-guide-section .stat-card {
    padding: 1rem;
}
.bidding-guide-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.bidding-guide-section .stat-unit {
    font-size: 1.25rem;
    font-weight: 600;
}
.bidding-guide-section .stat-label {
    font-size: 0.875rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* ---- Section 通用标题 ---- */
.bidding-guide-section .section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    background: var(--bg-primary-light);
    border: 1px solid #bfdbfe;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
}

/* ---- 流程时间轴 ---- */
.bidding-guide-section .process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}
.bidding-guide-section .process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #bfdbfe, #3b82f6, #bfdbfe);
}

.bidding-guide-section .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 0 2rem 0;
    position: relative;
}

.bidding-guide-section .step-icon-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.bidding-guide-section .step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 2px #fff;
}
.bidding-guide-section .step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(26,86,219,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bidding-guide-section .process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(26,86,219,0.45);
}

.bidding-guide-section .step-content {
    flex: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.bidding-guide-section .step-content:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(26,86,219,0.12);
}

.bidding-guide-section .step-tips {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fffbeb;
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: #92400e;
    margin-top: 0.75rem;
}

/* ---- 资质卡片 ---- */
.bidding-guide-section .qual-card {
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.bidding-guide-section .qual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.bidding-guide-section .qual-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.bidding-guide-section .qual-card:hover .qual-icon {
    transform: rotate(-6deg) scale(1.1);
}
.bidding-guide-section .qual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 0.5rem;
}
.bidding-guide-section .qual-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.bidding-guide-section .qual-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.8rem;
}
.bidding-guide-section .qual-list--danger li::before {
    content: '✗';
    color: #dc2626;
}

/* ---- FAQ 手风琴 ---- */
.bidding-guide-section .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bidding-guide-section .faq-item {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.bidding-guide-section .faq-item--open {
    box-shadow: 0 4px 16px rgba(26,86,219,0.1);
    border-color: #bfdbfe;
}
.bidding-guide-section .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.bidding-guide-section .faq-question:hover {
    background: var(--bg-primary-light);
}
.bidding-guide-section .faq-item--open .faq-question {
    background: var(--bg-primary-light);
    color: var(--bg-primary);
}
.bidding-guide-section .faq-icon {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--bg-primary);
    transition: transform 0.3s ease;
}
.bidding-guide-section .faq-item--open .faq-icon {
    transform: rotate(180deg);
}
.bidding-guide-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 1.5rem;
}
.bidding-guide-section .faq-answer p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.75;
    margin: 0;
}
.bidding-guide-section .faq-answer strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ---- 联系信息卡片 ---- */
.bidding-guide-section .contact-icon-box {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.bidding-guide-section .contact-info-card:hover .contact-icon-box {
    transform: scale(1.1);
}

/* ---- 表单样式 ---- */
.bidding-guide-section .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}
.bidding-guide-section .form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
.bidding-guide-section .form-input:focus {
    outline: none;
    border-color: var(--bg-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.bidding-guide-section .form-input::placeholder {
    color: #9ca3af;
}

/* ---- 响应式适配 ---- */
@media (max-width: 768px) {
    .bidding-guide-section .stat-number {
        font-size: 1.875rem;
    }
    .bidding-guide-section .process-timeline::before {
        left: 28px;
    }
    .bidding-guide-section .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .bidding-guide-section .step-content:hover {
        transform: none;
    }
    .bidding-guide-section .qual-card:hover {
        transform: translateY(-3px);
    }
    .bidding-guide-section .faq-question {
        font-size: 0.875rem;
        padding: 1rem 1.25rem;
    }
    .bidding-guide-section .faq-answer {
        padding: 0 1.25rem;
    }
    .bidding-guide-section .bg-section-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .bidding-guide-section .process-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    .bidding-guide-section .process-timeline::before {
        display: none;
    }
}

/* ==========================================================================
   投标指南 - 文章分组列表板块 (#bidding-articles)
   ========================================================================== */

/* ---- 文章卡片 ---- */
.bidding-guide-section .article-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
}
.bidding-guide-section .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.11);
}

/* ---- 封面占位渐变 ---- */
.bidding-guide-section .article-cover-placeholder {
    position: relative;
    overflow: hidden;
}

/* ---- 文字截断（多行 line-clamp） ---- */
.bidding-guide-section .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bidding-guide-section .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- 分组标题分割线 ---- */
.bidding-guide-section .article-group > div:first-child .flex-1 {
    background: linear-gradient(to right, #e5e7eb 0%, transparent 100%);
    height: 1px;
}

/* ---- 阅读按钮 ---- */
.bidding-guide-section .article-card a[href]:last-of-type {
    white-space: nowrap;
}

/* ---- 移动端适配 ---- */
@media (max-width: 640px) {
    .bidding-guide-section .article-card:hover {
        transform: none;
    }
}
