/* ============================================
   希岛爱理画廊 (Airi Gallery) - 主样式表
   CSS/ID前缀: ag-
   干扰标签前缀: gallery-
   ============================================ */

/* === 干扰标签隐藏 === */
.gallery-jammer-block { display: none; }

/* === CSS Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #757575;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #333333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Didot, "Bodoni MT", "Cochin", serif;
    font-weight: 400;
    line-height: 1.3;
    color: #333333;
}

/* === Typography === */
.ag-heading-xl {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.ag-heading-lg {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

.ag-heading-md {
    font-size: 1.8rem;
}

.ag-heading-sm {
    font-size: 1.3rem;
}

.ag-body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
}

.ag-caption {
    font-size: 0.85rem;
    color: #757575;
    letter-spacing: 0.05em;
}

/* === Layout Containers === */
.ag-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ag-container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ag-section {
    padding: 6rem 0;
}

.ag-section-alt {
    padding: 6rem 0;
    background-color: #F5F5F5;
}

/* === Navigation === */
#ag-header {
    background: #FFFFFF;
    border-bottom: 1px solid #F5F5F5;
    z-index: 100;
    position: relative;
}

.ag-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.ag-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ag-logo img {
    width: 40px;
    height: 40px;
}

.ag-logo-text {
    font-family: Didot, "Bodoni MT", "Cochin", serif;
    font-size: 1.2rem;
    color: #333333;
    letter-spacing: 0.1em;
}

.ag-nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.ag-nav-links li a {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #333333;
    transition: color 0.3s ease;
    position: relative;
}

.ag-nav-links li a:hover,
.ag-nav-links li a.ag-active {
    color: #757575;
}

.ag-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #BDBDBD;
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.ag-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.ag-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #333333;
    transition: all 0.3s ease;
}

.ag-hamburger.ag-open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.ag-hamburger.ag-open span:nth-child(2) {
    opacity: 0;
}

.ag-hamburger.ag-open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Navigation Overlay */
.ag-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.05);
}

.ag-mobile-nav.ag-open {
    right: 0;
}

.ag-mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ag-mobile-nav-links li a {
    font-size: 1.2rem;
    color: #333333;
    letter-spacing: 0.05em;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F5F5F5;
}

.ag-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
}

.ag-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ag-nav-overlay.ag-open {
    opacity: 1;
    visibility: visible;
}

/* === Hero Section === */
#ag-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
}

.ag-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    display: flex;
    align-items: flex-end;
    padding: 6rem 2rem;
}

.ag-hero-content {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    color: #FFFFFF;
}

.ag-hero-content h2 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.ag-hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.7;
}

.ag-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

/* === Buttons === */
.ag-btn {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 2rem;
    border: none;
    background: none;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Inter, sans-serif;
}

.ag-btn-outline {
    border: 1px solid #333333;
}

.ag-btn-outline:hover {
    background: #333333;
    color: #FFFFFF;
}

.ag-btn-white {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

.ag-btn-white:hover {
    background: #FFFFFF;
    color: #333333;
}

.ag-btn-dark {
    background: #333333;
    color: #FFFFFF;
    border: 1px solid #333333;
}

.ag-btn-dark:hover {
    background: #555555;
    border-color: #555555;
}

/* === Curator Tour Section === */
.ag-curator-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ag-curator-scroll::-webkit-scrollbar {
    display: none;
}

.ag-curator-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #FFFFFF;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ag-curator-card:hover {
    transform: translateY(-4px);
}

.ag-curator-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ag-curator-card-body {
    padding: 1.5rem 0;
}

.ag-curator-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.ag-curator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ag-curator-name {
    font-size: 0.8rem;
    color: #757575;
    letter-spacing: 0.05em;
}

/* === Grid Layouts === */
.ag-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ag-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ag-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* === Photographer Cards === */
.ag-photographer-card {
    text-align: center;
    padding: 2rem;
}

.ag-photographer-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

.ag-photographer-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ag-photographer-card p {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.6;
}

/* === Submission Form === */
.ag-form-group {
    margin-bottom: 1.5rem;
}

.ag-form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #757575;
    margin-bottom: 0.5rem;
}

