/*
 Theme Name: Kadence Child
 Template: kadence
 Description: This Theme is a Child theme of Kadence, made by Steve.
*/
/* ============================================================
   AURORADOR — APPLE STYLE HOMEPAGE DESIGN SYSTEM
   Hero + Application Scenarios
   Author: Steven + Copilot
   ============================================================ */

/* =========================
   GLOBAL TOKENS
========================= */
:root {
    --dm-blue: #1e73be;
    --dm-blue-dark: #155a94;

    --dm-gray-900: #0f0f0f;
    --dm-gray-800: #1a1a1a;
    --dm-gray-700: #2a2a2a;

    --dm-white: #fff;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-soft: 0 8px 24px rgba(0,0,0,.12);
    --shadow-hover: 0 12px 32px rgba(0,0,0,.18);

    --transition-fast: .25s ease;
    --transition-slow: .45s cubic-bezier(.25,.8,.25,1);
}

/* =========================
   GLOBAL SECTION TITLE
========================= */
.dm-section-title {
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 12px;
    color: #111;
    letter-spacing: -.2px;
}
.dm-align-left {
    text-align: left;
}
.dm-align-center {
    text-align: center;
}
.dm-section-block {
    margin-bottom: 2rem;
}
.dm_breadcrumbs {
    padding: 20px 40px 6px;
}
.dm-solution-title {
    padding: 3rem 3rem 12rem;
    text-align: center;
}
.dm-solution-illustration {
    padding: 30px 40px;
}
.dm-solution-points {
    padding: 4rem 3rem 12rem;
}
.dm-solution-local-content {
    padding: 0 40px;
    margin: 0 auto;
}
.dm-solution-local-content p {
    margin-top: 6rem;
    margin-bottom: 6rem;
    line-height: 1.8rem;
    font-size: 1.1rem;
}

.dm-child-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}
/* =========================
   HERO SECTION
========================= */
.dm-hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background:
        linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
        url('/wp-content/uploads/2026/06/hero_home.jpg')
        center/cover no-repeat;
}

.dm-hero-inner,
.dm-app-inner,
.dm-brand-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.dm-hero-content {
    max-width: 620px;
    color: #fff;
}

.dm-hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #FFF;
}

.dm-hero-desc {
    font-size: 17px;
    line-height: 1.7;
    opacity: .9;
    margin-bottom: 32px;
}

.dm-hero-btn,
.dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: var(--dm-blue);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease;
}

.dm-hero-btn:hover,
.dm-btn:hover {
    background: var(--dm-blue-dark);
    transform: translateY(-2px);
}

.dm-btn-secondary {
    background: #555;
}

.dm-btn-secondary:hover {
    background: #333;
}

/* =========================
   APPLICATION SCENARIOS
========================= */
.dm-app-section {
    padding: 80px 0;
    background: #fafafa;
}

.dm-app-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

.dm-app-card {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-slow);
}

.dm-app-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.dm-app-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.75);
    transition: var(--transition-slow);
}

.dm-app-card:hover .dm-app-bg {
    filter: brightness(.9);
    transform: scale(1.06);
}

.dm-app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.55),
        rgba(0,0,0,.1)
    );
}

.dm-app-title {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-size: 20px;
    font-weight: 600;
}

/* =========================
   BRAND LOGO MARQUEE
========================= */

.dm-brand-marquee {

    width: 100%;
    overflow: hidden;

    position: relative;

    padding: 20px 0;
}


/* track */

.dm-brand-track {

    display: flex;

    align-items: center;

    gap: 48px;

    width: max-content;

    will-change: transform;

    transform: translate3d(0,0,0);

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    perspective: 1000px;
}


/* logo */

.dm-brand-logo {

    flex-shrink: 0;

    width: auto;

    height: auto;

    max-width: 130px;

    max-height: 70px;

    object-fit: contain;

    display: block;

    opacity: 0.72;

    filter: grayscale(100%);

    transition:
        opacity .25s ease,
        filter .25s ease,
        transform .25s ease;
}


