/* ============================================
   国際古文物鑑定研究院 International Institute of Antiquities Authentication — Premium Jade Appraisal
   Luxury Design System
   ============================================ */

/* === CSS Variables === */
:root {
    --jade-deep: #0a3d2a;
    --jade-primary: #1a6b4a;
    --jade-light: #2d9b6e;
    --jade-pale: #e8f5ee;
    --gold: #c9a84c;
    --gold-light: #dfc36e;
    --gold-dark: #a08530;
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --gray-dark: #555;
    --gray: #888;
    --gray-light: #bbb;
    --cream: #faf8f3;
    --white: #fff;
    --red-error: #c0392b;
    --font-jp: 'Noto Serif JP', serif;
    --font-zh: 'Noto Sans SC', sans-serif;
    --font-en: 'Cormorant Garamond', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-strong: 0 16px 60px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--dark);
    background: var(--cream);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.zh {
    font-family: var(--font-zh);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.jade-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    font-family: var(--font-jp);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    font-weight: 300;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    color: var(--gold);
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
}

.logo-main {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.logo-sub {
    display: block;
    color: var(--gold);
    font-family: var(--font-en);
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    white-space: nowrap;
}

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

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-toggle {
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-jp);
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 3px;
}

.lang-toggle:hover {
    background: rgba(201, 168, 76, 0.25);
    color: var(--gold-light);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 16px 0;
}

.mobile-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.mobile-lang-toggle {
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    font-size: 1rem;
    padding: 10px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-jp);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.mobile-lang-toggle:hover {
    background: rgba(201, 168, 76, 0.25);
    color: var(--gold-light);
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--gold);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 61, 42, 0.6) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    padding: 6px 20px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-title-line {
    display: block;
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.hero-title-line.accent {
    color: var(--gold);
    font-weight: 500;
}

.hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 2;
    margin-top: 24px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 0.88rem;
    font-family: var(--font-jp);
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
}

body.zh .btn {
    font-family: var(--font-zh);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-full {
    width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll span {
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.3; height: 40px; }
}

/* === Brand Promise Bar === */
.stats-bar {
    background: var(--dark);
    padding: 48px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.brand-promise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.promise-icon {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 4px;
    opacity: 0.85;
}

.promise-text {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
}

.promise-sub {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    font-weight: 300;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 56px;
    background: rgba(201, 168, 76, 0.2);
}

/* === Sections === */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 5px 18px;
    margin-bottom: 20px;
    font-weight: 400;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

.section-desc {
    max-width: 600px;
    margin: 24px auto 0;
    color: var(--gray-dark);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.9;
}

/* === About Section === */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.95);
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-lead {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--dark);
    font-weight: 300;
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    color: var(--dark);
}

.about-feature p {
    font-size: 0.82rem;
    color: var(--gray-dark);
    font-weight: 300;
    line-height: 1.7;
}

/* === Services Section === */
.services {
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--dark-soft);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 50px 36px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: rgba(201, 168, 76, 0.3);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), var(--dark-soft));
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    padding: 3px 12px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.service-icon {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 24px;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.service-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 28px;
}

.service-price .price {
    color: var(--gold);
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 400;
}

