/* ========================================
   轻定制与贸易咨询 - 页面专属样式
   ======================================== */

/* Hero Section */
.pt-32 {
    padding-top: 8rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.max-w-3xl {width: 60rem;}

.max-w-4xl {
    max-width: 69rem;
}

.max-w-2xl {
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inline-block {
    display: inline-block;
}

.section-spacing {
    padding: 4rem 0;
}

.space-y-10 > * + * {
    margin-top: 2.5rem;
}

.text-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-accent {
    color: hsl(var(--accent));
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.text-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222222;
}

@media (min-width: 768px) {
    .text-page-title {
        font-size: 3rem;
    }
}

.text-body {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

.text-lg {
    font-size: 1.125rem;
}

/* Tabs 样式 */
.tabs-container {
    margin-bottom: 2rem;
}

.tabs-list {
    border: 1px solid #000;
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    width: 100%;
    background-color: #ffffff;
    padding: 0.25rem;
    border-radius: 0.5rem;
    gap: 0;
}

.tab-trigger {
    display: inline-flex;
    /* align-items: center; */
    justify-content: center;
    whitespace: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.975rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    border-radius: 0.375rem;
    /* cursor: pointer; */
    /* transition: all 0.2s ease; */
}

.tab-trigger:hover {
    color: #222222;
}

.tab-trigger.active {
    background-color: hsl(0deg 0% 0%);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-content {
    margin-top: 2rem;
}

.tab-content:not(.active) {
    display: none;
}

/* 模板卡片网格 */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.template-card {
    padding: 1.5rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.template-card.selected {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.05);
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.template-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 0.25rem;
}

.template-code {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.template-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.spec-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.template-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* 已选择提示 */
.selected-template {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.selected-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selected-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #222222;
}

.selected-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.selected-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.selected-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-remove:hover {
    background-color: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

/* 自定义需求表单网格 */
.custom-form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .custom-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group-full {
    grid-column: 1 / -1;
}

/* 表单元素 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #222222;
}

.form-input,
.form-select,
.form-textarea {
    display: flex;
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #222222;
    background-color: #ffffff;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea {
    height: auto;
    min-height: 8rem;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Select 下拉框 */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2rem;
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

/* Checkbox 组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #222222;
}

/* Card 组件 */
.card {
    border-radius: 0.5rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.surface-base {
    background-color: #ffffff;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
    padding-bottom: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #222222;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 表单网格 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 文件上传 */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: #222222;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    border: 2px dashed hsl(var(--border));
    border-radius: 0.5rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    overflow: hidden;
}

.file-upload:hover {
    border-color: hsl(var(--primary) / 0.5);
    background-color: hsl(var(--primary) / 0.05);
}

.file-upload-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--muted-foreground));
}

.file-upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #222222;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.file-upload-filename {
    font-size: 0.875rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

/* 表单错误样式 */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: hsl(var(--destructive));
}

.form-error {
    font-size: 0.75rem;
    color: hsl(var(--destructive));
    margin-top: 0.25rem;
    display: none;
}

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

/* 按钮区域 */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.form-actions-left {
    display: flex;
    gap: 1rem;
    order: 2;
}

@media (min-width: 768px) {
    .form-actions-left {
        order: 1;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    whitespace: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: white;
    font-weight: 700;
    flex: 1;
}

@media (min-width: 768px) {
    .btn-primary {
        flex: 0 0 auto;
        order: 2;
    }
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    flex: 1;
}

@media (min-width: 768px) {
    .btn-secondary {
        flex: 0 0 auto;
    }
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

/* 联系提示框 */
.contact-hint-box {
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-hint-text {
    font-size: 0.975rem;
    color: hsl(var(--muted-foreground));
}

.contact-link {
    color: hsl(var(--accent));
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: hsl(var(--accent-foreground));
}

.contact-hint-sub {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
}

/* 信任数据区域 */
.bg-secondary\/30 {
    background-color: #ffffff;
}

.card-padding {
    padding: 3rem 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gap-8 {
    gap: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.text-primary {
    color: hsl(var(--primary));
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .tabs-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-card {
        padding: 1rem;
    }
}