/* ============================================================
   燕子云摄影网 - 首页设计系统
   风格: 现代极简白底 (500px/Unsplash inspired)
   ============================================================ */

:root {
    --yzy-primary: #2563eb;
    --yzy-primary-light: #3b82f6;
    --yzy-accent: #f59e0b;
    --yzy-bg: #ffffff;
    --yzy-surface: #f8fafc;
    --yzy-surface-alt: #f1f5f9;
    --yzy-text: #1e293b;
    --yzy-text-secondary: #64748b;
    --yzy-text-muted: #94a3b8;
    --yzy-border: #e2e8f0;
    --yzy-radius: 12px;
    --yzy-radius-sm: 8px;
    --yzy-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --yzy-shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --yzy-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --yzy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --yzy-font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    --yzy-transition: .3s cubic-bezier(.4,0,.2,1);
}

/* === Reset & Base === */
.yzy-home { font-family: var(--yzy-font); color: var(--yzy-text); background: var(--yzy-bg); line-height: 1.6; overflow-x: hidden; }
.yzy-home * { box-sizing: border-box; }
.yzy-home a { color: inherit; text-decoration: none; transition: color var(--yzy-transition); }
.yzy-home a:hover { color: var(--yzy-primary); }
.yzy-home img { max-width: 100%; height: auto; display: block; }
.yzy-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Section Head === */
.yzy-section { padding: 72px 0; }
.yzy-section--surface { background: var(--yzy-surface); }
.yzy-section--tight { padding: 40px 0; }
.yzy-sec-head { margin-bottom: 40px; }
.yzy-sec-head .yzy-sec-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--yzy-primary); background: rgba(37,99,235,.08); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.yzy-sec-head h2 { font-family: var(--yzy-font-serif); font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--yzy-text); }
.yzy-sec-head h2 a { color: var(--yzy-text); }
.yzy-sec-head h2 a:hover { color: var(--yzy-primary); }
.yzy-sec-head p { font-size: 15px; color: var(--yzy-text-secondary); margin: 0; }
.yzy-sec-head .yzy-sec-more { float: right; font-size: 14px; color: var(--yzy-primary); font-weight: 500; margin-top: -28px; }
.yzy-sec-head .yzy-sec-more:hover { text-decoration: underline; }

/* === Header / Navbar === */
.yzy-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all var(--yzy-transition); }
.yzy-header.scrolled { border-bottom-color: var(--yzy-border); box-shadow: var(--yzy-shadow); }
.yzy-header-inner { display: flex; align-items: center; height: 64px; gap: 20px; }
.yzy-logo { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.yzy-logo img { height: 40px; width: auto; display: block; }
.yzy-nav { display: flex; gap: 2px; flex: 1; }
.yzy-nav a { padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--yzy-text-secondary); border-radius: 6px; transition: all var(--yzy-transition); white-space: nowrap; flex-shrink: 0; }
.yzy-nav a:hover, .yzy-nav a.active { color: var(--yzy-primary); background: rgba(37,99,235,.06); }
.yzy-header-actions { display: flex; align-items: center; gap: 12px; }
.yzy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; font-size: 14px; font-weight: 500; border-radius: 8px; border: none; cursor: pointer; transition: all var(--yzy-transition); }
.yzy-btn--primary { background: var(--yzy-primary); color: #fff; }
.yzy-btn--primary:hover { background: var(--yzy-primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--yzy-shadow-md); }
.yzy-btn--ghost { background: transparent; color: var(--yzy-text-secondary); border: 1px solid var(--yzy-border); }
.yzy-btn--ghost:hover { border-color: var(--yzy-primary); color: var(--yzy-primary); }
.yzy-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.yzy-hamburger span { display: block; width: 20px; height: 2px; background: var(--yzy-text); margin: 5px 0; transition: var(--yzy-transition); }

/* === Hero === */
.yzy-hero { position: relative; height: 70vh; min-height: 480px; max-height: 720px; overflow: hidden; margin-top: 64px; }
.yzy-hero .yzy-hero-swiper { width: 100%; height: 100%; }
.yzy-hero .swiper-slide { position: relative; }
.yzy-hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.yzy-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.15) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 60px; pointer-events: none; }
.yzy-hero-title { font-family: var(--yzy-font-serif); font-size: 42px; font-weight: 700; color: #fff; margin: 0 0 12px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.yzy-hero-sub { font-size: 16px; color: rgba(255,255,255,.85); margin: 0; max-width: 600px; }
.yzy-hero .swiper-pagination-bullet { background: #fff; opacity: .5; }
.yzy-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--yzy-primary); }

