/* 
 * 淘南京 - 首页专属样式
 */

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom-out 20s infinite alternate;
}

@keyframes zoom-out {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--white), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.search-container {
    max-width: 42rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-2xl);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    outline: none;
    color: var(--white);
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background-color: var(--white);
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Quick Links */
.quick-links {
    margin-top: -6rem;
    position: relative;
    z-index: 20;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.link-card {
    background: var(--white);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
    border-color: #fee2e2;
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -12px rgba(220, 38, 38, 0.1);
}

.link-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-box {
    width: 5rem;
    height: 5rem;
    border-radius: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.link-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box.orange { background-color: #fff7ed; color: #f97316; }
.icon-box.blue { background-color: #eff6ff; color: #3b82f6; }

.link-card-text h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

.link-card-text p {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.arrow-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    color: var(--text-light);
}

.link-card:hover .arrow-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Food Grid (Homepage Style) */
.food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .food-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.food-item {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .food-item {
        flex-direction: row;
        align-items: center;
    }
}

.food-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-light);
}

@media (min-width: 1200px) {
    .food-img-wrapper {
        width: 48%;
        flex-shrink: 0;
    }
}

.food-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.food-item:hover .food-img-wrapper img {
    transform: scale(1.1);
}

.food-info {
    flex: 1;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.food-name {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.food-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 700;
    color: var(--text-muted);
}

.food-comment {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
    position: relative;
    padding-left: 1.5rem;
}

.food-comment::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: #fee2e2;
    font-family: serif;
}

/* Spots Section */
.bg-section {
    background-color: var(--bg-light);
}

.max-w-xl {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.spots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .spots-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.spot-card {
    background: var(--white);
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.spot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
}

.spot-img-box {
    position: relative;
    height: 22rem;
    background-color: #e5e7eb;
    overflow: hidden;
}

.spot-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.spot-card:hover .spot-img-box img {
    transform: scale(1.1);
}

.time-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.625rem 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.time-badge i {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary-color);
}

.time-badge span {
    font-size: 0.875rem;
    font-weight: 800;
}

.spot-content {
    padding: 2.5rem;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.spot-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.3;
}

.spot-tags {
    display: flex;
    gap: 0.5rem;
}

.spot-tag {
    font-size: 0.75rem;
    background-color: #fef2f2;
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 0.625rem;
    font-weight: 700;
    white-space: nowrap;
}

.spot-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.spot-footer {
    padding-top: 1.75rem;
    border-top: 1px solid #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    display: flex;
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.more-btn {
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-main);
}

.more-btn:hover {
    color: var(--primary-color);
    gap: 0.625rem;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .search-container {
        border-radius: 1rem;
    }
    .food-img-wrapper, .spot-img-box {
        border-radius: 2rem;
    }
}
