/* 蝦皮商城 - 旧版样式（备用） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #f08300;
    text-decoration: none;
}

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 640px;
    margin: 0 auto;
}

.menu-btn,
.more-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
}

.more-btn span {
    display: block;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    margin: 1px 0;
}

.logo {
    text-align: center;
    font-size: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #e85d04;
    letter-spacing: 1px;
}

.logo-text .seven {
    color: #008042;
    font-style: italic;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 8px 15px;
    font-size: 12px;
    color: #999;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* ===== Main Container ===== */
.main-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 80px;
}

.content-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    margin: 10px;
    border-radius: 2px;
}

/* ===== Store Title ===== */
.store-title {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #eee;
}

/* ===== Progress Stepper ===== */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 25px 15px 20px;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 18%;
    right: 18%;
    height: 3px;
    background: #f58220;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f58220;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-circle.active {
    background: #fff;
    border: 3px solid #f58220;
    color: #f58220;
    font-weight: bold;
    font-size: 14px;
}

.step-circle.done::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.step-label {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* ===== Success Section ===== */
.success-section {
    text-align: center;
    padding: 20px 15px 25px;
}

.success-section-compact {
    padding: 12px 15px 8px;
}

.success-icon {
    width: 70px;
    height: 70px;
    border: 3px solid #f58220;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-section-compact .success-icon {
    width: 46px;
    height: 46px;
    border-width: 2px;
    margin-bottom: 8px;
}

/* 打钩（备用） */
.success-icon:not(.fail-icon)::after {
    content: "";
    width: 18px;
    height: 30px;
    border-right: 4px solid #f58220;
    border-bottom: 4px solid #f58220;
    transform: rotate(45deg);
    margin-top: -8px;
}

.success-section-compact .success-icon:not(.fail-icon)::after {
    width: 10px;
    height: 18px;
    border-width: 3px;
    margin-top: -5px;
}

/* 打叉图标（訂購失敗）- SVG，不依赖伪元素 */
.fail-icon-wrap {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
}

.fail-icon-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.success-section-compact .success-title {
    font-size: 18px;
    margin-bottom: 0;
}

/* ===== 系统提示 ===== */
.system-notice {
    margin: 0 15px 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%);
    border: 1px solid #ffd4c2;
    border-left: 4px solid #f58220;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(245, 130, 32, 0.08);
}

.system-notice-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.system-notice-icon {
    width: 20px;
    height: 20px;
    background: #f58220;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    flex-shrink: 0;
}

.system-notice-label {
    font-size: 14px;
    font-weight: bold;
    color: #e85d04;
}

.system-notice-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    word-break: break-word;
}

/* ===== 系统提示弹窗 ===== */
.prompt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prompt-overlay.show {
    display: flex;
}

.prompt-modal {
    width: 100%;
    max-width: 420px;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%);
    border: 1px solid #ffd4c2;
    border-left: 4px solid #f58220;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    animation: promptFadeIn 0.3s ease;
}

@keyframes promptFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-verify {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: #f58220;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.35);
}

.btn-verify:hover {
    background: #e8750f;
    color: #fff;
}

.contact-block {
    text-align: center;
    padding: 0 15px 20px;
}

.social-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.btn-contact,
.btn-facebook {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 12px 20px;
    background: #4267b2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 6px rgba(66, 103, 178, 0.25);
}

.btn-contact:hover,
.btn-facebook:hover {
    background: #365899;
}

/* ===== Section Headers (Green) ===== */
.section-header {
    padding: 15px 15px 8px;
    font-size: 15px;
    font-weight: bold;
    color: #008042;
    border-bottom: 2px solid #008042;
    display: inline-block;
    margin-left: 15px;
}

.section-header-block {
    padding: 15px 15px 5px;
}

.section-header-block .section-header {
    margin-left: 0;
    padding-left: 0;
}

/* ===== Info Rows (Peach labels) ===== */
.info-list {
    border-top: 1px solid #eee;
}

.info-row {
    border-bottom: 1px solid #eee;
}

.info-label {
    background: #fff2ee;
    padding: 8px 15px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.info-value {
    background: #fff;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.info-value.highlight {
    color: #e67e22;
}

/* ===== Order Items Table ===== */
.order-table-wrap {
    padding: 0 10px 10px;
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 13px;
}

.order-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    vertical-align: middle;
}

.order-table .label-cell {
    background: #f9f9f9;
    width: 90px;
    text-align: center;
    color: #555;
    white-space: nowrap;
}

.order-table .value-cell {
    background: #fff;
}

.product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.product-img-placeholder {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* ===== Summary ===== */
.summary-section {
    padding: 10px 15px 15px;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.summary-row .summary-label {
    flex: 0 0 auto;
}

.summary-row .summary-mid {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.summary-row .summary-amount {
    flex: 0 0 auto;
    text-align: right;
    min-width: 70px;
}

.summary-row.total {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 16px;
    color: #008042;
}

.summary-row.total .summary-amount {
    color: #008042;
}

/* ===== Order Notes ===== */
.notes-section {
    padding: 0 15px 15px;
}

.notes-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    background: #fff2ee;
    font-size: 14px;
    color: #333;
    border-radius: 2px;
    margin-top: 8px;
}

.notify-section {
    padding: 0 15px 15px;
}

.notify-text {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    line-height: 1.6;
}

.btn-print {
    display: block;
    width: calc(100% - 30px);
    margin: 10px 15px 15px;
    padding: 14px;
    background: #f58220;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn-print:hover {
    background: #e07518;
}

/* ===== Accordion ===== */
.accordion {
    margin: 0 10px 10px;
    border: 1px solid #e0e0e0;
}

.accordion-header {
    background: #f58220;
    color: #fff;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.accordion-header.collapsed .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    background: #fff;
    padding: 15px;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    display: block;
}

.accordion-body.hidden {
    display: none;
}

.accordion-body h4 {
    font-size: 14px;
    color: #333;
    margin: 15px 0 8px;
}

.accordion-body h4:first-child {
    margin-top: 0;
}

.accordion-body ol {
    padding-left: 20px;
}

.accordion-body ol ol {
    list-style-type: decimal;
}

.accordion-body li {
    margin-bottom: 8px;
}

.accordion-body .warn {
    color: #c0392b;
}

.accordion-body .link-text {
    color: #f08300;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 10px;
}

.footer-links {
    background: #f58220;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.footer-links a {
    color: #fff;
}

.footer-links .divider {
    margin: 0 5px;
}

.footer-disclaimer {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.95;
}

.footer-copyright {
    background: #eee;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* ===== Print ===== */
@media print {
    .site-header,
    .breadcrumb,
    .btn-facebook,
    .btn-print,
    .menu-btn,
    .more-btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .content-card {
        border: none;
        margin: 0;
    }
}
