/* ============================================================
   hktps.com - Desktop/Main Stylesheet
   清新簡約白風格
   ============================================================ */

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

:root {
    --color-primary: #f97316;
    --color-primary-light: #fb923c;
    --color-primary-dark: #ea580c;
    --color-primary-bg: #fff4e6;
    --color-bg: #ffffff;
    --color-bg-alt: #fef9f3;
    --color-text: #292524;
    --color-text-secondary: #78716c;
    --color-text-muted: #a8a29e;
    --color-border: #f1e5d8;
    --color-card-shadow: rgba(249, 115, 22, 0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 2px 8px rgba(249, 115, 22, 0.06);
    --shadow-card-hover: 0 8px 20px rgba(249, 115, 22, 0.14);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
    --header-height: 64px;
    --content-max-width: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    background: linear-gradient(90deg, #f97316 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo-dot {
    color: var(--color-primary);
}

.desktop-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-bg);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background: var(--color-bg-alt);
}

/* Mobile slide-down menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 50%, #ffffff 100%);
    padding: 80px 24px;
    text-align: center;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(90deg, #f97316 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.hero-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 56px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--color-primary-dark);
}

/* === Quick Nav Grid (Icon buttons) === */
.quick-nav {
    max-width: var(--content-max-width);
    margin: -40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    background: var(--color-bg);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.quick-nav-item:hover {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.quick-nav-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.quick-nav-item:nth-child(1) .quick-nav-icon { background: linear-gradient(135deg, #f97316, #fdba74); }
.quick-nav-item:nth-child(2) .quick-nav-icon { background: linear-gradient(135deg, #f43f5e, #fda4af); }
.quick-nav-item:nth-child(3) .quick-nav-icon { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.quick-nav-item:nth-child(4) .quick-nav-icon { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.quick-nav-item:nth-child(5) .quick-nav-icon { background: linear-gradient(135deg, #10b981, #6ee7b7); }
.quick-nav-item:nth-child(6) .quick-nav-icon { background: linear-gradient(135deg, #f59e0b, #fcd34d); }

.quick-nav-icon svg {
    width: 24px;
    height: 24px;
}

.quick-nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* === Section === */
.section {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 60px 24px;
}

.section-alt {
    background: var(--color-bg-alt);
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(180deg, #f97316, #f43f5e);
}

.section-more {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--color-primary-dark);
}

/* === Cards === */
.card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.4;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.card-summary {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

/* === Article/News Grid === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card .card-cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #fff4e6, #ffe4cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2rem;
}

/* === Estate Cards === */
.estates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.estate-card .estate-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.estate-stat {
    flex: 1;
}

.estate-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.estate-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* === Stats Bar === */
.stats-bar {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.stat-item {}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* === Estate List Page === */
.page-header {
    background: linear-gradient(135deg, #fff4e6, #ffe8d2);
    padding: 48px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.estate-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* === Estate Detail Page === */
.estate-hero {
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #fff4e6, #ffe8d2);
}

.estate-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.estate-hero .estate-name-en {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.estate-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.estate-info-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.estate-info-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.info-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Progress bar for sold rate */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* === Transactions Page === */
.transactions-notice {
    text-align: center;
    padding: 80px 24px;
}

.transactions-notice .notice-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-primary);
}

.transactions-notice h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.transactions-notice p {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* === News List === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.news-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.news-item-cover {
    width: 160px;
    min-height: 100px;
    background: linear-gradient(135deg, #fff4e6, #ffe4cc);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.news-item-body {
    flex: 1;
}

/* === Article Detail === */
.article-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
}

.article-detail h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

/* === Forum Placeholder === */
.forum-placeholder {
    text-align: center;
    padding: 100px 24px;
}

.forum-placeholder .forum-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fff4e6, #ffe4cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--color-primary);
}

.forum-placeholder h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.forum-placeholder p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.forum-placeholder .notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.forum-placeholder .notify-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* === Login Page === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 48px 24px;
}

.login-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--color-border);
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text);
    font-family: var(--font-family);
    width: 100%;
    justify-content: center;
}

.google-btn:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
}

.google-btn svg {
    width: 20px;
    height: 20px;
}

/* === Static Pages (About, Privacy, Contact) === */
.static-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
}

.static-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.static-page h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 32px 0 16px;
}

.static-page p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.static-page ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.static-page li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

/* === Footer === */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 48px 24px 32px;
    margin-bottom: 0;
}

.footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 48px;
}

.footer-brand .footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-disclaimer {
    margin-top: 8px;
    font-style: italic;
}

/* === Mobile Bottom Nav === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.bottom-tab svg {
    width: 22px;
    height: 22px;
}

.bottom-tab.active {
    color: var(--color-primary);
}

.bottom-tab:hover {
    color: var(--color-primary);
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--color-text-secondary);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-border);
}

/* === Utility === */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* === Coming soon badge === */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--color-text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* === Region badges === */
.region-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.region-hk { background: #dbeafe; color: #1d4ed8; }
.region-kln { background: #fce7f3; color: #be185d; }
.region-nt { background: #dcfce7; color: #15803d; }
