/**
 * 华盛建材集团官网样式表
 * 设计风格：大气、专业、沉稳
 * 主色调：深蓝 #1a3a5f、深灰 #2c3e50、白色 #ffffff
 */

/* ==================== 全局样式 ==================== */

/* 提示框样式 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 18px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

:root {
    --primary-color: #1a3a5f;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

ul, ol {
    list-style: none;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-hover);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 16px;
    color: var(--text-color);
    padding: 10px 0;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==================== 轮播图区域 ==================== */
.banner {
    margin-top: 80px;
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    /* 避免透明层叠在上层仍拦截鼠标，导致悬停与自动轮播抢焦点、文字闪动 */
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    transition: transform 0.35s ease;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播图控制按钮 */
.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background-color: var(--white);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
}

.banner-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* ==================== 板块标题 ==================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ==================== 公司简介 ==================== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img,
.about-image video {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ==================== 业务板块 ==================== */
.business-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.business-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 58, 95, 0.15);
}

.business-card .business-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    fill: var(--primary-color);
}

.business-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.business-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== 产品列表 ==================== */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 58, 95, 0.15);
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== 新闻列表 ==================== */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 58, 95, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.02);
}

.news-info {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.news-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 95, 0.4);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ==================== 页面标题区域 ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 联系我们 ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-info {
    padding: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 3px;
    color: var(--accent-color);
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 计算器页面 ==================== */
.calculator-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.calculator-form {
    margin-bottom: 40px;
}

.calculator-result {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.calculator-result h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.total-price {
    font-size: 48px;
    color: #e74c3c;
    font-weight: bold;
    margin: 20px 0;
}

.result-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    padding: 15px;
    background-color: var(--white);
    border-radius: 5px;
}

.detail-item label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.detail-item span {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== 底部区域 ==================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ==================== 后台管理样式 ==================== */
.admin-body {
    background-color: var(--bg-light);
}

.admin-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0 30px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-header h1 {
    font-size: 20px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-right span {
    font-size: 14px;
}

.admin-header-logo {
    width: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.btn-header-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 240px;
    background-color: var(--secondary-color);
    padding: 20px 0;
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-menu li a i {
    margin-right: 10px;
    width: 20px;
}

.admin-menu-group-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 30px 6px;
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 30px;
}

.admin-page-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-toolbar .admin-page-title {
    margin: 0;
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-filter-bar {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-note {
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.admin-note.info {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.admin-note.warn {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.admin-panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-panel + .admin-panel {
    margin-top: 30px;
}

.admin-panel-title {
    margin-bottom: 20px;
    color: #1a3a5f;
}

.text-muted {
    color: #999;
}

.text-danger {
    color: #e74c3c;
}

.status-active {
    color: green;
}

.status-inactive {
    color: #e74c3c;
}

.status-muted {
    color: #999;
}

.badge-current-admin {
    color: #3498db;
    font-size: 12px;
    margin-left: 5px;
}

.btn-danger-lite {
    background: #e74c3c;
    color: white;
}

.row-unread {
    background: #f8f9fa;
}

.cell-ellipsis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumb-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.thumb-banner {
    max-width: 100px;
    max-height: 50px;
}

.required-star {
    color: red;
}

.hint-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #0369a1;
}

.hint-box-sub {
    color: #64748b;
}

.modal-content-wide {
    max-width: 900px;
}

.modal-content-medium {
    max-width: 800px;
}

.modal-close-large {
    color: white;
    font-size: 24px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-item-time {
    color: #999;
    font-size: 12px;
}

.message-item-content {
    color: #666;
    font-size: 14px;
}

.link-card {
    text-decoration: none;
    cursor: pointer;
}

.login-logo {
    width: 50px;
    vertical-align: middle;
    margin-right: 10px;
}

.text-center {
    text-align: center;
}

/* 数据卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 表格样式 */
.data-table {
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    font-size: 14px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--bg-light);
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-box {
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 28px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 文件上传 */
.file-upload {
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.file-upload i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 10px;
}

.file-upload p {
    font-size: 14px;
    color: var(--text-light);
}

.file-upload input {
    display: none;
}

/* 图片预览 */
.image-preview {
    margin-top: 20px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* 标签页 */
.tabs {
    display: flex;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: #1e293b;
}

.tab-btn:hover {
    color: #1e293b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 15px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-detail {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 30px;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.empty-state p {
    font-size: 14px;
}

/* ==================== 页面Banner模块 ==================== */
.page-banner {
    margin-top: 80px;
    height: 320px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.75), rgba(44, 62, 80, 0.8));
}

.page-banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.page-banner-content h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.page-banner-content p {
    font-size: 18px;
    opacity: 0.95;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* 联系我们右侧信息卡片背景图 */
.contact-info-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.88), rgba(44, 62, 80, 0.9));
    backdrop-filter: blur(2px);
}

.contact-info-card > * {
    position: relative;
    z-index: 10;
}

/* ==================== 新闻内容样式 ==================== */
.news-content {
    line-height: 1.8;
    color: #333;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
    display: block;
}

.news-content p {
    margin-bottom: 15px;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.news-content ul,
.news-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.news-content li {
    margin-bottom: 8px;
    list-style: inherit;
}

.news-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.news-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.news-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.news-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* ==================== 隐藏扣子AI悬浮按钮 ==================== */
/* 隐藏所有可能的扣子AI相关元素 */
[class*="coze-badge"],
[class*="coze-widget"],
[class*="coze-fab"],
[class*="coze-button"],
[class*="CozeBot"],
[class*="coze-bot"],
[class*="coze-chat"],
[class*="coze-float"],
[class*="coze-trigger"],
[id*="coze-badge"],
[id*="coze-widget"],
[id*="coze-fab"],
[id*="coze-button"],
[id*="CozeBot"],
[id*="coze-bot"],
[id*="coze-chat"],
[id*="coze-float"],
[id*="coze-trigger"],
.coze-badge,
.coze-widget,
.coze-fab,
.coze-button,
.coze-float,
.coze-trigger,
div[class*="coze"][class*="float"],
div[class*="coze"][class*="badge"],
div[class*="coze"][class*="widget"],
div[id*="coze"][id*="float"],
div[id*="coze"][id*="badge"],
div[id*="coze"][id*="widget"],
a[class*="coze"],
a[id*="coze"],
button[class*="coze"],
button[id*="coze"],
iframe[src*="coze"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
}

/* 隐藏右下角固定定位的扣子相关元素 */
div[style*="position: fixed"][style*="bottom"][class*="coze"],
div[style*="position: fixed"][style*="bottom"][id*="coze"],
div[style*="position:fixed"][style*="bottom"][class*="coze"],
div[style*="position:fixed"][style*="bottom"][id*="coze"] {
    display: none !important;
}

/* ==================== UI 交互效果优化 ==================== */

/* 页面滚动元素淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 移除标题下划线悬浮动画，避免干扰 */
.section-title h2::after {
    display: none;
}

/* 按钮点击涟漪效果 */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* 导航链接下划线动画 */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 轮播文案：勿用会覆盖 translate(-50%,-50%) 的 transform，否则悬停会跳动、闪动 */
.banner-slide.active:hover .banner-content {
    transform: translate(-50%, -50%) scale(1.01);
}

/* 卡片3D悬停效果增强 */
.product-card:hover,
.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 58, 95, 0.2);
}

/* 业务卡片图标动画 */
.business-card:hover .business-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

/* 图片加载渐入效果 */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* 表单输入框焦点效果 */
.form-control:focus {
    transform: scale(1.02);
}

/* 标签按钮切换动画 - 已禁用 */
/*
.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    width: 100%;
}
*/

/* 页面Banner 内容入场动画 */
.page-banner-content h1 {
    animation: slideDown 0.8s ease-out;
}

.page-banner-content p {
    animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
