/* ============================================================
   BotIP IP授权交易智能体 - 样式文件
   主色调：深紫色(#4A1942) + 金色(#FFD700) + 深色背景
   ============================================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 50%, #1A1A4E 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #FFD700, #F0C420, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.85;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 215, 0, 0.3);
    margin-left: 4px;
    color: #E8D5B7;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #E8D5B7;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: #FFD700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Flash Messages */
.flash-messages {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.flash-message {
    padding: 12px 0;
    font-size: 14px;
}

.flash-error {
    color: #c53030;
}

.flash-success {
    color: #38a169;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: #a0aec0;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.site-footer p {
    color: #8892b0;
}

.footer-sub {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #4A1942;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.btn-outline-dark {
    background: transparent;
    color: #4A1942;
    border: 1px solid rgba(74, 25, 66, 0.3);
}

.btn-outline-dark:hover {
    background: #4A1942;
    color: #FFD700;
    border-color: #4A1942;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   Hero Section (首页)
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 50%, #1A1A4E 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #E8D5B7;
}

.hero-search-form {
    max-width: 560px;
    margin: 0 auto 50px;
}

.hero-search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 15px;
    background: transparent;
    border-radius: 50px;
    color: #333;
}

.hero-search-btn {
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #5A2352, #7B3D6C);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #E8D5B7;
    opacity: 0.8;
}

/* ============================================================
   通用 Section
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 10px;
}

.title-icon {
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

/* ============================================================
   分类导航
   ============================================================ */
.category-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

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

.category-card {
    background: white;
    border-radius: 16px;
    padding: 28px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A1942, #FFD700);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(74, 25, 66, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
}

.category-count {
    font-size: 13px;
    color: #718096;
}

/* ============================================================
   精选IP
   ============================================================ */
.featured-section {
    padding: 60px 0;
    background: white;
}

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