/* === News Ticker === */
.yzy-ticker { background: var(--yzy-surface); border-bottom: 1px solid var(--yzy-border); padding: 14px 0; overflow: hidden; }
.yzy-ticker-inner { display: flex; gap: 24px; animation: yzy-scroll-x 30s linear infinite; }
.yzy-ticker-inner:hover { animation-play-state: paused; }
.yzy-ticker-item { flex-shrink: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--yzy-text-secondary); }
.yzy-ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yzy-primary); flex-shrink: 0; }
.yzy-ticker-item a:hover { color: var(--yzy-primary); }
@keyframes yzy-scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === News Grid (Main Section) === */
.yzy-news-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.yzy-news-feature { position: relative; border-radius: var(--yzy-radius); overflow: hidden; height: 100%; min-height: 420px; }
.yzy-news-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.yzy-news-feature:hover img { transform: scale(1.03); }
.yzy-news-feature-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.yzy-news-feature-overlay .tag { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--yzy-primary); padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; width: fit-content; }
.yzy-news-feature-overlay h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.4; }
.yzy-news-feature-overlay p { font-size: 14px; color: rgba(255,255,255,.75); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yzy-news-list { display: flex; flex-direction: column; gap: 20px; }
.yzy-news-item { display: flex; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--yzy-border); }
.yzy-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.yzy-news-item-thumb { width: 140px; height: 94px; border-radius: var(--yzy-radius-sm); overflow: hidden; flex-shrink: 0; }
.yzy-news-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yzy-news-item:hover .yzy-news-item-thumb img { transform: scale(1.05); }
.yzy-news-item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.yzy-news-item-body h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yzy-news-item-body h4 a:hover { color: var(--yzy-primary); }
.yzy-news-item-body .meta { font-size: 12px; color: var(--yzy-text-muted); }

