/**
 * 昆云自用系统 - 前台样式
 */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 60px 0;
}

.features h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--secondary-color);
}

/* Services Preview */
.services-preview {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.services-preview h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.services-preview p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #1d4ed8;
}


/* Page Header with Banner */
.page-header {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(37, 99, 235, 0.75));
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.page-header h2 {
    font-size: 28px;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

/* About & Services */
.about-content,
.services-content {
    padding: 60px 0;
}

.about-text,
.services-text {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.about-text h3,
.services-text h3 {
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.about-text ul,
.services-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.about-text li,
.services-text li {
    margin: 8px 0;
}

/* Data Table */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--primary-color) !important;
    color: white;
    font-weight: 600;
    border-right: none !important;
}

.data-table tr:hover {
    background: #f1f5f9;
}

.data-table .btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--secondary-color);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active,
.status-1,
.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-inactive,
.status-0 {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-ongoing,
.status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-desc {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-size: 18px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--secondary-color);
}

/* About */
.about-content {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

.about-detail {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

/* Contact */
.contact-info {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
}

.contact-info strong {
    color: var(--primary-color);
    display: inline-block;
    width: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-date, .news-category {
    font-size: 14px;
    color: var(--secondary-color);
}

.news-category {
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 4px;
    margin-left: 15px;
}

.news-item h3 {
    margin: 15px 0;
}

.news-item h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.news-item h3 a:hover {
    color: var(--primary-color);
}

.news-detail {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.news-meta {
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-meta span {
    margin-right: 20px;
}

.news-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #1d4ed8;
}

/* Downloads */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-item h3 {
    flex: 1;
    font-size: 18px;
}

.doc-size {
    color: var(--secondary-color);
    font-size: 14px;
}

.btn-download {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #7aa4ff;
}

.footer-section ul li i {
    margin-right: 10px;
    width: 16px;
    color: #7aa4ff;
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.footer-section .social-links a:hover {
    background: #7aa4ff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section .social-links {
        justify-content: center;
    }

    .footer-section ul li {
        display: inline-block;
        margin: 0 10px;
    }
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-icon {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-icon i {
    font-size: 60px;
    color: white;
    opacity: 0.8;
}

.case-content {
    padding: 25px;
}

.case-industry {
    display: inline-block;
    background: #e2e8f0;
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-client {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.case-client i {
    margin-right: 5px;
}

.case-desc {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-result {
    background: #f0fdf4;
    border-left: 4px solid var(--success-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

.case-result h4 {
    color: #065f46;
    font-size: 14px;
    margin-bottom: 8px;
}

.case-result h4 i {
    margin-right: 5px;
}

.case-result p {
    color: #047857;
    font-size: 14px;
    line-height: 1.5;
}