.featured-card {
    background: linear-gradient(135deg, #fff 0%, #faf9f5 100%);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(74, 25, 66, 0.12);
    border-color: rgba(255, 215, 0, 0.5);
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #4A1942;
}

.level-badge.level-S {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #4A1942;
}

.level-badge.level-A {
    background: linear-gradient(135deg, #6B2D5C, #4A1942);
    color: #FFD700;
}

.level-badge.level-B {
    background: linear-gradient(135deg, #2D1B69, #1A1A4E);
    color: #FFD700;
}

.level-badge.level-C {
    background: #edf2f7;
    color: #4a5568;
}

.level-badge.small {
    padding: 2px 8px;
    font-size: 11px;
}

.type-badge {
    font-size: 12px;
    color: #718096;
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 6px;
}

.featured-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.featured-ip-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-licensor {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.featured-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-tag {
    padding: 3px 8px;
    background: #f0e6d3;
    color: #8B6914;
    border-radius: 4px;
    font-size: 11px;
}

.featured-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-price .price-label {
    font-size: 12px;
    color: #a0aec0;
    display: block;
    margin-bottom: 2px;
}

.featured-price .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #4A1942;
}

.featured-arrow {
    font-size: 20px;
    color: #FFD700;
    transition: transform 0.3s;
}

.featured-card:hover .featured-arrow {
    transform: translateX(4px);
}

/* ============================================================
   IP列表区
   ============================================================ */
.ip-list-section {
    padding: 60px 0;
    background: #f7fafc;
}

.ip-list-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.filter-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-list {
    list-style: none;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-item:hover {
    background: #f7fafc;
}

.filter-item.active {
    background: #faf0e6;
    color: #4A1942;
}

.filter-item a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.filter-count {
    background: #edf2f7;
    color: #718096;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.filter-item.active .filter-count {
    background: #FFD700;
    color: #4A1942;
}

.filter-tips .tips-list {
    list-style: none;
    padding: 0;
}

.filter-tips .tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

.filter-tips .tips-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
}

/* IP列表主区域 */
.ip-list-main {
    min-width: 0;
}

.results-header {
    margin-bottom: 20px;
}

.results-title {
    font-size: 18px;
    color: #1a202c;
}

.results-title em {
    color: #4A1942;
    font-style: normal;
}

.results-title small {
    font-size: 13px;
    color: #718096;
    font-weight: normal;
    margin-left: 10px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ip-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
}

.ip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(74, 25, 66, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.ip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #faf9f5 0%, #f5f0e6 100%);
}

.type-mini {
    font-size: 12px;
    color: #718096;
}

.ip-card-body {
    padding: 18px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.ip-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ip-licensor {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.ip-regions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.region-icon {
    font-size: 12px;
}

.region-tag {
    padding: 3px 8px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 4px;
    font-size: 11px;
}

.ip-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0e6d3, #faf0e6);
    color: #8B6914;
    border-radius: 6px;
    font-size: 11px;
}

.ip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.ip-price .price-label {
    font-size: 11px;
    color: #a0aec0;
    display: block;
    margin-bottom: 2px;
}

.ip-price .price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4A1942;
}

.ip-price .price-amount small {
    font-size: 11px;
    font-weight: normal;
    color: #a0aec0;
}

.inquiry-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.inquiry-btn:hover {
    background: linear-gradient(135deg, #5A2352, #7B3D6C);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.page-link:hover {
    background: #4A1942;
    color: #FFD700;
}

.page-info {
    color: #718096;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1a202c;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 20px;
}

/* ============================================================
   授权流程
   ============================================================ */
.process-section {
    padding: 60px 0;
    background: white;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #faf9f5 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #4A1942;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 12px;
    margin-top: 8px;
}

.process-step h4 {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

.step-arrow {
    color: #FFD700;
    font-size: 24px;
    padding-top: 50px;
}

/* ============================================================
   详情页
   ============================================================ */
.detail-section {
    padding: 30px 0 60px;
}

.detail-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #718096;
}

.detail-breadcrumb a {
    color: #4A1942;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.crumb-sep {
    margin: 0 8px;
}

.crumb-current {
    color: #2d3748;
    font-weight: 500;
}

.detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.detail-header {
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #faf9f5 0%, #f5f0e6 100%);
}

.detail-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-有效 {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.status-到期 {
    background: #fed7d7;
    color: #742a2a;
}

.detail-title {
    font-size: 28px;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 16px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.detail-meta-item {
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    font-size: 14px;
}

.detail-body {
    padding: 30px 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.detail-left {
    min-width: 0;
}

.detail-block {
    margin-bottom: 28px;
}

.block-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.region-tags,
.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.region-tags .region-tag {
    padding: 6px 14px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 8px;
    font-size: 13px;
}

.category-tags .cat-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0e6d3, #faf0e6);
    color: #8B6914;
    border-radius: 8px;
    font-size: 13px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-item {
    padding: 10px 20px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.date-arrow {
    color: #FFD700;
    font-size: 18px;
}

.compliance-box {
    padding: 16px;
    background: #fffaf0;
    border-left: 4px solid #FFD700;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #744210;
    line-height: 1.8;
    white-space: pre-line;
}

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
}

.asset-icon {
    font-size: 18px;
}

/* 右侧价格卡片 */
.detail-right {
    position: sticky;
    top: 80px;
    align-self: start;
}

.price-card {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 100%);
    border-radius: 16px;
    overflow: hidden;
    color: white;
    margin-bottom: 16px;
}

.price-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.price-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.price-level {
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.price-card-body {
    padding: 24px;
}

.price-main {
    text-align: center;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 20px;
    color: #FFD700;
    vertical-align: top;
}

.price-value {
    font-size: 40px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    color: #E8D5B7;
    opacity: 0.8;
}

.price-desc {
    text-align: center;
    font-size: 13px;
    color: #E8D5B7;
    opacity: 0.7;
    margin-bottom: 20px;
}

.price-details {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.price-detail-item span:first-child {
    color: #E8D5B7;
    opacity: 0.8;
}

.price-detail-item span:last-child {
    color: white;
    font-weight: 500;
}

.price-note {
    margin-top: 12px;
    font-size: 11px;
    color: #E8D5B7;
    opacity: 0.6;
    text-align: center;
    line-height: 1.6;
}

/* 销售数据卡片 */
.sales-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sales-card h4 {
    font-size: 14px;
    color: #1a202c;
    margin-bottom: 16px;
}

.sales-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sales-stat {
    text-align: center;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.sales-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4A1942;
    margin-bottom: 4px;
}

.sales-label {
    font-size: 12px;
    color: #718096;
}

/* 详情底部 */
.detail-footer {
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
}

.back-btn {
    color: #4A1942;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-btn:hover {
    text-decoration: underline;
}

.detail-actions {
    display: flex;
    gap: 10px;
}

/* 相关IP */
.related-section {
    margin-top: 40px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 25, 66, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.related-type {
    font-size: 16px;
}

.related-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.4;
}

.related-licensor {
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
}

.related-price {
    font-size: 15px;
    font-weight: 700;
    color: #4A1942;
}

.related-price small {
    font-size: 11px;
    font-weight: normal;
    color: #a0aec0;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-page h2 {
    color: #c53030;
    margin-bottom: 20px;
}

/* ============================================================
   询价页
   ============================================================ */
.inquiry-section {
    padding: 30px 0 60px;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
}

.panel-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-title span {
    margin-right: 6px;
}

.selected-ip-info {
    text-align: center;
    padding: 10px 0;
}

.ip-level-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ip-level-badge.level-S {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #4A1942;
}

.ip-level-badge.level-A {
    background: linear-gradient(135deg, #6B2D5C, #4A1942);
    color: #FFD700;
}

.ip-level-badge.level-B {
    background: linear-gradient(135deg, #2D1B69, #1A1A4E);
    color: #FFD700;
}

.ip-level-badge.level-C {
    background: #edf2f7;
    color: #4a5568;
}

.selected-ip-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.selected-ip-licensor {
    font-size: 14px;
    color: #718096;
    margin-bottom: 4px;
}

.selected-ip-type {
    font-size: 13px;
    color: #a0aec0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 10px;
}

.form-label .required {
    color: #e53e3e;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafbfc;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4A1942;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 25, 66, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 选项卡片 */
.option-grid {
    display: grid;
    gap: 12px;
}

.type-options {
    grid-template-columns: repeat(3, 1fr);
}

.term-options {
    grid-template-columns: repeat(3, 1fr);
}

.scope-options {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    cursor: pointer;
}

.option-card input {
    display: none;
}

.option-card-inner {
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
    background: #fafbfc;
    position: relative;
}

.option-card:hover .option-card-inner {
    border-color: #cbd5e0;
    background: white;
}

.option-card.selected .option-card-inner {
    border-color: #4A1942;
    background: #faf0e6;
}

.option-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.option-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    line-height: 1.4;
}

.option-desc.small {
    font-size: 11px;
}

.option-mult {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 右侧价格面板 */
.inquiry-right {
    position: sticky;
    top: 80px;
    align-self: start;
}

.price-panel {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 100%);
    border-radius: 16px;
    overflow: hidden;
    color: white;
    margin-bottom: 20px;
}

.price-panel-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.price-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.price-badge {
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-radius: 6px;
    font-size: 12px;
}

.price-panel-body {
    padding: 24px;
}

.total-price {
    text-align: center;
    margin-bottom: 8px;
}

.total-label {
    display: block;
    font-size: 13px;
    color: #E8D5B7;
    opacity: 0.8;
    margin-bottom: 8px;
}

.total-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.total-amount .currency {
    font-size: 24px;
    color: #FFD700;
}

.total-amount .amount {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
}

.total-unit {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #E8D5B7;
    opacity: 0.7;
    margin-top: 4px;
}

.annual-price {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #E8D5B7;
    margin-bottom: 20px;
}

.annual-price strong {
    color: #FFD700;
    font-weight: 600;
}

.price-breakdown {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #E8D5B7;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.breakdown-label {
    color: #E8D5B7;
    opacity: 0.8;
}

.mult-tag {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.breakdown-value {
    color: white;
    font-weight: 500;
}

.extra-fees {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.fee-label {
    color: #E8D5B7;
    opacity: 0.8;
}

.fee-value {
    color: #FFD700;
    font-weight: 500;
}

/* 申请面板 */
.apply-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.submit-btn {
    margin-top: 10px;
}

.apply-note {
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 12px;
}

/* ============================================================
   申请结果页
   ============================================================ */
.result-section {
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.result-card {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.result-title {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 12px;
}

.result-subtitle {
    font-size: 15px;
    color: #718096;
    margin-bottom: 32px;
}

.result-info-card {
    background: linear-gradient(135deg, #faf9f5 0%, #f5f0e6 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-badge {
    font-size: 13px;
    color: #718096;
}

.info-no {
    font-size: 16px;
    font-weight: 700;
    color: #4A1942;
    font-family: 'Courier New', monospace;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #a0aec0;
}

.info-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.info-value.price {
    color: #4A1942;
    font-size: 18px;
    font-weight: 700;
}

.info-tip {
    font-size: 12px;
    color: #744210;
    background: #fffaf0;
    padding: 10px 12px;
    border-radius: 6px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 状态查询页 */
.status-query-panel {
    max-width: 700px;
    margin: 0 auto;
}

.query-title {
    text-align: center;
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 10px;
}

.query-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 32px;
}

.query-form {
    margin-bottom: 32px;
}

.query-input-wrap {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.query-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 15px;
    background: transparent;
    border-radius: 50px;
}

.query-btn {
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.query-btn:hover {
    background: linear-gradient(135deg, #5A2352, #7B3D6C);
}

.status-result-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.status-header {
    padding: 24px;
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.status-badge.status-待审核 {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.status-badge.status-审核中 {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.status-badge.status-已通过 {
    background: rgba(72, 187, 120, 0.2);
    color: #48BB78;
}

.status-badge.status-已拒绝 {
    background: rgba(245, 101, 101, 0.2);
    color: #FC8181;
}

.status-badge.status-已签约 {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.status-no {
    font-size: 13px;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.status-body {
    padding: 24px;
}

.status-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.status-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 12px;
    color: #a0aec0;
}

.status-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.status-value.price {
    color: #4A1942;
    font-size: 16px;
    font-weight: 700;
}

.status-time {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.time-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-label {
    font-size: 12px;
    color: #a0aec0;
}

.time-value {
    font-size: 13px;
    color: #4a5568;
}

.status-remark {
    padding: 12px 16px;
    background: #fffaf0;
    border-radius: 8px;
    font-size: 13px;
    color: #744210;
}

.remark-label {
    font-weight: 500;
}

/* 状态时间线 */
.status-timeline {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: #e2e8f0;
}

.timeline-item.done:not(:last-child)::after {
    background: #48BB78;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

.timeline-item.done .timeline-dot {
    background: #48BB78;
}

.timeline-item.rejected .timeline-dot {
    background: #FC8181;
}

.timeline-content h4 {
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 11px;
    color: #a0aec0;
}

.timeline-item.done .timeline-content h4 {
    color: #38a169;
}

.timeline-item.rejected .timeline-content h4 {
    color: #e53e3e;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-grid {
        grid-template-columns: 1fr;
    }

    .ip-list-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .inquiry-layout {
        grid-template-columns: 1fr;
    }

    .inquiry-right {
        position: static;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-right {
        position: static;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-wrap: wrap;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .type-options,
    .term-options,
    .scope-options {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-header,
    .detail-body,
    .detail-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .status-info-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 40px 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .hero-search-box {
        flex-direction: column;
        border-radius: 16px;
    }

    .hero-search-input {
        padding: 14px 20px;
    }

    .hero-search-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .total-amount .amount {
        font-size: 36px;
    }

    .query-input-wrap {
        flex-direction: column;
        border-radius: 16px;
    }

    .query-btn {
        width: 100%;
        justify-content: center;
    }
}