/* hover */

.dm-brand-logo:hover {

    opacity: 1;

    filter: grayscale(0%);

    transform: translateY(-2px);
}


/* mobile */

@media (max-width: 768px) {

    .dm-brand-track {

        gap: 32px;
    }

    .dm-brand-logo {

        max-width: 90px;

        max-height: 50px;
    }
}
/* =========================
   GRID SYSTEM
========================= */
.dm-term-grid,
.dm-creation-grid,
.dm-child-grid {
    display: grid;
    gap: 24px;
}

.dm-term-grid,
.dm-creation-grid {
    grid-template-columns: repeat(4,1fr);
}

.dm-child-grid {
    grid-template-columns: repeat(3,1fr);
    justify-items: center;
}

.dm-term-card,
.dm-creation-card,
.dm-child-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

.dm-child-card {
    max-width: 360px;
    text-decoration: none;
    color: inherit;
}

.dm-term-card:hover,
.dm-creation-card:hover,
.dm-child-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transform: translateY(-3px);
}

.dm-child-thumb {
    width: 100%;
    height: 180px;
    margin-bottom: 14px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.dm-child-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.dm-child-excerpt {
    color: #666;    
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 或 1 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   CART
========================= */
.dm-cart-card {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.dm-cart-card-image {
    width: 120px;
    flex-shrink: 0;
    border-radius: 6px;
}

.dm-cart-card-title {
    font-size: 18px;
    margin-bottom: 0px;
}

.dm-cart-card-code {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.dm-cart-spec-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 13px;
}

.dm-cart-qty,
.dm-cart-notes {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dm-cart-qty {
    width: 80px;
    padding: 4px 6px;
}

.dm-cart-notes {
    width: 100%;
    padding: 6px;
}

/* floating cart */
.dm-floating-cart {
    transition: transform .25s ease;
}

.dm-floating-cart-badge,
.dm-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}

/* shake */
@keyframes dmCartShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.dm-cart-bounce,
.dm-cart-shake {
    animation: dmCartShake .45s ease;
}

/* =========================
   BREADCRUMBS
========================= */
.dm-breadcrumbs-wrapper {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.dm-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.dm-breadcrumbs a {
    color: #111;
    text-decoration: none;
    transition: color .2s ease;
}

.dm-breadcrumbs a:hover {
    color: #000;
}

.dm-breadcrumbs-sep {
    color: #aaa;
    font-size: 12px;
    user-select: none;
}

/* =========================
   FOOTER
========================= */
#dm-footer {
    width: 100%;
    padding: 40px 0 20px;
    background: #0a0a0a;
    color: #fff;
}

.dm-footer-brand {
    text-align: center;
    margin-bottom: 40px;
}

.dm-footer-logo {
    width: 160px;
    margin-bottom: 12px;
}

.dm-footer-slogan,
.dm-footer-contact {
    color: #aaa;
    font-size: 14px;
}

.dm-footer-columns {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.dm-footer-col h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.dm-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-footer-col li {
    margin-bottom: 8px;
}

.dm-footer-col a,
.dm-footer-contact a {
    color: #aaa;
    text-decoration: none;
}

.dm-footer-col a:hover,
.dm-footer-contact a:hover {
    color: #fff;
}

.dm-footer-global {
    display: block;
    margin-top: 8px;
    font-style: italic;
}

.dm-social li {
    display: inline-block;
    margin-right: 10px;
}

.dm-social img {
    width: 20px;
    opacity: .7;
    transition: opacity .2s ease;
}

.dm-social img:hover {
    opacity: 1;
}

.dm-footer-bottom {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* =========================
   CF7
========================= */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.wpcf7 input::-webkit-input-placeholder,
.wpcf7 textarea::-webkit-input-placeholder,
.wpcf7 input::-moz-placeholder,
.wpcf7 textarea::-moz-placeholder,
.wpcf7 input:-ms-input-placeholder,
.wpcf7 textarea:-ms-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.dm-cf7-note {
    position: relative;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.dm-cf7-note .more {
    display: inline;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .25s ease;
}

.dm-cf7-note.expanded .more {
    max-height: 200px;
    opacity: 1;
}

.dm-cf7-note .toggle::after {
    content: " Learn more";
    margin-left: 4px;
    color: #999;
    cursor: pointer;
}

.dm-cf7-note.expanded .toggle::after {
    content: " Show less";
}

/* =========================
   TOAST
========================= */
.dm-toast {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99999;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.dm-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .dm-app-grid,
    .dm-term-grid,
    .dm-creation-grid,
    .dm-child-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {

    .dm-share-desktop-only {
        display: none !important;
    }

    .dm-hero-section {
        min-height: 420px;
        padding: 60px 0;
    }

    .dm-hero-title {
        font-size: 32px;
    }

    .dm-hero-desc {
        font-size: 15px;
    }

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

    /* floating cart */
    .dm-floating-cart {
        position: fixed !important;
        right: 16px !important;
        bottom: 90px !important;
        z-index: 99999 !important;
        width: 58px;
        height: 58px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        background: rgba(255,255,255,.75);
        border: 1px solid rgba(255,255,255,.4);
        border-radius: 50%;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
        cursor: pointer;
    }

    body.page-template-page-cart .dm-floating-cart {
        display: none !important;
    }

    .dm-floating-cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 12px;
        background: #ff3b30;
        box-shadow: 0 2px 6px rgba(0,0,0,.2);
    }

    /* mobile cart */
    .dm-cart-item {
        display: grid !important;
        grid-template-columns: 110px 1fr;
        grid-template-areas:
            "thumb info"
            "thumb info"
            "remove info";
        gap: 10px;
        padding: 12px !important;
    }

    .dm-cart-thumb {
        grid-area: thumb;
        width: 110px;
        height: 110px;
        border-radius: 10px;
    }

    .dm-cart-info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .dm-cart-remove {
        grid-area: remove;
        align-self: flex-start;
        margin-top: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 13px;
    }

    .dm-cart-qty-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dm-cart-spec-select,
    .dm-cart-qty,
    .dm-cart-note {
        font-size: 13px;
    }

    .dm-cart-spec-select {
        padding: 6px 30px 6px 8px;
    }

    .dm-cart-qty {
        width: 70px;
        padding: 6px;
    }

    .dm-cart-note {
        min-height: 55px;
        margin-top: 4px;
        padding: 6px 8px;
    }

    /* footer accordion */
    #dm-footer {
        padding: 24px 0 16px;
    }

    .dm-footer-brand {
        margin-bottom: 24px;
        padding: 0 20px;
    }

    .dm-footer-columns {
        display: block;
        padding: 0 20px;
    }

    .dm-footer-col {
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .dm-footer-col:last-child {
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .dm-footer-col h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        padding: 8px 0;
        cursor: pointer;
    }

    .dm-footer-col h4::after {
        content: "▾";
        font-size: 12px;
        opacity: .7;
        transition: transform .2s ease;
    }

    .dm-footer-col.is-open h4::after {
        transform: rotate(180deg);
    }

    .dm-footer-col ul,
    .dm-footer-col .dm-footer-contact,
    .dm-footer-col .dm-social {
        display: none;
    }

    .dm-footer-col.is-open ul,
    .dm-footer-col.is-open .dm-footer-contact,
    .dm-footer-col.is-open .dm-social {
        display: block;
        margin-top: 8px;
    }

    .dm-footer-bottom {
        margin-top: 24px;
        padding: 12px 20px 0;
        font-size: 12px;
    }
}

@media (max-width: 640px) {

    .dm-child-grid,
    .dm-app-grid,
    .dm-term-grid,
    .dm-creation-grid {
        grid-template-columns: 1fr;
    }

    .dm-app-card {
        height: 200px;
    }

    .dm-bc-hide-mobile,
    .dm-bc-hide-mobile + .dm-breadcrumbs-sep {
        display: none !important;
    }

    .dm-breadcrumbs {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