/* === Tabs === */
.yzy-tabs { display: flex; gap: 4px; margin-bottom: 32px; background: var(--yzy-surface); padding: 4px; border-radius: 10px; width: fit-content; }
.yzy-tabs .tab { padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--yzy-text-secondary); border-radius: 8px; cursor: pointer; transition: all var(--yzy-transition); border: none; background: none; }
.yzy-tabs .tab.active { background: #fff; color: var(--yzy-primary); box-shadow: var(--yzy-shadow); }
.yzy-tab-panel { display: none; }
.yzy-tab-panel.active { display: block; }

/* === Contest Cards === */
.yzy-contest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yzy-contest-card { background: #fff; border-radius: var(--yzy-radius); overflow: hidden; border: 1px solid var(--yzy-border); transition: all var(--yzy-transition); }
.yzy-contest-card:hover { transform: translateY(-4px); box-shadow: var(--yzy-shadow-lg); border-color: transparent; }
.yzy-contest-card-img { position: relative; height: 200px; overflow: hidden; }
.yzy-contest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yzy-contest-card:hover .yzy-contest-card-img img { transform: scale(1.05); }
.yzy-contest-card-img .status { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; color: #fff; }
.yzy-contest-card-img .status--open { background: #10b981; }
.yzy-contest-card-img .status--closed { background: var(--yzy-text-muted); }
.yzy-contest-card-body { padding: 20px; }
.yzy-contest-card-body h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.yzy-contest-card-body h3 a:hover { color: var(--yzy-primary); }
.yzy-contest-card-body .desc { font-size: 13px; color: var(--yzy-text-secondary); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yzy-contest-card-body .info { font-size: 12px; color: var(--yzy-text-muted); }

/* === Travel / Horizontal Scroll === */
.yzy-travel-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.yzy-travel-scroll::-webkit-scrollbar { height: 4px; }
.yzy-travel-scroll::-webkit-scrollbar-thumb { background: var(--yzy-border); border-radius: 4px; }
.yzy-travel-card { flex-shrink: 0; width: 340px; scroll-snap-align: start; border-radius: var(--yzy-radius); overflow: hidden; position: relative; height: 240px; }
.yzy-travel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yzy-travel-card:hover img { transform: scale(1.05); }
.yzy-travel-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.yzy-travel-card-overlay h4 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.yzy-travel-card-overlay span { font-size: 12px; color: rgba(255,255,255,.7); }

/* === Works Grid === */
.yzy-work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yzy-work-item { position: relative; border-radius: var(--yzy-radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.yzy-work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yzy-work-item:hover img { transform: scale(1.06); }
.yzy-work-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: all var(--yzy-transition); }
.yzy-work-item:hover .yzy-work-item-overlay { background: rgba(0,0,0,.35); opacity: 1; }
.yzy-work-item-overlay h5 { font-size: 13px; font-weight: 600; color: #fff; margin: 0; transform: translateY(8px); transition: transform var(--yzy-transition); }
.yzy-work-item:hover .yzy-work-item-overlay h5 { transform: translateY(0); }

/* === Partners === */
.yzy-partners { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 40px 0; }
.partner-logo { display: inline-flex; align-items: center; justify-content: center; padding: 20px 36px; background: var(--yzy-bg-card, #fff); border: 1px solid var(--yzy-border); border-radius: 12px; transition: all var(--yzy-transition); }
.partner-logo img { height: 56px; width: auto; opacity: .75; filter: grayscale(.6); transition: all var(--yzy-transition); }
.partner-logo:hover { border-color: var(--yzy-primary, #c8a45c); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.partner-logo:hover img { opacity: 1; filter: grayscale(0); }
.yzy-partners .placeholder { font-size: 14px; color: var(--yzy-text-muted); padding: 12px 24px; border: 1px dashed var(--yzy-border); border-radius: 8px; }

/* === Footer === */
.yzy-footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 64px 0 0; }
.yzy-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.yzy-footer h4 { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 16px; }
.yzy-footer p { font-size: 13px; line-height: 1.8; margin: 0; }
.yzy-footer-links { list-style: none; padding: 0; margin: 0; }
.yzy-footer-links li { margin-bottom: 10px; }
.yzy-footer-links a { font-size: 13px; color: rgba(255,255,255,.6); }
.yzy-footer-links a:hover { color: #fff; }
.yzy-footer-bottom { padding: 24px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }

/* === Animations === */
.yzy-anim { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.yzy-anim.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 1200px) {
    .yzy-container { padding: 0 20px; }
    .yzy-contest-grid { grid-template-columns: repeat(2, 1fr); }
    .yzy-work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .yzy-header-inner { height: 56px; }
    .yzy-nav { display: none; }
    .yzy-hamburger { display: block; }
    .yzy-hero { height: 50vh; min-height: 320px; margin-top: 56px; }
    .yzy-hero-title { font-size: 26px; }
    .yzy-hero-overlay { padding: 24px; }
    .yzy-section { padding: 48px 0; }
    .yzy-sec-head h2 { font-size: 24px; }
    .yzy-news-layout { grid-template-columns: 1fr; }
    .yzy-news-feature { min-height: 280px; }
    .yzy-contest-grid { grid-template-columns: 1fr; }
    .yzy-work-grid { grid-template-columns: repeat(2, 1fr); }
    .yzy-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .yzy-travel-card { width: 280px; height: 200px; }
}
