/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #EFF6FF;
    --accent: #F59E0B;
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 - 透明背景在首页，固定在顶部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header.transparent {
    background: transparent;
    box-shadow: none;
}

.header.transparent .nav-menu a {
    color: white;
}

.header.transparent .nav-menu a:hover,
.header.transparent .nav-menu a.active {
    color: rgba(255,255,255,0.8);
}

.header.transparent .logo {
    color: white;
}

/* 导航栏底部白线 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

.header.transparent::after {
    background: rgba(255,255,255,0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    /* Logo白色背景，确保在任何情况下都清晰可见 */
    background: rgba(255,255,255,0.98);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.logo i {
    font-size: 36px;
    flex-shrink: 0;
    color: var(--primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .company-name {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

/* 透明导航栏时Logo样式 - 保持白色背景更醒目 */
.header.transparent .logo {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header.transparent .logo i {
    color: var(--primary);
}

.header.transparent .logo-text .company-name {
    color: var(--primary);
}

.header.transparent .logo-img {
    /* 不再反色，保持原样 */
}

/* 滚动后导航栏有背景时 */
.header:not(.transparent) .logo {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 15px;
    color: var(--text-dark);
    border-radius: 4px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        color: var(--text-dark) !important;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary) !important;
    }

    .nav-menu a::after {
        display: none;
    }
}

/* Hero轮播区域 - 全屏展示 */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slider .slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.9) 0%, rgba(30,64,175,0.85) 100%);
}

.hero-slider .slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-slider .slide-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-slider .slide-content p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-slider .slide-content .subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-top: 10px;
}

.hero-slider .slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider .slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-slider .slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.hero-slider .slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

/* 内页Banner */
.inner-banner {
    height: 350px;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(30,64,175,0.8) 100%);
}

.inner-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.inner-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
        min-height: 500px;
    }
    .hero-slider .slide-content h1 {
        font-size: 28px;
    }
    .hero-slider .slide-content p {
        font-size: 16px;
    }
    .hero-slider .slide-content .subtitle {
        font-size: 14px;
    }
    .inner-banner {
        height: 220px;
    }
    .inner-banner h1 {
        font-size: 28px;
    }
}

/* 产品/新闻图片展示 */
.product-card .img,
.news-card .img,
.case-card .img {
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img img,
.news-card .img img,
.case-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .img .placeholder,
.news-card .img .placeholder,
.case-card .img .placeholder {
    font-size: 48px;
    color: var(--primary);
}

/* 关于我们图片 */
.about-img {
    background: var(--primary-light);
    border-radius: 16px;
    height: 400px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 后台图片预览 */
.img-preview {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

.img-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.img-upload-area input[type="file"] {
    display: none;
}

.img-upload-area .upload-icon {
    font-size: 40px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.img-upload-area p {
    color: var(--text-gray);
    font-size: 14px;
}

.img-upload-area.has-image {
    padding: 10px;
}

.img-upload-area.has-image img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
}

/* 图片管理 */
.img-management {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.img-management h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.img-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.img-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-item .img-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-item:hover .img-actions {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #D97706;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero {
        padding: 60px 0;
    }
}

/* 区块通用样式 */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-gray);
}

/* 特性卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 15px;
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), #DBEAFE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary);
}

.product-card .content {
    padding: 24px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 15px;
}

.product-card .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-card .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card .img {
        height: 180px;
    }
    
    .product-card .content {
        padding: 16px;
    }
    
    .product-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-card p {
        font-size: 13px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
    }
}

/* 产品分类卡片 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.category-card .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-card p {
    font-size: 13px;
    color: var(--text-gray);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover p {
    opacity: 1;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px 8px;
    }
    
    .category-card .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .category-card h3 {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    .category-card p {
        display: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    /* 移动端筛选按钮优化 */
    #filterContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    #filterContainer .btn {
        padding: 10px 16px;
        font-size: 14px;
        margin: 0 !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-card .img {
        height: 120px;
    }
    
    .product-card .content {
        padding: 12px;
    }
    
    .product-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .product-card p {
        font-size: 12px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }
    
    .product-card .btn {
        padding: 8px 12px;
        font-size: 12px;
        display: block;
        text-align: center;
    }
}

/* 新闻列表 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card .img {
    height: 180px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
}

.news-card .content {
    padding: 24px;
}

.news-card .date {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.news-card .link {
    color: var(--primary);
    font-weight: 600;
}

.news-card .link:hover {
    color: var(--primary-dark);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-card .img {
    height: 200px;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #059669;
}

.case-card .content {
    padding: 24px;
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.case-card .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
}

.case-card p {
    color: var(--text-gray);
    font-size: 14px;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 解决方案 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.solution-card .icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: var(--primary);
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.solution-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* 关于页面 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-img {
    background: linear-gradient(135deg, var(--primary-light), #DBEAFE);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--primary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-gray);
    margin-top: 8px;
}

/* 关于页面详细文字介绍 */
.about-intro {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.about-intro p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 15px;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-intro {
        padding: 24px;
        margin-top: 40px;
    }
    .about-intro p {
        line-height: 1.8;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 联系表单 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info p i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* 微信二维码样式 */
.wechat-qrcode {
    display: inline-block;
    text-align: center;
}

.wechat-qrcode img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    background: white;
}

.contact-form {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    background: #D1FAE5;
    color: #065F46;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.7;
}

/* 页脚Logo模块 */
.footer-logo {
    margin-top: 16px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 0 2px #F59E0B;
}

.footer-logo img {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .footer-logo img {
        height: 80px;
        max-width: 200px;
    }
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 后台样式 */
.admin-header {
    background: var(--primary-dark);
    color: white;
    padding: 20px 0;
    margin-top: 70px;
}

.admin-header h1 {
    font-size: 24px;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 130px);
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-gray);
    padding: 30px 0;
}

.admin-sidebar a {
    display: block;
    padding: 14px 24px;
    color: var(--text-dark);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-main {
    flex: 1;
    padding: 30px;
}

.admin-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.admin-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-gray);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--bg-gray);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

/* 登录页面 */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin-top: 0;
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 30px;
}

/* 页面内边距调整 */
body.has-nav {
    padding-top: 70px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-gray);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
}

/* 详情页 */
.detail-header {
    margin-top: 70px;
    padding: 40px 0;
    background: var(--bg-gray);
}

.detail-content {
    padding: 60px 0;
}

.detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}
