/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.5;
}

/* Header styles */
.header {
    background-color: #002f36;
    color: white;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    justify-content: space-between;
    height: 50px;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.logo-amazon {
    font-weight: bold;
}

.logo-seller {
    font-size: 0.9em;
    margin-left: 4px;
}

.search-container {
    margin-left: 16px;
    position: relative;
    padding-left: 16px;
}

.search-input {
    background-color: white;
    color: black;
    padding: 4px 12px;
    border: none;
    font-size: 0.9em;
    width: 220px;
}

.ellipsis {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-input-dark {
    background-color: #00485a;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.9em;
    width: 120px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 8px;
    background-color: #00485a;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

.language-selector {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.help-text {
    margin-left: 8px;
    font-size: 0.9em;
}

/* Navigation styles */
.navigation {
    background-color: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link.active {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.nav-link svg {
    margin-right: 4px;
}

.edit-button {
    background-color: #f0f0f0;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

/* Main content styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero section styles */
.hero-section {
    background-color: #f8f8f8;
    padding: 32px 0;
}

.hero-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    width: 33%;
    position: relative;
}

.amazon-box {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #f8d568 0%, #f8d568 50%, #e67e22 50%, #e67e22 100%);
    position: relative;
    transform: perspective(500px) rotateX(10deg) rotateY(10deg);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.amazon-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #004d40;
    clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
    opacity: 0.8;
}

.amazon-box:after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 40%;
    height: 10%;
    background-color: #333;
    border-radius: 50%;
    transform: rotate(-10deg);
}

.sparkles {
    position: absolute;
    top: 0;
    left: -200px;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    color: #f8d568;
    font-size: 24px;
}

.hero-content {
    width: 67%;
}

.hero-header {
    margin-bottom: 24px;
}

.hero-title {
    font-family: Amazon Ember, Arial, sans-serif !important;
    font-size: 2.75rem !important;
    font-weight: 100;
    line-height: 50px !important;
}

.info-link {
    color: #0066c0;
    font-size: 0.9em;
    cursor: pointer;
}

.link-text {
    color: #0066c0;
    text-decoration: none;
}

.hero-subtitle {
    margin-top: 4px;
    font-size: 1.1em;
}

/* Options grid styles */
.options-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background-color: white;
}

.option-card:hover {
    background-color: #f5f5f5;
}

.option-card.active {
    background-color: #f5f5f5;
    border-color: #0066c0;
}

.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #0066c0;
    color: white;
    font-size: 0.7em;
    padding: 2px 4px;
    border-radius: 4px;
}

.option-card svg {
    margin-bottom: 8px;
}

.option-text {
    font-size: 0.8em;
    text-align: center;
}

/* Info box styles */
.info-box {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
    display: none;
}
.info-box input[type=text] {
    width: 100%;
    height: 30px;
    padding: 5px;
}
.info-text {
    font-size: 0.9em;
    margin-bottom: 16px;
}

.info-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.start-button {
    background-color: #00798a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Reference section styles */
.reference-section {
    margin: 320px 0;
}

.section-title {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.reference-card {
    border: 1px solid #ddd;
    padding: 16px;
    background-color: white;
}

.reference-title {
    font-size: 1em;
    margin-bottom: 8px;
}

.reference-text {
    font-size: 0.9em;
    margin-bottom: 8px;
}

/* Footer styles */
.footer {
    border-top: 1px solid #ddd;
    padding: 16px;
    margin-top: 32px;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-link {
    color: #0066c0;
    text-decoration: none;
    margin-right: 16px;
    font-size: 0.9em;
}

.language-dropdown select {
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.footer-right {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: center;
}

.download-link, .next-link {
    display: flex;
    align-items: center;
    color: #0066c0;
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.9em;
}

.download-link svg, .next-link svg {
    margin-right: 4px;
}

.copyright {
    font-size: 0.8em;
    color: #777;
    margin-top: 16px;
    text-align: right;
}

/* 确保 info-box-1 默认隐藏 */
.info-box-1 {
    display: none;
}

/* 当 info-box-1 显示时的样式 */
.info-box-1 {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
}

/* 输入框单独一行 */
.info-box-1 input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px; /* 与按钮的间距 */
}

/* 按钮行样式 */
.info-box-1 .button-row {
    display: flex;
    justify-content: flex-end; /* 右对齐 */
}

/* 按钮样式 */
.info-box-1 .start-button {
    width: 80px;
    height: 36px;
    background-color: #00798a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 禁用状态样式 */
.info-box-1 .start-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* info-box-2 基础样式 */
.info-box-2 {
    display: none; /* 默认隐藏 */
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
}

/* 第一行 - 说明文字 */
.info-box-2 .info-text {
    margin-bottom: 16px;
}

/* 第二行 - 上传容器 */
.info-box-2 .upload-container {
    width: 100%; /* 与info-box-1的input同宽 */
    border: 2px dashed #0066c0; /* 蓝色虚线边框 */
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px; /* 按钮和文字间距 */
}

/* 上传按钮 */
.info-box-2 .upload-button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.info-box-2 .upload-button svg {
    fill: white;
    width: 16px;
    height: 16px;
}

/* 拖拽提示文字 */
.info-box-2 .drag-text {
    color: #666;
}

/* 第三行 - 格式说明 */
.info-box-2 .format-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

/* 第四行 - 提交按钮 */
.info-box-2 .button-row {
    display: flex;
    justify-content: flex-end; /* 右对齐 */
}

.info-box-2 .submit-button {
    width: 80px;
    height: 36px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
}

/* info-box-3 基础样式 */
.info-box-3 {
    display: none; /* 默认隐藏 */
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
}

/* 第一行 - 说明文字 */
.info-box-3 .info-text {
    margin-bottom: 16px;
}

/* 第二行 - 文本区域 */
.info-box-3 .code-textarea {
    width: 100%; /* 与info-box-1的input同宽 */
    height: 100px; /* 适当高度容纳多行文本 */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical; /* 允许垂直调整大小 */
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.info-box-3 .code-textarea::placeholder {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
}

/* 第三行 - 计数提示 */
.info-box-3 .count-hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

/* 第四行 - 提交按钮 */
.info-box-3 .button-row {
    display: flex;
    justify-content: flex-end; /* 右对齐 */
}

.info-box-3 .submit-button {
    width: 80px;
    height: 36px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
}

/* info-box-4 基础样式 */
.info-box-4 {
    display: none; /* 默认隐藏 */
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
}

/* 第一行 - 说明文字 */
.info-box-4 .info-text {
    margin-bottom: 16px;
}

/* 第二行 - 输入框 */
.info-box-4 input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* 第三行 - 按钮行 */
.info-box-4 .button-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.info-box-4 .submit-button {
    width: 80px;
    height: 36px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
}

/* 第四行 - 声明区域 */
/* 第四行 - 声明区域（添加2px右边框） */
.info-box-4 .declaration-box {
    background-color: #f0f9ff; /* 浅蓝底色 */
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 5px solid #0066c0; /* 新增的2px蓝色右边框 */
}

.info-box-4 .warning-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #0066c0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.info-box-4 .declaration-text {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

/* info-box-6 基础样式 */
.info-box-6 {
    display: none;
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 32px;
    background-color: white;
}

/* 第一行 - 声明框（复用info-box-5样式） */
/* 声明框样式优化 */
.info-box-6 .declaration-box {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    border-left: 5px solid #0066c0; /* 左侧蓝色边框 */
}

/* 圆形蓝色感叹号图标 */
.info-box-6 .warning-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #0066c0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* 两行文字样式 */
.info-box-6 .declaration-text {
    font-size: 14px;
    line-height: 1.5;
}

.info-box-6 .declaration-text .first-line {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.info-box-6 .declaration-text .second-line {
    display: block;
    color: #333;
}

/* 第二行 - 上传标题 */
.info-box-6 .upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-box-6 .upload-title {
    font-weight: bold;
}

.info-box-6 .clear-link {
    color: #0066c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

/* 第三行 - 上传区域（复用info-box-2样式） */
.info-box-6 .upload-container {
    width: 100%;
    border: 2px dashed #0066c0;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}
/* 上传按钮新样式 */
.info-box-6 .upload-button {
    background-color: #000; /* 纯黑背景 */
    color: white; /* 白色文字 */
    border: none;
    border-radius: 4px;
    padding: 10px 20px; /* 更大的内边距 */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px; /* 稍大字号 */
    font-weight: 500;
    height: 40px; /* 固定高度 */
    min-width: 120px; /* 最小宽度 */
    transition: all 0.2s ease;
}

/* 悬停效果 */
.info-box-6 .upload-button:hover {
    background-color: #333; /* 深灰悬停色 */
}

/* 图标样式调整 */
.info-box-6 .upload-button svg {
    width: 18px; /* 稍大图标 */
    height: 18px;
    stroke-width: 2.5; /* 更粗的线条 */
}

/* 第四行 - 格式说明 */
.info-box-6 .format-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

/* 第五行 - 橙色警告框 */
/* 第五行 - 橙色警告框 */
.info-box-6 .warning-box {
    background-color: #fff8e6;
    border-left: 4px solid #ff9900;
    padding: 16px 16px 16px 52px; /* 左侧留出更多空间 */
    margin-bottom: 16px;
    position: relative;
}

/* 橙色正三角形图标 */
.info-box-6 .warning-icon {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    background-color: #ff9900;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* 正三角形 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 三角形内的白色感叹号 */
.info-box-6 .warning-icon::after {
    content: "!";
    color: white;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    top: 4px; /* 微调垂直居中 */
}

/* 警告内容样式 */
.info-box-6 .warning-content {
    font-size: 14px;
    line-height: 1.5;
}

.info-box-6 .warning-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.info-box-6 .warning-text {
    color: #666;
}

/* 第六行 - 复选框 */
.info-box-6 .checkbox-row {
    margin-bottom: 16px;
}

.info-box-6 .email-checkbox {
    margin-right: 8px;
}

/* 第七行 - 提交按钮 */
.info-box-6 .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.info-box-6 .big-submit-button {
    width: 120px;
    height: 36px;
    background-color: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
}

/* 第八行 - 底部链接 */
/* 第八行 - 底部链接（混合对齐方案） */
.info-box-6 .bottom-links {
    display: flex;
    position: relative; /* 为绝对定位创建上下文 */
    padding: 0 20px; /* 添加内边距避免贴边 */
}

.info-box-6 .template-link {
    /* 左对齐保持不变 */
    justify-content: flex-start;
}

.info-box-6 .status-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 精确居中 */
    display: flex;
    align-items: center;
    gap: 4px;
}