/* 画王数码喷绘 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header 样式 */
.header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1E3A8A;
    font-size: 18px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #F97316;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #F97316;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Carousel 样式 */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
    color: white;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #F97316;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ea6200;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: white;
    color: #1E3A8A;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

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

.carousel-btn:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #F97316;
    width: 32px;
    border-radius: 6px;
}

/* Section 通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: #6b7280;
}

.bg-gray {
    background: #f9fafb;
}

/* Product Category 样式 */
.product-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.category-icon.blue { background: #3b82f6; }
.category-icon.green { background: #22c55e; }
.category-icon.purple { background: #a855f7; }
.category-icon.orange { background: #f97316; }

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #6b7280;
}

/* Solutions 样式 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.solution-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    display: block;
}

.solution-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.solution-card:hover .solution-card-bg {
    transform: scale(1.1);
}

.solution-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.solution-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    z-index: 1;
}

.solution-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.solution-card-header i {
    font-size: 28px;
    color: #F97316;
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
}

.solution-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.solution-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solution-card-footer span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.btn-small {
    padding: 10px 24px;
    background: #F97316;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #ea6200;
}

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

.mt-12 {
    margin-top: 48px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border: 2px solid #1E3A8A;
    color: #1E3A8A;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #1E3A8A;
    color: white;
}

/* News Section 样式 */
.news-carousel {
    position: relative;
    overflow: hidden;
}

.news-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-item {
    flex: 0 0 25%;
    padding: 0 12px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.news-card-image {
    height: 160px;
    overflow: hidden;
}


.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-card-content {
    padding: 20px;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1E3A8A;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.news-dot {
    height: 8px;
    border-radius: 4px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.news-dot.active {
    background: #F97316;
    width: 24px;
}

/* Footer 样式 */
.footer {
    background: #1E3A8A;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #F97316;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i {
    color: #F97316;
    margin-top: 3px;
}

.footer-qr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.qr-item img {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    background: white;
    margin-bottom: 8px;
}

.qr-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex: 0 0 50%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #1E3A8A;
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: white;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover {
    color: #F97316;
}

/* 产品列表页样式 */
.products-filter {
    display: none;
}

/* Category Module */
.category-module {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-category-tags {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.filter-tag {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover,
.filter-tag.active {
    background: #1E3A8A;
    color: white;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1E3A8A;
    text-align: center;
}

/* 关于我们页样式 */
.about-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.about-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.about-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.about-tab {
    flex: 1;
    padding: 16px 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.about-tab:hover,
.about-tab.active {
    background: #1E3A8A;
    color: white;
    border-color: #1E3A8A;
}

.about-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.about-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 24px;
}

.about-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 0;
    margin: 40px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #F97316;
    margin-bottom: 8px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
}

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

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

.honor-icon {
    width: 56px;
    height: 56px;
    background: #F97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
}

.honor-item p {
    font-size: 13px;
    color: #4b5563;
}

/* 新闻页样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-card-content {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* 后台管理样式 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1E3A8A;
    color: white;
    position: fixed;
    height: 100vh;
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.admin-sidebar-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.admin-menu {
    padding: 16px 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

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

.admin-menu a.active {
    border-left: 3px solid #F97316;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f3f4f6;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
}

.admin-content {
    padding: 30px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.admin-table td {
    font-size: 14px;
    color: #4b5563;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #22c55e;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-add:hover {
    background: #16a34a;
}

.btn-edit {
    color: #3b82f6;
    font-size: 14px;
}

.btn-edit:hover {
    color: #2563eb;
}

.btn-delete {
    color: #ef4444;
    font-size: 14px;
    margin-left: 12px;
}

.btn-delete:hover {
    color: #dc2626;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E3A8A;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}
}

.btn-submit {
    padding: 12px 32px;
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #1e40af;
}

/* 登录页样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 100%);
}

.login-box {
    background: white;
    padding: 48px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E3A8A;
    text-align: center;
    margin-bottom: 32px;
}

.login-error {
    background: #fef2f2;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 统计卡片 */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card-number {
    font-size: 32px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 8px;
}

.stat-card-label {
    color: #6b7280;
    font-size: 14px;
}
