/* ========================================
   照片冲印系统 - 前台样式
   把页面外观相关的代码写在这里
   ======================================== */

/* 全局重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(180deg, var(--brand-bg-soft) 0%, var(--brand-bg-page) 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* 店铺设置的自定义首页背景（上传 / 外链） */
body.home-bg-custom {
    background-color: var(--brand-bg-page, #f5f5f5);
    background-image: var(--home-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* 页面容器 */
.container {
    width: 100%;
    max-width: 440px;
    padding: 20px 16px;
}

/* 首页 */
.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-box {
    width: 90px;
    height: 90px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(var(--brand-rgb), 0.25);
    margin-bottom: 20px;
    overflow: hidden;
    transition: width 0.2s, height 0.2s, border-radius 0.2s;
}

.logo-box.has-custom-logo {
    background: transparent;
    box-shadow: none;
}

.logo-box.logo-shape-circle {
    border-radius: 50%;
}

.logo-box.logo-shape-square {
    border-radius: 18px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.card-body {
    background: #ffffff;
    width: 100%;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-size: 15px;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-control {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.input-control:focus {
    border-color: var(--brand-soft);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: #a0aec0;
    stroke-width: 2;
    fill: none;
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(var(--brand-rgb), 0.3);
    transition: transform 0.1s ease, opacity 0.2s;
}

.btn-submit:active {
    transform: scale(0.98);
}

.notice-box {
    margin-top: 20px;
    background-color: var(--brand-notice);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.notice-texts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.notice-extra {
    display: block;
}

.notice-icon {
    color: var(--brand-soft);
    font-size: 14px;
    flex-shrink: 0;
}
