body {
    margin: 0;
    background: #f3f3f3;
    font-family: "Noto Sans TC", Arial, sans-serif;
    color: #333;
}

.flower {
    max-width: 860px;
    margin: auto;
    padding: 20px;
}

.flower-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe7f1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.flower-back:hover {
    border-color: #bcd0ea;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* Header */
.flower-header {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.flower-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.flower-header__toolbar {
    margin-bottom: 0;
}

.flower-buy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #1681d8;
    border-radius: 8px;
    background: #fff;
    color: #0b6dbb;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.flower-buy:hover,
.flower-buy:focus {
    background: #eef8ff;
    color: #07558f;
    text-decoration: none;
}

.flower-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
	color: #07213d;
}

.meta {
    font-size: 14px;
    color: #777;
}

/* Hero */
.flower-hero {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.flower-gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f3f5;
    line-height: 0;
}

.flower-gallery__image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
}

.flower-gallery__arrow {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 64px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(15, 23, 42, .58);
    color: #fff;
    font-size: 30px;
    line-height: 30px;
    opacity: .72;
    overflow: hidden;
    transition: width .18s ease, opacity .18s ease, background-color .18s ease;
}

.flower-gallery__arrow:hover,
.flower-gallery__arrow:focus {
    width: 56px;
    opacity: .95;
    background: rgba(15, 23, 42, .78);
    color: #fff;
}

.flower-gallery__arrow--left { left: 0; }
.flower-gallery__arrow--right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.flower-gallery__thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 2px;
}

.flower-gallery__thumbnail {
    flex: 0 0 70px;
    height: 52px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f1f3f5;
    cursor: pointer;
    opacity: .8;
}

.flower-gallery__thumbnail:hover,
.flower-gallery__thumbnail.is-active {
    border-color: #0f766e;
    opacity: 1;
}

.flower-gallery__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Price */
.flower-price {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.flower-price h2 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #0f172a;
    font-weight: 700;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed #ddd;
}

.price-list li:last-child {
    border-bottom: none;
}

.label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.high {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.14);
}

.mid  {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.low  {
    color: #334155;
    background: rgba(51, 65, 85, 0.08);
    box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.14);
}

.neutral {
    color: #64748b;
    background: rgba(100, 116, 139, 0.08);
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.14);
}

.price-note {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

/* Description */
.flower-desc {
    list-style: none;
	background: #fff;
    padding: 22px;
    border-radius: 12px;
    line-height: 1.8;
}

.flower-desc li{
	list-style: none;
}

.flower-desc h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.flower-desc h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.flower-story {
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.flower-story__header {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.flower-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(7, 33, 61, 0.08);
    color: #07213d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.flower-story__header h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.35;
}

.flower-story__lead {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
}

.flower-story__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.flower-story__card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.flower-story__card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fb7185);
}

.flower-story__card--meaning::before {
    background: linear-gradient(90deg, #14b8a6, #22c55e);
}

.flower-story__card--knowledge::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.flower-story__tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.flower-story__card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.4;
}

.flower-story__source {
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.flower-story__body p,
.flower-story__body li {
    color: #475569;
    font-size: 14px;
    line-height: 1.85;
}

.flower-story__body p {
    margin: 0;
}

.flower-story__body ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.flower-story__body li + li {
    margin-top: 6px;
}

.flower-story__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e6eef7;
}

.flower-story__summary-text {
    color: #334155;
    font-size: 14px;
    line-height: 1.9;
}

.flower-story__note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.flower-chart {
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.flower-chart__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.flower-chart__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.flower-chart__header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.35;
}

.flower-chart__lead {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.85;
}

.flower-chart__lead code,
.flower-chart__note code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
}

.flower-chart__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 220px;
}

.flower-chart__stat {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e6eef7;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.flower-chart__stat-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.flower-chart__stat strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.flower-chart__canvas {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e6eef7;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
    position: relative;
}

.flower-chart__svg {
    display: block;
    width: 100%;
    height: 320px;
}

.flower-chart__grid-line {
    stroke: #e9eef5;
    stroke-width: 1;
    stroke-dasharray: 5 6;
}

.flower-chart__line {
    fill: none;
    stroke: #111111;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flower-chart__axis-label {
    fill: #64748b;
    font-size: 12px;
}

.flower-chart__price-label {
    fill: #111111;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.flower-chart__value-label {
    fill: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.flower-chart__note {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.flower-chart__empty {
    padding: 8px 2px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

/* 花市行情頁底部 */
.flower-footer {
    margin-top: 15px;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.flower-footer .footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px;
}

.flower-footer .footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.flower-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.flower-footer .footer-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.flower-footer .footer-links a.active {
    background: #07213d;
	border-color: #07213d;
	color:#fff;
}

.flower-footer .footer-links a:hover {
    color: #07213d;
    border-color: #07213d;
    background: #fff5f5;
}

/* Mobile */
@media (max-width: 768px) {
    .flower {
        padding-left: 8px;
        padding-right: 8px;
    }

    .flower-header,
    .flower-hero,
    .flower-price,
    .flower-story,
    .flower-chart,
    .flower-story__card,
    .flower-story__summary {
        padding-left: 8px;
        padding-right: 8px;
    }

    .flower-header h1 {
        font-size: 22px;
    }

    .flower-back {
        padding: 7px 12px;
        font-size: 13px;
    }

    .flower-header__top {
        gap: 8px;
    }

    .flower-buy {
        padding: 7px 10px;
        font-size: 14px;
    }

    .flower-story {
        padding: 18px;
    }

    .flower-story__header h2 {
        font-size: 20px;
    }

    .flower-story__grid {
        grid-template-columns: 1fr;
    }

    .flower-story__card {
        padding: 16px;
    }

    .flower-story__summary {
        padding: 16px;
    }

    .flower-chart {
        padding: 18px;
    }

    .flower-chart__header {
        flex-direction: column;
    }

    .flower-chart__stats {
        justify-content: flex-start;
        min-width: 0;
    }

    .flower-chart__svg {
        height: 280px;
    }
}
