:root {
    --dy-cloud-bg: #eef3fb;
    --dy-cloud-card: #ffffff;
    --dy-cloud-text: #252832;
    --dy-cloud-muted: #7a8190;
    --dy-cloud-primary: #3169dc;
    --dy-cloud-accent: #edf3ff;
    --dy-cloud-border: #e3e7ee;
    --dy-cloud-price: #d84e2e;
}

.dy-cloud-page[v-cloak] {
    display: none;
}

.dy-cloud-page {
    min-height: 100vh;
    padding-top: 64px;
    color: var(--dy-cloud-text);
    background: linear-gradient(180deg, #eaf1fd 0, var(--dy-cloud-bg) 58%, #f5f7fb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dy-cloud-page .dianle-siyuan {
    font-family: inherit;
}

.dy-cloud-section {
    padding: 0;
}

.dy-cloud-section .dianle-width {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 41px 24px 80px;
}

.dy-cloud-catalog {
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--dy-cloud-border);
    border-radius: 22px;
    background: var(--dy-cloud-card);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

.dy-catalog-row {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 16px;
}

.dy-catalog-row + .dy-catalog-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dy-cloud-border);
}

.dy-catalog-label {
    width: 80px;
    flex: 0 0 80px;
    color: var(--dy-cloud-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.dy-catalog-options {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dy-catalog-chip {
    display: inline-flex;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--dy-cloud-border);
    border-radius: 12px;
    color: var(--dy-cloud-text);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.dy-catalog-row:first-child .dy-catalog-chip {
    height: 36px;
    padding: 0 16px;
}

.dy-catalog-chip:hover {
    border-color: rgba(49, 105, 220, 0.4);
    background: #f7f9fd;
}

.dy-catalog-chip.is-active {
    color: #2c559e;
    border-color: var(--dy-cloud-primary);
    background: var(--dy-cloud-accent);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.dy-catalog-row:first-child .dy-catalog-chip.is-active {
    color: #fff;
    background: var(--dy-cloud-primary);
}

.dy-chip-flag,
.dy-plan-flag {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    background: var(--dy-cloud-price);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dy-chip-flag.is-blue {
    background: rgba(255, 255, 255, 0.18);
}

.dy-cloud-group-description {
    display: flex;
    min-height: 49px;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(49, 105, 220, 0.2);
    border-radius: 17px;
    color: #315a91;
    background: rgba(232, 241, 255, 0.72);
    font-size: 14px;
    line-height: 23px;
}

.dy-info-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.dy-cloud-state {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border: 1px solid var(--dy-cloud-border);
    border-radius: 22px;
    color: var(--dy-cloud-muted);
    background: #fff;
}

.dy-cloud-product-list {
    width: 100%;
}

.dy-cloud-toolbar {
    display: flex;
    height: 42px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.dy-price-label {
    color: var(--dy-cloud-muted);
    font-size: 14px;
    font-weight: 500;
}

.dy-cloud-sort {
    display: inline-flex;
    height: 42px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--dy-cloud-border);
    border-radius: 12px;
    background: #e9edf4;
}

.dy-cloud-sort button {
    display: inline-flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    color: var(--dy-cloud-muted);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.dy-cloud-sort button:hover {
    color: var(--dy-cloud-text);
}

.dy-cloud-sort button.is-active {
    color: var(--dy-cloud-primary);
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

.dy-cloud-sort small {
    margin-left: 4px;
    color: var(--dy-cloud-price);
    font-size: 12px;
    font-weight: 600;
}

.dy-plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.dy-plan-card {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--dy-cloud-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dy-plan-card:hover {
    border-color: rgba(49, 105, 220, 0.4);
    box-shadow: 0 8px 18px rgba(37, 57, 94, 0.1);
    transform: translateY(-2px);
}

.dy-plan-product {
    display: flex;
    width: 208px;
    min-width: 0;
    flex: 0 0 208px;
    align-items: center;
    gap: 12px;
}

.dy-plan-product h2 {
    overflow: hidden;
    color: var(--dy-cloud-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dy-plan-specs {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dy-plan-spec {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--dy-cloud-text);
}

.dy-plan-spec-icon {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--dy-cloud-primary);
    background: #edf1f7;
}

.dy-spec-icon {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.dy-spec-icon.is-cpu {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

.dy-spec-icon.is-memory {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h3v4H6zM12 10h3v4h-3zM18 10h1M6 18v3M10 18v3M14 18v3M18 18v3'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h3v4H6zM12 10h3v4h-3zM18 10h1M6 18v3M10 18v3M14 18v3M18 18v3'/%3E%3C/g%3E%3C/svg%3E");
}

.dy-spec-icon.is-disk {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h14l3 6v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9l3-6Z'/%3E%3Cpath d='M2 10h20M6 16h4M16 16h2'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h14l3 6v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9l3-6Z'/%3E%3Cpath d='M2 10h20M6 16h4M16 16h2'/%3E%3C/g%3E%3C/svg%3E");
}

.dy-spec-icon.is-bandwidth {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.4 1 4 14h7l-1 9 10-14h-7l.4-8Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.4 1 4 14h7l-1 9 10-14h-7l.4-8Z'/%3E%3C/svg%3E");
}

.dy-plan-spec strong {
    overflow: hidden;
    color: var(--dy-cloud-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dy-plan-action {
    display: flex;
    width: 256px;
    flex: 0 0 256px;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.dy-plan-price {
    min-width: 0;
    text-align: right;
}

.dy-plan-price > div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.dy-plan-price strong {
    color: var(--dy-cloud-price);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.dy-plan-price span,
.dy-plan-price small {
    color: var(--dy-cloud-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
}

.dy-plan-price span {
    font-size: 14px;
}

.dy-plan-price small {
    display: block;
    margin-top: 2px;
}

.dy-plan-buy {
    display: inline-flex;
    width: 96px;
    height: 32px;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--dy-cloud-primary);
    font-size: 14px;
    font-weight: 500;
}

.dy-plan-buy:hover {
    color: #fff;
    background: #275bc5;
}

.dy-catalog-chip:focus-visible,
.dy-cloud-sort button:focus-visible,
.dy-plan-buy:focus-visible {
    outline: 3px solid rgba(49, 105, 220, 0.28);
    outline-offset: 2px;
}

@media screen and (max-width: 1023px) {
    .dy-plan-card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .dy-plan-product,
    .dy-plan-action {
        width: 100%;
        flex-basis: auto;
    }

    .dy-plan-action {
        justify-content: space-between;
        padding-top: 16px;
        border-top: 1px solid var(--dy-cloud-border);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dy-plan-card,
    .dy-catalog-chip,
    .dy-cloud-sort button {
        transition: none;
    }

    .dy-plan-card:hover {
        transform: none;
    }
}

@media screen and (max-width: 639px) {
    .dy-cloud-section .dianle-width {
        max-width: none;
        padding: 33px 16px 52px;
    }

    .dy-cloud-catalog {
        padding: 20px;
    }

    .dy-catalog-row {
        min-height: 72px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .dy-catalog-row + .dy-catalog-row {
        min-height: 74px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .dy-catalog-label {
        width: auto;
        flex-basis: auto;
    }

    .dy-catalog-options {
        margin: 0 -20px;
        padding: 0 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dy-catalog-row:first-child .dy-catalog-options {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .dy-catalog-options::-webkit-scrollbar {
        display: none;
    }

    .dy-cloud-group-description {
        min-height: 72px;
    }

    .dy-cloud-toolbar {
        justify-content: stretch;
    }

    .dy-price-label {
        flex: 0 0 auto;
    }

    .dy-cloud-sort {
        min-width: 0;
        flex: 1;
    }

    .dy-cloud-sort button {
        min-width: 0;
        flex: 1;
        padding: 0 8px;
    }

    .dy-cloud-sort small {
        display: none;
    }

    .dy-plan-card {
        min-height: 223px;
    }

    .dy-plan-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .dy-plan-price {
        text-align: left;
    }

    .dy-plan-price > div {
        justify-content: flex-start;
    }

    .dy-plan-price strong {
        font-size: 24px;
    }
}

@media screen and (max-width: 360px) {
    .dy-cloud-section .dianle-width {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dy-cloud-catalog {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dy-catalog-options {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .dy-plan-card {
        padding: 16px;
    }

    .dy-plan-specs {
        column-gap: 10px;
    }

    .dy-plan-spec {
        gap: 6px;
    }
}
