/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e4e79;
    --secondary: #c62828;
    --accent: #f5a623;
    --light: #f8f9fa;
    --dark: #333;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2c4a 100%);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

nav ul li {
    position: relative;
    margin-left: 1rem;
    gap: 1.2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: block;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 79, 121, 0.95);
    min-width: 200px;
    display: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

nav ul li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 1px;
}

.dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 页脚样式 */
footer {
    background: #0d2335;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

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

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-out;
    touch-action: none;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    user-select: none;
    cursor: grab;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #bbb;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-counter {
    position: absolute;
    top: 20px;
    left: 35px;
    color: #f1f1f1;
    font-size: 18px;
    z-index: 2001;
}

.image-alt-text {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 2001;
    max-width: 80%;
    text-align: center;
    word-wrap: break-word;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2001;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .modal-content img {
        max-height: 80vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .image-counter {
        font-size: 16px;
        top: 15px;
        left: 20px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .gallery-item {
        height: 100px;
    }
    
    .image-alt-text {
        top: 60px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, rgb(13,44,74) 100%);
        flex-direction: column;
        padding: 0.8rem 0;
        display: none;
        z-index: 999;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.4rem 0;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        line-height: 0.5;
    }
    
    nav ul li.more-active .dropdown-menu {
        display: block;
    }
    
    nav ul li.more-active .arrow-icon {
        transform: rotate(180deg);
    }
    
    .arrow-icon {
        transition: transform 0.3s ease;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(30, 79, 121, 0.95);
        box-shadow: none;
        width: 100%;
        margin-top: 5px;
    }
    
    .dropdown-menu li a {
        padding: 6px 15px;
        font-size: 0.84rem;
        line-height: 0.49;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    nav ul {
        animation: menuSlide 0.3s ease;
    }
    
    .about-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
        margin-top: 20px;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    @keyframes menuSlide {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    nav ul li.more-active .dropdown-menu {
        animation: dropdownFade 0.3s ease;
    }
    
    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: scaleY(0.9);
        }
        to {
            opacity: 1;
            transform: scaleY(1);
        }
    }
    
    .arrow-icon {
        transition: transform 0.3s ease;
    }
    
    nav ul li.more-active .arrow-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .about h3 {
        font-size: 1.5rem;
    }
    
    .testimonial-container {
        padding: 0 10px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .testimonial-author {
        font-size: 0.95rem;
    }
    
    .testimonial {
        padding: 20px;
        margin: 15px 0;
    }
    
    .love-section {
        padding: 150px 0;
    }
    
    .love-section h2 {
        font-size: 1.5rem;
    }
    
    .love-section p {
        font-size: 1rem;
        max-width: 100%
    }
    
    .heart-container {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero h1 span {
        letter-spacing: normal;
    }
    
    .section-title h2::after {
        width: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 其他常用样式 */
.footer-column ul li a:hover {
    color: var(--accent) !important;
    transition: color 0.3s ease;
}