* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2563eb;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.title {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}

.main-content {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    margin: var(--space-md) auto var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    width: 90%;
}
@media (max-width: 768px) {
    .main-content {
        padding: var(--space-md);
        width: 95%;
        margin: var(--space-sm) auto var(--space-lg);
    }
}

.page-title {
    color: var(--color-text);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: var(--space-sm);
    display: inline-block;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-sm);
    border-left: 4px solid var(--color-primary);
}

.nav {
    width: 100%;
    background-color: var(--color-surface);
    padding: var(--space-sm) 0;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-inner {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding: 0 var(--space-md);
    max-width: 1200px;
    width: 100%;
    scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 40px;
    line-height: 1;
    background-color: transparent;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}
.nav-item.active {
    background-color: var(--color-primary);
}
.nav-item.active p {
    color: white;
    font-weight: 600;
}

.nav-item p {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}
.nav-item:hover p {
    color: var(--color-primary);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin: var(--space-lg) 0;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 600px;
    font-size: 0.95rem;
}
table th:first-child {
    border-top-left-radius: var(--radius-md);
}
table th:last-child {
    border-top-right-radius: var(--radius-md);
}
table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}
table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

th {
    background-color: #f8fafc;
    color: var(--color-text);
    font-weight: 600;
    padding: var(--space-md);
    border-bottom: 2px solid var(--color-border);
    text-align: left;
    white-space: nowrap;
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    transition: background-color var(--transition-fast);
}
tbody tr:hover td {
    background-color: #f8fafc;
}
td.description {
    width: 40%;
    line-height: 1.5;
    text-align: left;
    color: var(--color-text-secondary);
}
td:not(.description) {
    width: 20%;
    text-align: center;
}

table img {
    display: block;
    max-width: 100px;
    max-height: 50px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    background-color: #fff;
    border: 1px solid var(--color-border);
}

.contact-info {
    background-color: var(--color-surface);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.contact-info p{
    line-height: 2;
}
.qr-code {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    background-color: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}
.qr-code:hover {
    transform: scale(1.05);
}
.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

footer {
    text-align: center;
    padding: var(--space-md) 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .nav {
        justify-content: flex-start;
    }
    .nav-inner {
        padding: 0 var(--space-sm);
    }
    .nav-item {
        min-width: 80px;
        padding: 0 var(--space-sm);
    }
    .nav-item p {
        font-size: 0.9rem;
    }
    th, td {
        padding: var(--space-sm);
        font-size: 0.9em;
    }
    table img {
        max-width: 60px;
        max-height: 30px;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
     .contact-info {
        padding: var(--space-lg) var(--space-md);
        margin: 0 var(--space-md);
    }
    .contact-info h2 {
        font-size: 1.5rem;
    }
    .qr-code {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .nav-item {
        min-width: 70px;
        height: 36px;
    }
    th, td {
        padding: var(--space-xs);
    }
}