@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f6f6f6;
    --surface: #ffffff;
    --border: #e8e8e8;
    --text: #222222;
    --muted: #767676;
    --dark: #111111;
    --topbar: #202020;
    --accent: #111111;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 244, 244, 0.15) 100%);
    z-index: -1;
}

.amazon-background {
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

.store-shell {
    min-height: 100vh;
}

.store-container {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.store-topbar {
    background: var(--topbar);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.store-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
}

.store-topbar-left,
.store-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.store-topbar a,
.store-topbar span {
    color: inherit;
    text-decoration: none;
}

.store-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.store-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.store-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #111;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.store-logo-image {
    display: block;
    height: 46px;
    width: auto;
}

.store-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.store-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.store-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.store-search input {
    width: 100%;
    border: none;
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    color: var(--text);
}

.store-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    height: 42px;
    width: 290px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.store-search button {
    border: none;
    background: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.store-icon-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.store-main {
    padding-top: 22px;
    padding-bottom: 40px;
}

.hero-layout {
    display: block;
}

.hero-slider,
.tab-product-section,
.product-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-slider {
    min-height: 420px;
    overflow: hidden;
}

.hero-slide-media img,
.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-product-section {
    margin-top: 32px;
    padding: 28px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.section-title-row h2 {
    font-size: 34px;
    line-height: 1.08;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-wrap {
    overflow: hidden;
}

.product-thumb {
    display: block;
    height: 280px;
    background: #f7f7f7;
}

.product-bottom-info {
    padding: 18px;
    text-align: center;
}

.product-name {
    font-size: 15px;
    line-height: 1.6;
    min-height: 0;
}

.store-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .store-container {
        width: min(1380px, calc(100% - 20px));
    }

    .store-topbar-inner,
    .store-topbar-left,
    .store-topbar-right {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-slide-media {
        min-height: 280px;
    }

    .tab-product-section {
        padding: 22px 16px;
    }

    .product-thumb {
        height: 220px;
    }
}

/* 模态框遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 模态框内容 */
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 16px 24px ;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

/* 标题 */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    padding: 0 50px 12px 24px;
    line-height: 28px;
    border-bottom: 1px solid #e0e0e0;
    margin-left: -24px;
    margin-right: -24px;
}

/* 表单组 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

/* 输入框包装器 - 重构后 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
}

/* 输入框图标 - 统一使用SVG背景 */
.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 表单输入框 - 重构后 */
.form-input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 44px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background-color: #fff;
}

.form-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input.error {
    border-color: #f44336;
}

.form-input::placeholder {
    color: #bbb;
    line-height: 44px;
}

/* 错误提示 */
.error-message {
    font-size: 12px;
    color: #f44336;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 评分区域 */
.rating-group {
    margin-bottom: 16px;
}

.rating-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stars-container {
    display: flex;
    gap: 8px;
}

.star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.1s;
}

.star:hover {
    transform: scale(1.1);
}

.star.active {
    color: #ffc107;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #a8ff78 0%, #78ffd6 100%);
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 255, 214, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示弹窗 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    display: none;
    text-align: center;
    max-width: 80%;
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 领取礼品弹窗样式 */
.gift-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.gift-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-right: 0;
}

.gift-subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

/* 礼品图片区域 */
.gift-image-container {
    width: 100%;
    height: 150px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.gift-image {
    width: 80%;
    height: 80%;
    border-radius: 4px;
    object-fit: contain;
    background: #e8e8e8;
}

/* 礼品说明文字 */
.gift-info {
    margin-bottom: 16px;
}

.gift-info-item {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* 复制评论区域 */
.copy-comment-section {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.copy-comment-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.copy-comment-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.copy-comment-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.choice-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.no-btn {
    background: #c8f5c8;
    color: #2e7d32;
}

.yes-btn {
    background: #c8f5c8;
    color: #2e7d32;
}

.choice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.choice-btn.selected {
    background: #4CAF50;
    color: #fff;
}

.next-btn {
    margin-top: 0;
}

/* 非五星好评弹窗 */
.low-rating-modal-content {
    width: 92%;
    max-width: 560px;
    padding: 0 0 24px;
    border-radius: 6px;
    overflow: hidden;
}

.low-rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #e7e7e7;
}

.low-rating-modal-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #202124;
    flex: 1;
}

.low-rating-close-btn {
    position: static;
    top: auto;
    right: auto;
    width: 32px;
    height: 32px;
    font-size: 28px;
    color: #a6a6a6;
    line-height: 1;
}

.low-rating-body {
    padding: 22px 18px 0;
    text-align: center;
}

.low-rating-check-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border: 4px solid #2f9f75;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.low-rating-check-icon svg {
    width: 48px;
    height: 48px;
}

.low-rating-title {
    font-size: 38px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.15;
    margin-bottom: 10px;
}

.low-rating-description {
    font-size: 14px;
    color: #3e3e3e;
    line-height: 1.45;
    margin-bottom: 12px;
}

.low-rating-email {
    font-weight: 600;
    word-break: break-all;
}

.low-rating-copy-box {
    width: 100%;
    background: #ececec;
    color: #4b4b4b;
    border-radius: 2px;
    padding: 12px 10px;
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
    margin-bottom: 14px;
}

.low-rating-email-btn {
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #d7f35f 0%, #4de3c5 100%);
    color: #355b49;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 112px;
    padding: 10px 22px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.low-rating-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(77, 227, 197, 0.4);
}

.low-rating-email-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .low-rating-modal-title {
        font-size: 20px;
    }

    .low-rating-title {
        font-size: 30px;
    }

    .low-rating-copy-box {
        font-size: 15px;
    }
}

/* 感谢页面 */
.thanks-page {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 40px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.thanks-page.show {
    display: flex;
}

.thanks-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.thanks-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.thanks-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.back-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateY(-2px);
}

/* 隐藏模态框 */
.modal-overlay.hidden {
    display: none;
}
