/* ============================================================ index.css - Homepage-specific styles ============================================================ */ .page-shell { padding-bottom: 56px; } .hero, .lottery-nav, .draw, .content, .resource-section, .site-footer { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; } .hero { padding-top: 28px; } .hero__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) 360px; gap: 22px; } .hero__main, .hero-card, .draw, .sidebar-card, .article-cluster, .resource-card, .ad-group { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); } .hero__main, .hero-card, .lottery-nav, .draw, .content__rail, .content__main, .content__ads, .resource-card { animation: cxz-fade-up .58s ease both; } .hero-card { animation-delay: .06s; } .lottery-nav { animation-delay: .1s; } .draw { animation-delay: .14s; } .content__rail, .content__main, .content__ads { animation-delay: .18s; } .resource-card:nth-child(2) { animation-delay: .08s; } .hero__main { padding: 20px; background: radial-gradient(circle at top right, rgba(253, 185, 51, .14), transparent 22%), radial-gradient(circle at bottom left, rgba(29, 79, 159, .12), transparent 28%), rgba(255, 255, 255, .96); } .panel-head, .draw__header, .content-head, .resource-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .panel-head { margin-bottom: 18px; align-items: flex-start; } .panel-head__eyebrow, .content-head__eyebrow { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; color: var(--navy); background: rgba(16, 43, 106, .08); font-size: 12px; font-weight: 700; letter-spacing: .08em; } .panel-head h1, .content-head h2 { margin: 0; font-size: 34px; line-height: 1.1; color: var(--navy-deep); } .hero__history-btn, .draw__action, .modal-search-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: none; border-radius: 999px; color: var(--navy-deep); background: linear-gradient(135deg, #ffd26b, var(--gold)); font-weight: 700; cursor: pointer; box-shadow: 0 12px 26px rgba(253, 185, 51, .25); transition: .24s ease; } .hero__history-btn img, .draw__action img, .resource-card__head img, .hero-card__title img { width: 18px; height: 18px; } .hero__carousel-wrap { height: 420px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #0f2b68, #12367c, #164d86); } .hero__carousel-wrap .layui-carousel, .hero__carousel-wrap .layui-carousel>div, .hero__carousel-wrap .layui-carousel>div>div { height: 100% !important; } .banner-link, .banner-fallback { display: block; width: 100%; height: 100%; } .carousel-img { width: 100%; height: 100%; object-fit: cover; } .banner-fallback { position: relative; background: radial-gradient(circle at 15% 20%, rgba(253, 185, 51, .26), transparent 18%), radial-gradient(circle at 80% 80%, rgba(102, 175, 255, .2), transparent 24%), linear-gradient(135deg, #0b1f4f 0%, #102b6a 50%, #185884 100%); } .banner-fallback__content { position: absolute; inset: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: var(--white); } .banner-fallback__content span { font-size: 14px; color: rgba(255, 255, 255, .68); } .banner-fallback__content strong { font-size: 34px; line-height: 1.16; max-width: 520px; } .hero__meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; } .hero-meta { padding: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(16, 43, 106, .05), rgba(16, 43, 106, .02)); border: 1px solid rgba(16, 43, 106, .08); } .hero-meta span, .hero-meta em { display: block; } .hero-meta span { margin-bottom: 10px; color: var(--text-soft); font-size: 12px; } .hero-meta strong { display: block; color: var(--navy); font-size: 24px; line-height: 1.1; } .hero-meta em { margin-top: 8px; color: var(--text-soft); font-style: normal; font-size: 12px; } .hero__side { /* display: grid; grid-template-rows: 1fr 1fr; gap: 22px; */ } .hero-card { padding: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96)); } .hero-card--intro::before, .hero-card--focus::before, .draw::before, .resource-card::before, .ad-group::before, .article-cluster::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), #ff8d52, #4a92ff); } .hero-card__tag { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(16, 43, 106, .08); color: var(--navy); font-size: 12px; font-weight: 700; } .hero-card__date { color: var(--text-soft); font-size: 13px; } .hero-card--intro h2 { margin: 18px 0 12px; font-size: 30px; line-height: 1.12; color: var(--navy-deep); } .hero-card--intro p, .content-head p, .draw__title p { margin: 0; color: var(--text-soft); line-height: 1.72; font-size: 14px; } .hero-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; } .hero-stat { padding: 16px; border-radius: 18px; background: rgba(16, 43, 106, .05); border: 1px solid rgba(16, 43, 106, .06); text-align: center; } .hero-stat strong { display: block; color: var(--navy); font-size: 28px; line-height: 1; } .hero-stat span { display: block; margin-top: 8px; color: var(--text-soft); font-size: 12px; } .hero-card__title { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-deep); font-size: 18px; font-weight: 700; } .hero-focus-list { display: grid; gap: 12px; margin-top: 18px; } .hero-focus-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(16, 43, 106, .04), rgba(16, 43, 106, .02)); border: 1px solid rgba(16, 43, 106, .06); animation: cxz-fade-up .42s ease both; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; } .hero-focus-item:nth-child(2) { animation-delay: .04s; } .hero-focus-item:nth-child(3) { animation-delay: .08s; } .hero-focus-item:nth-child(4) { animation-delay: .12s; } .hero-focus-item:hover { transform: translateX(4px); border-color: rgba(29, 79, 159, .18); background: linear-gradient(180deg, rgba(16, 43, 106, .07), rgba(255, 255, 255, .92)); box-shadow: 0 14px 28px rgba(16, 43, 106, .11); } .hero-focus-item:hover img { transform: scale(1.06) rotate(-3deg); } .hero-focus-item img { width: 44px; height: 44px; transition: transform .22s ease; } .hero-focus-item strong, .draw-card__title strong, .lottery-nav__text strong, .article-cluster__title strong { display: flex; justify-content: center; color: var(--navy-deep); font-size: 16px; } .hero-focus-item span, .draw-card__title span, .lottery-nav__text span, .article-cluster__title span { display: block; margin-top: 4px; color: var(--text-soft); font-size: 12px; } .hero-focus-empty, .resource-empty, .notice-item--empty, .article-item--empty, .ad-group--empty { color: var(--text-soft); text-align: center; padding: 22px 16px; } .section-divider { width: min(var(--max-width), calc(100% - 48px)); margin: 28px auto 18px; padding: 16px 24px; border-radius: 22px; color: var(--white); box-shadow: 0 22px 40px rgba(16, 43, 106, .16); } .section-divider span { display: block; font-size: 22px; font-weight: 800; } .section-divider p { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .82); } .section-divider--blue { background: linear-gradient(90deg, #102b6a, #164f88, #1d719a); } .section-divider--gold { background: linear-gradient(90deg, #102b6a, #775207, #c18515); } .section-divider--violet { background: linear-gradient(90deg, #102b6a, #5a2f82, #8a4bb1); } .lottery-nav__inner { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; } .lottery-nav__card { display: flex; flex-direction: column; justify-content: center; gap: 12px; align-items: center; padding: 18px 16px; border-radius: 22px; border: 1px solid rgba(16, 43, 106, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .96)); box-shadow: var(--shadow-soft); transition: .24s ease; } .lottery-nav__card:hover, .trend-item:hover, .draw-card:hover, .article-cluster:hover, .resource-link:hover, .ad-item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(16, 43, 106, .13); } .lottery-nav__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(16, 43, 106, .05); } .lottery-nav__icon img { width: 34px; height: 34px; } .lottery-nav__card em { color: var(--navy); font-style: normal; font-size: 13px; font-weight: 700; } .draw { margin-top: 18px; padding: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 248, 255, .98)); } .draw__title { display: inline-flex; align-items: center; gap: 14px; } .draw__title img { width: 26px; height: 26px; } .draw__title strong { display: block; color: var(--navy-deep); font-size: 24px; } .draw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; } .draw-card { padding: 18px; border-radius: 22px; border: 1px solid rgba(16, 43, 106, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(245, 248, 255, .95)); box-shadow: var(--shadow-soft); transition: .24s ease; } .draw-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .draw-card__title { display: flex; align-items: center; gap: 12px; } .draw-card__title img { width: 40px; height: 40px; } .draw-card__link { width: 60px; height: 30px; background: linear-gradient(90deg, #102b6a, #164f88, #1d719a); display: flex; justify-content: center; align-items: center; border-radius: 80px; color: var(--white); font-size: 12px; font-weight: 700; } .draw-card__link:hover { color: #306ee2; } .draw-card__balls { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 14px; min-height: 74px; align-content: flex-start; } .draw-card__balls--compact { gap: 2.8px; } .draw-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed rgba(16, 43, 106, .1); } .draw-card__date { display: flex; flex-direction: column; gap: 4px; } .draw-card__foot span { color: var(--text-soft); font-size: 12px; } .draw-card__foot strong { color: var(--navy); font-size: 13px; } .draw-card__link--button { display: inline-flex; align-items: center; justify-content: center; min-width: 86px; padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, rgba(16, 43, 106, .1), rgba(16, 43, 106, .04)); border: 1px solid rgba(16, 43, 106, .14); box-shadow: 0 6px 16px rgba(16, 43, 106, .08); white-space: nowrap; transition: .22s ease; } .draw-card__link--button:hover { color: var(--white); background: linear-gradient(135deg, var(--navy), #174892); border-color: transparent; } .content { margin-top: 24px; } .content__inner { display: grid; grid-template-columns: 280px minmax(0, 1fr) 332px; gap: 22px; align-items: start; } .sidebar-card { margin-bottom: 18px; } .sidebar-card__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: var(--white); font-size: 18px; font-weight: 800; } .sidebar-card__more { color: var(--gold); font-size: 13px; font-weight: 700; } .sidebar-card__head--navy { background: linear-gradient(90deg, #102b6a, #164985); } .sidebar-card__head--gold { background: linear-gradient(90deg, #9b6700, #c48a10, #f0b227); } .sidebar-card__head--teal { background: linear-gradient(90deg, #103b6a, #167485, #1c8b8f); } .notice-list { margin: 0; padding: 10px 18px 16px; list-style: none; } .notice-item { padding: 12px 0; border-bottom: 1px dashed rgba(16, 43, 106, .12); animation: cxz-fade-up .36s ease both; transition: padding .2s ease, background .2s ease; } .notice-item:nth-child(2) { animation-delay: .04s; } .notice-item:nth-child(3) { animation-delay: .08s; } .notice-item:nth-child(4) { animation-delay: .12s; } .notice-item:nth-child(5) { animation-delay: .16s; } .notice-item:hover { padding-left: 6px; background: linear-gradient(90deg, rgba(253, 185, 51, .12), transparent); } .notice-item:last-child { border-bottom: none; } .notice-item a { display: block; width: 100%; color: var(--text); font-size: 14px; line-height: 1.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 16px; position: relative; transition: color .2s ease; } .notice-item:hover a { color: var(--navy); } .notice-item a::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ff9748); transition: transform .2s ease, box-shadow .2s ease; } .notice-item:hover a::before { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(253, 185, 51, .14); } .qrcode-box { padding: 24px; text-align: center; } .qrcode-box img { width: 188px; height: 188px; margin: 0 auto 14px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #f6f8fd); border: 1px solid rgba(16, 43, 106, .08); } .qrcode-box p { margin: 0; color: var(--text-soft); font-size: 13px; } .trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; } .trend-item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 18px; background: rgba(16, 43, 106, .05); border: 1px solid rgba(16, 43, 106, .06); } .trend-item img { width: 30px; height: 30px; } .trend-item span { color: var(--text); font-size: 13px; font-weight: 700; } .combo-tool-card { margin-top: 34px; } .combo-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; } .combo-tool-item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 18px; background: rgba(16, 43, 106, .05); border: 1px solid rgba(16, 43, 106, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; } .combo-tool-item:hover { transform: translateY(-2px); border-color: rgba(239, 159, 15, .38); box-shadow: 0 12px 26px rgba(16, 43, 106, .12); } .combo-tool-item img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; } .combo-tool-item span { color: var(--text); font-size: 13px; font-weight: 800; } .content-head { margin-bottom: 18px; } .content-head--compact h2 { font-size: 26px; } .article-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .article-cluster__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 20px; background: linear-gradient(90deg, rgba(16, 43, 106, .98), rgba(18, 65, 124, .96)); } .article-cluster__title { display: flex; align-items: center; gap: 12px; } .article-cluster__title img { width: 36px; height: 36px; } .article-cluster__title strong { color: var(--white); font-size: 20px; } .article-cluster__title span { color: rgba(255, 255, 255, .68); font-size: 12px; } .article-cluster__more { color: var(--gold); font-size: 13px; font-weight: 700; } .article-cluster__list { list-style: none; margin: 0; padding: 10px 20px 18px; } .article-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(16, 43, 106, .1); transition: transform .2s ease, background .2s ease, padding .2s ease; } .article-item:hover { padding-left: 6px; background: linear-gradient(90deg, rgba(16, 43, 106, .045), transparent); transform: translateX(2px); } .article-item:last-child { border-bottom: none; } .article-item__icon { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; } .article-item__link { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; } .ad-group { margin-bottom: 18px; } .ad-group__head { padding: 16px 18px; color: var(--navy-deep); font-size: 18px; font-weight: 800; background: linear-gradient(180deg, rgba(16, 43, 106, .04), rgba(255, 255, 255, .95)); } .ad-group__grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px; } .ad-item { display: block; border-radius: 18px; overflow: hidden; border: 1px solid rgba(16, 43, 106, .08); background: #f7f9fe; transition: transform .24s ease, box-shadow .24s ease; } .ad-item img { width: 139px; height: 94px; object-fit: cover; background: #fff; transition: .26s ease; } .resource-section { margin-top: 10px; } .resource-section__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .resource-card { padding: 20px; } .resource-card__head { margin-bottom: 16px; } .resource-card__head h2 { margin: 0; color: var(--navy-deep); font-size: 24px; } .resource-card__body { display: flex; flex-wrap: wrap; gap: 12px; } .resource-link { display: inline-flex; align-items: center; gap: 10px; min-width: calc(50% - 6px); padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(16, 43, 106, .05), rgba(255, 255, 255, .96)); border: 1px solid rgba(16, 43, 106, .08); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; } .resource-link:hover { border-color: rgba(29, 79, 159, .2); } @keyframes cxz-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } } @keyframes cxz-ball-pop { 0% { opacity: 0; transform: scale(.72); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } } .draw-card .ball, .article-item__icon { animation: cxz-ball-pop .36s ease both; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; } } .resource-link img { width: 16px; height: 16px; } .resource-link span { color: var(--text); font-size: 14px; } .FooterPublicFriendship { margin-top: 18px; padding: 16px; border-radius: 20px; background: rgba(16, 43, 106, .03); border: 1px solid rgba(16, 43, 106, .06); } .FooterPublicFriendship .other-title { margin-bottom: 10px; color: var(--navy); font-weight: 700; } .FooterPublicFriendship .link-listUl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; } .FooterPublicFriendship .link-listLi a { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(16, 43, 106, .08); color: var(--text); font-size: 13px; }