.ag-input {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid #BDBDBD;
    font-size: 1rem;
    font-family: Inter, sans-serif;
    color: #333333;
    background: transparent;
    transition: border-color 0.3s ease;
    outline: none;
}

.ag-input:focus {
    border-bottom-color: #333333;
}

.ag-textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid #BDBDBD;
    font-size: 1rem;
    font-family: Inter, sans-serif;
    color: #333333;
    background: transparent;
    resize: vertical;
    min-height: 120px;
    outline: none;
}

.ag-textarea:focus {
    border-bottom-color: #333333;
}

/* === Comments / Testimonials === */
.ag-comment-card {
    padding: 2rem;
    border-left: 2px solid #BDBDBD;
    margin-bottom: 2rem;
}

.ag-comment-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333333;
}

.ag-comment-author {
    font-size: 0.85rem;
    color: #757575;
    letter-spacing: 0.05em;
}

/* === Limited Edition Cards === */
.ag-edition-card {
    background: #FFFFFF;
    transition: transform 0.3s ease;
}

.ag-edition-card:hover {
    transform: translateY(-4px);
}

.ag-edition-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.ag-edition-info {
    padding: 1.5rem 0;
}

.ag-edition-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.ag-edition-meta {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 0.8rem;
}

.ag-edition-price {
    font-size: 1.2rem;
    font-family: Didot, "Bodoni MT", serif;
    margin-bottom: 1rem;
}

/* === Membership Section === */
.ag-membership-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ag-tier-card {
    padding: 3rem 2rem;
    border: 1px solid #F5F5F5;
    text-align: center;
    transition: border-color 0.3s ease;
}

.ag-tier-card:hover {
    border-color: #BDBDBD;
}

.ag-tier-name {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 1rem;
}

.ag-tier-price {
    font-size: 2.5rem;
    font-family: Didot, "Bodoni MT", serif;
    margin-bottom: 0.5rem;
}

.ag-tier-period {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 2rem;
}

.ag-tier-features {
    list-style: none;
    margin-bottom: 2rem;
}

.ag-tier-features li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F5F5F5;
    color: #333333;
}

/* === Venue Section === */
.ag-venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ag-venue-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.ag-venue-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ag-venue-details {
    list-style: none;
    margin: 1.5rem 0;
}

.ag-venue-details li {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
}

/* === APP Download Section === */
.ag-app-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ag-app-mockup img {
    max-width: 300px;
    margin: 0 auto;
}

.ag-app-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ag-app-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid #333333;
    font-size: 0.85rem;
    color: #333333;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.ag-app-badge:hover {
    background: #333333;
    color: #FFFFFF;
}

/* === Gallery Etiquette === */
.ag-etiquette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ag-etiquette-item {
    padding: 2rem;
    border: 1px solid #F5F5F5;
}

.ag-etiquette-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.ag-etiquette-item p {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.7;
}

/* === Footer === */
#ag-footer {
    background: #FFFFFF;
    border-top: 1px solid #F5F5F5;
    padding: 4rem 0 2rem;
}

.ag-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.ag-footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 1.5rem;
}

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

.ag-footer-links li {
    margin-bottom: 0.8rem;
}

.ag-footer-links li a {
    font-size: 0.9rem;
    color: #333333;
}

.ag-footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ag-footer-social a {
    font-size: 0.9rem;
    color: #333333;
    letter-spacing: 0.05em;
}

.ag-footer-bottom {
    border-top: 1px solid #F5F5F5;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ag-footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ag-footer-legal span {
    font-size: 0.8rem;
    color: #757575;
}

.ag-footer-copyright {
    font-size: 0.8rem;
    color: #757575;
}

.ag-age-badge {
    display: inline-block;
    border: 1px solid #BDBDBD;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    color: #757575;
    letter-spacing: 0.05em;
}

/* === Section Headers === */
.ag-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ag-section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.ag-section-header p {
    font-size: 1rem;
    color: #757575;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.ag-section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #BDBDBD;
    margin-bottom: 0.8rem;
    font-family: Inter, sans-serif;
}

/* === Image Gallery Grid === */
.ag-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ag-gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

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

.ag-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* === Lightbox === */
.ag-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ag-lightbox.ag-active {
    display: flex;
    opacity: 1;
}

.ag-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.ag-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
}

