/* about.css - 精简版本 */
/* about.html 特有样式 */

/* 全局样式 - 与首页保持一致 */
:root {
    --primary-blue: #1a6bc4;
    --dark-blue: #0d4a8c;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e5eb;
    --dark-gray: #4a5568;
    --text-color: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 标签页样式 */
.about-tabs {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.tab-buttons {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    color: var(--dark-gray);
    font-weight: 500;
}

.tab-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--white);
}

.tab-content {
    padding: 50px;
    min-height: 600px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 企业简介样式 */
.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.intro-text h3 {
    color: var(--primary-blue);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-blue);
}
 .intro-text p{
		font-size: 1.3rem;
		line-height: 2.5rem;
		letter-spacing: 0.1rem;
	}
.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
	
}

.stat-label {
    color: var(--dark-gray);
    margin-top: 10px;
    /* font-size: 0.9rem; */
	font-size: 1.3rem;
	line-height: 2.5rem;
	letter-spacing: 0.1rem;
}

/* 企业文化样式 */
.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.culture-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.culture-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.culture-item:hover .culture-icon {
    transform: scale(1.1);
}

.culture-text h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.culture-quote {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.culture-quote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 10px;
    left: 30px;
}

.culture-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    line-height: 1.8;
}

/* 发展历程样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--dark-blue));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 30px;
    flex-shrink: 0;
    z-index: 1;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(26, 107, 196, 0.3);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* 资质荣誉样式 - 优化版 */
.honor-section {
    margin-bottom: 60px;
}

.honor-section h3 {
    color: var(--dark-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
    font-size: 1.5rem;
    position: relative;
}

.honor-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--dark-blue);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.certificate-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    position: relative;
}
.certificate-card1 {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    position: relative;
}
.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.certificate-card1:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.certificate-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-img img {
    transform: scale(1.05);
}
.certificate-card1:hover .certificate-img img {
    transform: scale(1.05);
}
.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 107, 196, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}
.certificate-card1:hover .certificate-overlay {
    opacity: 1;
}
.certificate-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.certificate-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.certificate-info {
    padding: 25px 20px;
    text-align: center;
}

.certificate-info h4 {
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-size: 1.3rem;
}

.certificate-info p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.certificate-count {
    background: var(--primary-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* 知识产权概览 */
.patent-summary-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(26, 107, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.patent-summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.patent-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.patent-stats {
    margin-bottom: 25px;
}

.patent-count-total {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.patent-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.patent-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.breakdown-item .type {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
}

.breakdown-item .count {
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
}

/* 专利证书画廊 */
.patents-gallery {
    margin-top: 30px;
}

.patent-category {
    margin-bottom: 50px;
}

.patent-category h4 {
    color: var(--dark-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--medium-gray);
    aspect-ratio: 3/4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 107, 196, 0.9) 0%, rgba(13, 74, 140, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
}

.gallery-more {
    background: var(--light-gray);
    border: 3px dashed var(--medium-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 3/4;
    text-decoration: none;
    color: var(--dark-gray);
}

.gallery-more:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.more-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.gallery-more span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 图片弹窗样式优化 */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    margin: 2% auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 头部样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 主体内容 */
.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #f8fafc;
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.image-loading-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    z-index: 2;
}

.loading-spinner {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.image-loading-modal p {
    color: var(--dark-gray);
    font-size: 1rem;
    margin: 0;
}

.image-loading-modal.hidden {
    display: none;
}

#certificateLargeImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: grab;
}

#certificateLargeImage:active {
    cursor: grabbing;
}

#certificateLargeImage.zoomed {
    cursor: zoom-out;
}

/* 图片控制按钮 */
.image-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.control-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 107, 196, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

/* 底部样式 */
.modal-footer {
    background: white;
    border-top: 1px solid var(--medium-gray);
    padding: 20px 30px;
}

.navigation-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-btn:hover:not(:disabled) {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 107, 196, 0.3);
}

.nav-btn:disabled {
    background: var(--medium-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    background: var(--light-blue);
    padding: 8px 16px;
    border-radius: 20px;
}

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

.image-info p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 图片加载状态样式 */
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.image-container img.loaded + .image-loading,
.image-loading-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 图片错误状态 */
.image-error {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
}

.image-error i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.image-error p {
    margin: 0;
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-slogan {
    margin-top: 15px;
    color: var(--light-blue);
    font-weight: 600;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0 0 15px 0;
    }
    
    .nav-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .patent-summary-card {
        padding: 30px 20px;
    }
    
    .patent-count-total {
        font-size: 3rem;
    }
    
    .patent-breakdown {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .modal-container {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .image-container {
        padding: 20px;
    }
    
    .image-controls {
        padding: 10px 15px;
        bottom: 15px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn {
        padding: 10px 15px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--medium-gray);
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary-blue);
        border-bottom-color: var(--medium-gray);
    }
    
    .tab-content {
        padding: 30px 20px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
    }
   
    .intro-stats {
        grid-template-columns: 1fr;
    }
    
    .culture-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        margin-right: 20px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-container {
        width: 98%;
        height: 98%;
        margin: 1% auto;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .image-container {
        padding: 15px;
    }
    
    .image-controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
        bottom: 10px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .modal-container {
        background: #1a1a1a;
        color: white;
    }
    
    .modal-body {
        background: #2d2d2d;
    }
    
    .image-controls {
        background: rgba(45, 45, 45, 0.95);
    }
    
    .control-btn {
        background: #3a3a3a;
        color: white;
    }
    
    .modal-footer {
        background: #1a1a1a;
        border-top-color: #3a3a3a;
    }
    
    .counter {
        /* background: #2d2d2d; */
        color: white;
    }
    
    .image-info p {
        color: #cccccc;
    }
}
