
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    padding: 25px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    opacity: 0.85;
    font-size: 1.1rem;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* Search Section */
.search-container {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #f9fbfd;
}

.search-btn {
    padding: 0 30px;
    border: none;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #2980b9;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    padding: 10px 20px;
}

/* Enterprise List */
.enterprise-list {
    margin-bottom: 40px;
}

.enterprise-list h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.enterprise-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.enterprise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 25px;
}

.card-title {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.info-value {
    color: #555;
    word-break: break-word;
    font-size: 0.95rem;
}

.detail-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: auto;
    transition: var(--transition);
}

.detail-btn:hover {
    background: #2980b9;
    text-decoration: none;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background-color: #f5f9ff;
    border-color: var(--secondary-color);
}

.pagination span {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

/* Enterprise Detail Styles */
.enterprise-overview {
    margin: 30px 0;
}

.overview-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.overview-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.overview-header h2 {
    font-size: 1.4rem;
}

.credit-code {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.overview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fbfd;
    border-radius: 8px;
    transition: var(--transition);
}

.overview-item:hover {
    background: #f0f7ff;
}

/* Details Section */
.details-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.details-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.business-scope {
    line-height: 1.8;
    padding: 15px;
    background: #f9fbfd;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

/* Contact Section */
.contact-card {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-qr {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background: #f9fbfd;
    border-radius: var(--border-radius);
    padding: 25px;
}

.contact-qr img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 2;
    min-width: 300px;
}

.contact-method {
    background: #f9fbfd;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.method-header {
    margin-bottom: 15px;
}

.method-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-color);
}

.contact-method p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.keyword-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.keyword-box span {
    font-weight: 600;
}

.keyword-box strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(to right, var(--primary-color), #1a2530);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 50px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition);
}

.footer-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.top-btn {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .list-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
        padding: 0 60px;
    }
    
    .back-btn {
        top: 15px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .search-box input {
        padding: 12px 20px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .contact-qr {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .list-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination a, .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