/* === Inner Page Styles === */
.ag-page-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.ag-page-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-page-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #FFFFFF;
}

.ag-page-hero-overlay h1 {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.ag-page-hero-overlay p {
    font-size: 1rem;
    opacity: 0.85;
}

.ag-content-section {
    padding: 4rem 0;
}

.ag-prose {
    max-width: 800px;
    margin: 0 auto;
}

.ag-prose p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 2;
    color: #333333;
}

.ag-prose h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.ag-prose h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

/* === Lazy Load Animation === */
.ag-lazy {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ag-lazy.ag-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === APP Page Specific === */
.ag-app-page-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #F5F5F5;
}

.ag-app-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ag-app-feature {
    text-align: center;
    padding: 2rem;
}

.ag-app-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.ag-app-feature p {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.6;
}

/* === Responsive: Mobile First === */

/* 360px - Mobile */
@media (max-width: 767px) {
    .ag-heading-xl { font-size: 2rem; }
    .ag-heading-lg { font-size: 1.8rem; }
    .ag-heading-md { font-size: 1.4rem; }

    .ag-container, .ag-container-narrow {
        padding: 0 1.2rem;
    }

    .ag-section { padding: 3rem 0; }
    .ag-section-alt { padding: 3rem 0; }

    .ag-nav-links { display: none; }
    .ag-hamburger { display: flex; }

    .ag-hero-content h2 { font-size: 1.8rem; }
    .ag-hero-content p { font-size: 0.95rem; }

    .ag-grid-2, .ag-grid-3, .ag-grid-4 {
        grid-template-columns: 1fr;
    }

    .ag-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .ag-gallery-item img { height: 200px; }

    .ag-membership-tiers {
        grid-template-columns: 1fr;
    }

    .ag-venue-grid {
        grid-template-columns: 1fr;
    }

    .ag-app-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ag-app-mockup img {
        max-width: 200px;
    }

    .ag-app-badges {
        justify-content: center;
    }

    .ag-etiquette-grid {
        grid-template-columns: 1fr;
    }

    .ag-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ag-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ag-section-header h2 { font-size: 1.6rem; }

    .ag-page-hero { height: 40vh; min-height: 300px; }
    .ag-page-hero-overlay h1 { font-size: 1.8rem; }

    .ag-curator-card { flex: 0 0 260px; }
    .ag-curator-card img { height: 300px; }

    .ag-photographer-card img {
        width: 120px;
        height: 120px;
    }

    .ag-app-features {
        grid-template-columns: 1fr;
    }

    .ag-comment-card { padding: 1.5rem; }
}

/* 768px - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .ag-nav-links { display: none; }
    .ag-hamburger { display: flex; }

    .ag-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ag-grid-4 { grid-template-columns: repeat(2, 1fr); }

    .ag-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-gallery-item img { height: 300px; }

    .ag-membership-tiers { grid-template-columns: 1fr 1fr; }

    .ag-etiquette-grid { grid-template-columns: repeat(2, 1fr); }

    .ag-footer-grid { grid-template-columns: repeat(2, 1fr); }

    .ag-app-features { grid-template-columns: repeat(2, 1fr); }
}

/* 1024px - Desktop */
@media (min-width: 1024px) {
    .ag-hamburger { display: none; }
    .ag-nav-links { display: flex; }
}

/* 1440px - Large Desktop */
@media (min-width: 1440px) {
    .ag-container {
        padding: 0 3rem;
    }
}

/* === Utility Classes === */
.ag-text-center { text-align: center; }
.ag-text-left { text-align: left; }
.ag-mt-1 { margin-top: 0.5rem; }
.ag-mt-2 { margin-top: 1rem; }
.ag-mt-3 { margin-top: 2rem; }
.ag-mt-4 { margin-top: 3rem; }
.ag-mb-1 { margin-bottom: 0.5rem; }
.ag-mb-2 { margin-bottom: 1rem; }
.ag-mb-3 { margin-bottom: 2rem; }
.ag-mb-4 { margin-bottom: 3rem; }

/* === Print Styles === */
@media print {
    #ag-header, #ag-footer, .ag-hamburger, .ag-mobile-nav, .ag-nav-overlay {
        display: none;
    }
    body { color: #000; }
    .ag-section { padding: 2rem 0; }
}
