* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #5a3a4a;
    background-color: #fef2f8;
    background-image: linear-gradient(135deg, #fef2f8 0%, #ffe4f2 100%);
}

header {
    background: linear-gradient(135deg, #ff77bc, #ff99cc);
    color: white;
    text-align: center;
    padding: 1.2rem 1rem;
    box-shadow: 0 4px 10px rgba(255, 150, 192, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,20 Q50,5 70,20 T90,40 Q80,60 90,80 T70,100 Q50,85 30,100 T10,80 Q20,60 10,40 T30,20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    padding: 0 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.featured-section {
    background-color: white;
    padding: 2rem 1rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.featured-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.featured-section .quote {
    flex: 1;
    min-width: 300px;
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-section blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: #ff4d4d;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    border-left: 4px solid #ff4d4d;
    padding-left: 1rem;
}

.featured-section cite {
    display: block;
    text-align: right;
    font-size: 1rem;
    color: #666;
    font-weight: bold;
}

.featured-section .description {
    flex: 2;
    min-width: 300px;
}

.featured-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.featured-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ff4d4d;
}

.featured-section .description p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.gallery-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.gallery-container .section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #5a3a4a;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 400;
}

.gallery-container .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #ff77bc;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 360px;
    cursor: pointer;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 119, 188, 0.2);
}

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

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    padding-bottom: 2rem;
}

.album-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.image-count {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.album-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.album-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.album-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

footer {
    background: linear-gradient(135deg, #ff77bc, #ff99cc);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 10px rgba(255, 150, 192, 0.1);
    position: relative;
}

footer p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.tag-filters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 119, 188, 0.3), transparent);
}

.tag-filters .tag {
    background: linear-gradient(135deg, #ff77bc, #ff99cc);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 119, 188, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-filters .tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.5s;
}

.tag-filters .tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 119, 188, 0.3);
}

.tag-filters .tag:hover::before {
    left: 100%;
}

.tag-filters .tag.active {
    background: linear-gradient(135deg, #ff5aa7, #ff77bc);
    box-shadow: 0 4px 15px rgba(255, 119, 188, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .tag-filters {
        gap: 0.8rem;
        padding: 1.5rem 0.5rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .tag-filters .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }

    .album-tag {
        padding: 0.25rem 0.7rem;
        font-size: 0.8rem;
    }

    .carousel {
        height: 300px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 320px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 0.5rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .gallery-container {
        margin: 0.5rem auto;
    }

    .gallery-container .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .tag-filters {
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .tag-filters .tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .album-tags {
        gap: 0.4rem;
    }

    .album-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .carousel {
        height: 220px;
    }

    .carousel-caption {
        padding: 15px;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        height: 240px;
    }

    .album-title {
        font-size: 0.9rem;
    }

    .image-count {
        font-size: 0.8rem;
    }

    .overlay {
        padding: 1rem;
    }
}

/* 轮播图样式 */
.carousel-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(255, 150, 192, 0.2);
    border: 1px solid rgba(255, 150, 192, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.95);
}

.carousel-slide:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 25px;
    text-align: left;
    z-index: 5;
}

.carousel-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.carousel-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(3px);
}

.carousel-wrapper:hover .carousel-button {
    opacity: 0.8;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1 !important;
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 分页控制器样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-btn {
    background-color: #ff77bc;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 119, 188, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination-btn:hover:not(:disabled) {
    background-color: #ff5aa7;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background-color: #ffaed7;
    cursor: not-allowed;
    opacity: 0.7;
}

.page-info {
    font-size: 1rem;
    color: #666;
    padding: 0.3rem 1rem;
    background-color: rgba(255, 240, 246, 0.8);
    border-radius: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination {
        margin: 1.5rem 0;
        gap: 0.8rem;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .page-info {
        font-size: 0.9rem;
        padding: 0.2rem 0.8rem;
    }

    .jump-container {
        margin: 5px 0;
    }

    .jump-input {
        width: 50px;
        height: 28px;
    }

    .jump-btn {
        padding: 4px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        margin: 1rem 0;
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .page-info {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 跳转页样式 */
.jump-container {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.jump-input {
    width: 60px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    text-align: center;
    font-size: 14px;
}

.jump-btn {
    background-color: #ff77bc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.jump-btn:hover {
    background-color: #ff5aa7;
}

/* 增强移动端响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 1rem 0.8rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .member-status-bar {
        padding: 8px 15px;
        font-size: 13px;
    }

    .member-link {
        font-size: 13px;
        margin-left: 10px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .gallery-item {
        height: 320px;
    }

    .album-title {
        font-size: 16px;
    }

    .image-count {
        font-size: 12px;
    }

    .search-results-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }

    header {
        padding: 0.8rem 0.6rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        height: 250px;
    }

    .album-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .image-count {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .album-tags {
        gap: 4px;
        margin-top: 3px;
    }

    .album-tag {
        padding: 2px 6px;
        font-size: 10px;
    }

    .overlay {
        padding: 10px;
    }

    .search-container {
        margin: 8px auto;
    }

    .search-input {
        font-size: 13px;
    }

    .search-results-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.6rem;
    }

    .gallery-item {
        height: 200px;
    }

    .album-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .image-count {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .album-tag {
        padding: 1px 4px;
        font-size: 9px;
    }

    .tag-filters .tag {
        padding: 4px 8px;
        font-size: 11px;
        margin: 3px;
    }

    .member-status-bar {
        padding: 6px 10px;
    }

    .member-status-indicator {
        gap: 5px;
        font-size: 12px;
    }

    .member-link {
        font-size: 12px;
        margin-left: 8px;
    }
}