* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #faf8f5; font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif; color: #1e1c1a; padding: 2rem 1.5rem; }
a { color: #6a4e2e; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.brand { color: #6a4e2e; font-weight: 800; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #eadfd5; }
.account-links { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; font-size: 0.86rem; }
.account-links a, .primary-link { background: #f3ede8; border-radius: 999px; color: #5a4430; padding: 0.42rem 0.9rem; }
.account-links .primary-link { background: #2c2a27; color: #fff; }
.hero { text-align: center; margin-bottom: 2rem; }
.badge { display: inline-block; background: #ece4db; padding: 0.3rem 1rem; border-radius: 40px; font-size: 0.8rem; font-weight: 500; color: #a67548; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, #2c2a27 0%, #7a5a3a 100%); background-clip: text; -webkit-background-clip: text; color: transparent; margin-bottom: 0.5rem; }
.sub { font-size: 1rem; color: #5f5b56; max-width: 700px; margin: 0 auto; }
.search-dual { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0 1.8rem; }
.keyword-search, .image-search, .auth-card, .admin-card { background: white; border-radius: 1.8rem; padding: 1.2rem 1.5rem; border: 1px solid #e8dfd7; }
.admin-card { margin-bottom: 1.2rem; }
.keyword-search { flex: 2; }
.image-search { flex: 1.5; }
.section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #b58f68; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.input-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.input-row input, .input-row select, .auth-card input { flex: 1; min-width: 190px; padding: 0.8rem 1rem; border-radius: 2rem; border: 1px solid #e2d6cd; background: #fefcf9; font-size: 0.9rem; }
.search-btn { background: #2c2a27; color: white; border: none; padding: 0.8rem 1.6rem; border-radius: 2rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; justify-content: center; }
.search-btn:hover { background: #4a3b2c; transform: translateY(-1px); }
.platform-buttons { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.plat-link { background: #f3ede8; padding: 0.4rem 1rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 500; color: #6a4e2e; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; }
.plat-link:hover { background: #e3d6cb; }
.upload-area { border: 2px dashed #cbbcaa; border-radius: 1.2rem; padding: 1rem; text-align: center; background: #fefaf5; cursor: pointer; margin-bottom: 12px; transition: 0.2s; }
.upload-area:hover { background: #f8f0e8; border-color: #b58f68; }
.img-preview { max-width: 100%; max-height: 100px; margin-top: 8px; border-radius: 12px; display: none; object-fit: cover; }
.hint { font-size: 0.7rem; color: #a2866b; margin-top: 8px; }
.stores-section, .visual-results { background: linear-gradient(135deg, #fff8f0 0%, #fef5ea 100%); border-radius: 1.8rem; padding: 1.5rem; margin: 1.5rem 0 0; border: 1px solid #e9ddcf; }
.stores-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem; border-bottom: 2px solid #e6d5c4; padding-bottom: 0.8rem; flex-wrap: wrap; }
.stores-header h2 { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #3e2c1c; margin: 0; }
.trend-badge { background: #c9ab8a; color: white; padding: 0.2rem 0.8rem; border-radius: 30px; font-size: 0.7rem; }
.department-stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store-link { background: white; border: 1px solid #e2d2c2; padding: 0.6rem 1.5rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: #5a4430; text-decoration: none; display: inline-block; transition: 0.2s; }
.store-link:hover { background: #2c2a27; color: white; border-color: #2c2a27; transform: translateY(-2px); }
.type-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.type-chips span { background: #fff; border: 1px solid #eadfd5; border-radius: 999px; color: #6a4e2e; font-size: 0.78rem; padding: 0.34rem 0.72rem; }
.result-grid { columns: 4 220px; column-gap: 1rem; }
.result-card { break-inside: avoid; background: #fff; border: 1px solid #eadfd5; border-radius: 1.2rem; margin: 0 0 1rem; overflow: hidden; box-shadow: 0 8px 24px rgba(76, 58, 39, 0.06); }
.result-image-link { display: block; background: #f7f3ef; }
.result-image-link img { display: block; width: 100%; min-height: 120px; object-fit: cover; }
.result-body { padding: 0.85rem; display: grid; gap: 0.38rem; }
.result-source { color: #77675a; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-title { color: #1e1c1a; font-weight: 700; line-height: 1.35; }
.result-body p { color: #5f5b56; font-size: 0.86rem; line-height: 1.5; }
.result-url { color: #2f7d3d; font-size: 0.76rem; overflow-wrap: anywhere; }
.empty-results { background: #fff; border-radius: 1rem; color: #8a6847; padding: 1rem; }
footer { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e2d5ca; font-size: 0.7rem; color: #9b846e; }
.auth-page { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); }
.auth-card h1, .admin-card h1 { color: #2c2a27; background: none; -webkit-text-fill-color: currentColor; font-size: 1.8rem; }
.auth-card p, .admin-card p { color: #74665a; margin-bottom: 1rem; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card label { display: grid; gap: 0.4rem; color: #5f5b56; font-size: 0.88rem; }
.auth-card input { min-width: 0; width: 100%; border-radius: 1rem; }
.auth-links { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.9rem; }
.notice { padding: 0.75rem 0.9rem; border-radius: 1rem; margin-bottom: 1rem; background: #edf7ed; color: #2c6b33; }
.notice.error { background: #fff0ee; color: #a33a2b; }
.admin-wrap { max-width: 1280px; }
.settings-form { display: grid; gap: 1rem; margin-top: 1rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-grid label { display: grid; gap: 0.4rem; color: #5f5b56; font-size: 0.88rem; }
.settings-grid input { width: 100%; padding: 0.75rem 0.9rem; border-radius: 1rem; border: 1px solid #e2d6cd; background: #fefcf9; }
.logo-preview { display: flex; align-items: center; gap: 0.7rem; color: #8a6847; }
.logo-preview img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid #eadfd5; background: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
th, td { padding: 0.8rem; text-align: left; border-bottom: 1px solid #eee5dc; white-space: nowrap; }
th { color: #8a6847; background: #fdf8f2; }
.pill { display: inline-flex; border-radius: 999px; padding: 0.22rem 0.6rem; background: #f3ede8; color: #6a4e2e; font-size: 0.76rem; }
.pill.ok { background: #e8f7ed; color: #27743a; }
.pill.muted { background: #f1f1f1; color: #777; }
.actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.actions form { display: inline; }
.actions button { border: 0; border-radius: 999px; padding: 0.35rem 0.65rem; background: #f3ede8; color: #5a4430; cursor: pointer; }
.actions .danger { background: #fff0ee; color: #a33a2b; }
@media (max-width: 750px) {
    body { padding: 1rem; }
    .search-dual { flex-direction: column; }
    .search-btn { width: 100%; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .settings-grid { grid-template-columns: 1fr; }
}