.service-price .price-note {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.service-price-sub {
    margin-top: 8px;
}

.service-price-sub .price {
    font-size: 1.1rem;
}

.service-subtitle {
    color: var(--gold-light) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em;
    margin-bottom: 12px !important;
    opacity: 0.9;
}

.service-desc-en,
.service-desc-zh {
    color: rgba(255,255,255,0.45) !important;
    font-size: 0.75rem !important;
    line-height: 1.6 !important;
    margin-bottom: 8px !important;
}

.service-desc-zh {
    margin-bottom: 20px !important;
}

/* === ① Fees Title (3-language) === */
.fees-title-multilang {
    text-align: center;
    line-height: 1.5;
}

.fees-title-ja {
    display: block;
    color: var(--white);
    font-family: var(--font-jp);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.fees-title-en {
    display: block;
    color: var(--gold);
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.fees-title-zh {
    display: block;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-zh);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* === ② Fees Intro (Org name + description) === */
.fees-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding-top: 10px;
}

.fees-org-name {
    color: var(--gold);
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.fees-intro-texts {
    text-align: center;
}

.fees-intro-ja {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 8px;
}

.fees-intro-en {
    color: rgba(255,255,255,0.5);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 8px;
}

.fees-intro-zh {
    color: rgba(255,255,255,0.45);
    font-family: var(--font-zh);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
}

/* === ⑤ Service Shipping === */
.service-shipping {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* === ⑥ Services Notes / 備考 (3-language) === */
.services-notes {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 32px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 2px;
}

.notes-title {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.notes-lang-block {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.notes-lang-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.notes-list {
    list-style: none;
    counter-reset: notes-counter;
    padding-left: 0;
}

.notes-list li {
    counter-increment: notes-counter;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 4px;
    padding-left: 2em;
    position: relative;
}

.notes-list li::before {
    content: counter(notes-counter) ".";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Responsive for notes & fees intro */
@media (max-width: 768px) {
    .fees-title-ja {
        font-size: 1.5rem;
    }

    .fees-title-en {
        font-size: 1rem;
    }

    .fees-title-zh {
        font-size: 0.85rem;
    }

    .fees-intro {
        margin-bottom: 36px;
        padding: 10px 8px 0;
    }

    .fees-org-name {
        font-size: 0.85rem;
    }

    .fees-intro-ja {
        font-size: 0.8rem;
    }

    .fees-intro-en,
    .fees-intro-zh {
        font-size: 0.75rem;
    }

    .services-notes {
        margin: 30px 16px 0;
        padding: 24px 20px;
    }

    .notes-list li {
        font-size: 0.75rem;
    }

    .service-shipping {
        font-size: 0.7rem !important;
    }
}

/* === Verify Section === */
.verify {
    background: var(--cream);
}

.verify-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 50px;
    box-shadow: var(--shadow-medium);
}

.verify-input-group label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
    margin-bottom: 12px;
    font-weight: 400;
}

.verify-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.verify-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.verify-input-wrapper i {
    padding: 0 16px;
    color: var(--gray);
    font-size: 0.9rem;
}

.verify-input-wrapper input {
    flex: 1;
    padding: 16px 0;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-en);
    letter-spacing: 0.15em;
    color: var(--dark);
    background: transparent;
}

.verify-input-wrapper .btn {
    border-radius: 0;
    padding: 16px 32px;
    white-space: nowrap;
}

.verify-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--gray);
    margin-top: 10px;
    font-weight: 300;
}

/* Verify Result */
.verify-result {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.verify-result.hidden,
.verify-error.hidden,
.verify-loading.hidden {
    display: none;
}

.verify-error {
    margin-top: 30px;
    padding: 24px;
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--red-error);
}

.verify-error i {
    font-size: 1.2rem;
}

.verify-error p {
    font-size: 0.85rem;
    font-weight: 300;
}

.verify-loading {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.verify-loading p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== Authentication Result Card (v9.0) ===== */
.auth-result-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e2dc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Status Banner */
.auth-status-banner {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.auth-status-banner.valid {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-bottom: 2px solid #86efac;
}
.auth-status-banner.invalid {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-bottom: 2px solid #fca5a5;
}
.auth-status-banner.hold {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-bottom: 2px solid #93c5fd;
}
.auth-status-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.auth-status-banner.valid .auth-status-icon {
    background: #16a34a; color: #fff;
    box-shadow: 0 2px 10px rgba(22,163,74,0.3);
}
.auth-status-banner.invalid .auth-status-icon {
    background: #dc2626; color: #fff;
    box-shadow: 0 2px 10px rgba(220,38,38,0.3);
}
.auth-status-banner.hold .auth-status-icon {
    background: #2563eb; color: #fff;
    box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}
.auth-status-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.auth-status-banner.valid .auth-status-text h3 { color: #15803d; }
.auth-status-banner.invalid .auth-status-text h3 { color: #b91c1c; }
.auth-status-banner.hold .auth-status-text h3 { color: #1d4ed8; }
.auth-status-text p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #6b7280;
}

/* Info rows */
.auth-info {
    padding: 24px 28px;
}
.auth-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 13px 0;
    border-bottom: 1px solid #f3f1ed;
}
.auth-info-row:last-child { border-bottom: none; }
.auth-info-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}
.auth-info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}
.auth-cert-number {
    font-family: var(--font-en);
    font-size: 1rem;
    color: #001C58;
    letter-spacing: 0.08em;
}

/* Status badge */
.auth-badge {
    display: inline-block;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.auth-badge.valid { background: #dcfce7; color: #15803d; }
.auth-badge.invalid { background: #fecaca; color: #b91c1c; }
.auth-badge.hold { background: #dbeafe; color: #1d4ed8; }

/* PDF Action Button */
.auth-action {
    padding: 0 28px 24px;
}
.auth-btn-pdf {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #000E2E 0%, #001C58 100%);
    color: #C5A059;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(0,28,88,0.2);
}
.auth-btn-pdf:hover {
    background: linear-gradient(135deg, #001040 0%, #002D8A 100%);
    box-shadow: 0 4px 18px rgba(0,28,88,0.3);
    transform: translateY(-1px);
}
.auth-btn-pdf i {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.auth-btn-main {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.auth-btn-sub {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    margin-top: 2px;
}

/* Footer note */
.auth-footer-note {
    padding: 14px 28px;
    background: #faf9f7;
    border-top: 1px solid #f3f1ed;
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 600px) {
    .auth-status-banner { padding: 16px 18px; gap: 12px; }
    .auth-status-icon { width: 42px; height: 42px; font-size: 1.1rem; }
    .auth-info { padding: 18px; }
    .auth-action { padding: 0 18px 20px; }
    .auth-btn-pdf { padding: 14px 18px; }
    .auth-footer-note { padding: 12px 18px; }
}

/* === Gallery Section === */
.gallery {
    background: var(--dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item-overlay h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.gallery-item-overlay span {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* === Process Section === */
.process {
    background: var(--cream);
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 36px;
    width: 1px;
    height: 100%;
    background: rgba(201, 168, 76, 0.3);
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--gold);
    background: var(--cream);
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--dark);
    margin-bottom: 8px;
    padding-top: 6px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: 300;
    line-height: 1.8;
}

/* === Contact Section === */
.contact {
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.contact-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-top: 4px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--dark-soft);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 300;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font-jp);
    outline: none;
    transition: var(--transition);
}

body.zh .form-group input,
body.zh .form-group select,
body.zh .form-group textarea {
    font-family: var(--font-zh);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* === Footer === */
.footer {
    background: var(--black);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 350px;
}

.footer-links h5 {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* === Modal === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    max-width: 1180px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: modalFadeIn 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.lightbox.hidden {
    display: none;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lightbox-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 20px;
    letter-spacing: 0.08em;
}

/* === Antique Jade Authentication & Analysis Report (Template Engine) === */
/* Template image: 1024×683px  aspect-ratio: 1024/683 ≈ 1.4993 */
.gr-report {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1024 / 683;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    color: #222;
    background: #fff;
    /* Template background image — official CI, no modifications */
    background-image: url('../images/IIAA_Template_v1.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
/* Data overlay layer — same size as .gr-report */
.gr-report .gr-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Data field base — absolute positioned on top of template */
.gr-field {
    position: absolute;
    font-family: 'Noto Sans JP', 'Noto Sans SC', sans-serif;
    overflow: hidden;
    word-break: break-all;
    box-sizing: border-box;
    /* Improve text rendering for print-quality output */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.gr-field-sm { font-size: 0.62em; line-height: 1.4; color: #222; }
.gr-field-xs { font-size: 0.55em; line-height: 1.35; color: #222; }
.gr-field-md { font-size: 0.70em; line-height: 1.4; color: #222; }
.gr-field-lg { font-size: 0.88em; line-height: 1.35; font-weight: 600; }
.gr-field-conclusion { font-size: 0.95em; line-height: 1.35; font-weight: 700; color: #006633; }
.gr-field img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-field-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255,255,255,0.3); }
/* QR code sharp rendering */
.gr-field img[src*="data:"] { image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor; }

/* 管理番号枠（偽造防止シール貼付エリア） */
.gr-field-mgmt-frame {
    position: absolute;
    border: 1.5px dashed #8B7355;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
    box-sizing: border-box;
}
.gr-field-mgmt-frame .mgmt-label {
    font-size: 0.38em;
    color: #8B7355;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 2px;
    text-align: center;
    line-height: 1.2;
}
.gr-field-mgmt-frame .mgmt-number {
    font-family: 'Cormorant Garamond', 'Noto Sans JP', serif;
    font-size: 0.52em;
    font-weight: 700;
    color: #001C58;
    letter-spacing: 0.12em;
    text-align: center;
    line-height: 1.3;
}
.gr-field-mgmt-frame .mgmt-seal-area {
    width: 80%;
    height: 38%;
    border: 1px dashed #bbb;
    border-radius: 2px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-field-mgmt-frame .mgmt-seal-text {
    font-size: 0.3em;
    color: #bbb;
    text-align: center;
    line-height: 1.2;
}

/* Print button */

/* All old .gr-* layout styles removed — now using template image overlay */

.gr-print-btn {
    text-align: center;
    margin-top: 20px;
}

/* Certificate conclusion highlight in preview card */
.cert-conclusion-preview {
    color: #001C58 !important;
}

/* === Animations (scroll reveal) === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title-line {
        font-size: 2.4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cert-body {
        grid-template-columns: 1fr;
    }

    .cert-full-body {
        grid-template-columns: 1fr;
    }

    .cert-full-image {
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }

    .hero-title-line {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-scroll {
        display: none;
    }

    .stats-bar .container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 140px;
    }

    .promise-icon {
        font-size: 1.2rem;
    }

    .promise-text {
        font-size: 0.82rem;
    }

    .promise-sub {
        font-size: 0.65rem;
    }

    .section {
        padding: 80px 0;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .verify-box {
        padding: 30px 20px;
    }

    .verify-input-wrapper {
        flex-direction: column;
        border: none;
    }

    .verify-input-wrapper input {
        border: 1px solid #ddd;
        padding: 14px 16px;
        width: 100%;
    }

    .verify-input-wrapper i {
        display: none;
    }

    .verify-input-wrapper .btn {
        width: 100%;
        margin-top: 10px;
    }

    .cert-details {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .nav-container {
        padding: 0 20px;
    }

}

@media (max-width: 768px) {
    /* Certificate: on mobile, keep aspect ratio but allow scroll */
    .gr-report { font-size: 8px; }
    .modal-content.certificate-modal { padding: 12px 8px; }
}

/* === Print Styles === */
@media print {
    /* === Hide EVERYTHING except the certificate modal === */
    body > *:not(#certModal):not(#previewModal) {
        display: none !important;
    }

    /* Also hide by specific selectors for safety */
    #preloader,
    .navbar,
    .hero,
    .stats-bar,
    .section,
    .about,
    .services,
    .verify,
    .gallery,
    .process,
    .contact,
    .footer,
    .mobile-menu,
    #lightbox {
        display: none !important;
    }

    /* Modal: make it fill the page naturally */
    #certModal {
        display: block !important;
        position: static !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    #certModal .modal-overlay {
        display: none !important;
    }

    #certModal .modal-close {
        display: none !important;
    }

    #certModal .modal-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        animation: none !important;
    }

    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    html {
        overflow: visible !important;
    }

    /* === Certificate Print — Fit to 1 page landscape A4 === */
    @page {
        size: A4 landscape;
        margin: 6mm;
    }

    .gr-report {
        max-width: 100%;
        /* A4 landscape printable area, maintaining template image ratio (1024:683) */
        width: 285mm;
        height: 190.1mm; /* 285mm / (1024/683) = 190.07mm — fits within 198mm */
        aspect-ratio: 1024 / 683;
        font-size: 9px;
        margin: 0 auto;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    .gr-print-btn { display: none !important; }
}