/* 深圳旅游官方网站样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #f0f0f0;
}

/* 主视觉区 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><g fill-opacity="0.1"><path fill="%23ffffff" d="M0 0h200v200H0zM200 200h200v200H200zM400 0h200v200H400zM600 200h200v200H600zM800 0h200v200H800zM1000 200h200v200h-200zM200 400h200v200H200zM600 400h200v200H600zM1000 400h200v200h-200z"/></g></svg>');
    background-size: cover;
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 城市介绍 */
.intro {
    padding: 80px 20px;
    background: white;
}

.intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #667eea;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.intro-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.intro-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.intro-card p {
    color: #666;
    line-height: 1.8;
}

/* 通用区块样式 */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 景点区块 */
.attractions {
    background: #f8f9fa;
}

.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    font-size: 4rem;
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.time, .location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 美食区块 */
.food {
    background: white;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.food-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.food-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.food-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.food-card p {
    color: #666;
    line-height: 1.8;
}

/* 住宿区块 */
.accommodation {
    background: #f8f9fa;
}

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

.area-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.area-card h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.area-desc {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hotel-list {
    margin-bottom: 1.5rem;
}

.hotel-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hotel-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.hotel-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.feature {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.suitable {
    color: #28a745;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    background: #d4edda;
    border-radius: 8px;
}

/* 交通区块 */
.transportation {
    background: white;
}

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

.transport-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.transport-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.transport-card h3 {
    margin-bottom: 1.5rem;
}

.transport-card ul {
    list-style: none;
    text-align: left;
}

.transport-card li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.transport-card strong {
    color: #f0f0f0;
}

/* 攻略区块 */
.guide {
    background: #f8f9fa;
}

.route-section, .tips-section {
    margin-bottom: 3rem;
}

.route-section h3, .tips-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
}

.route-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.route-card h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.route-detail p {
    color: #666;
    line-height: 2;
    margin-bottom: 0.5rem;
}

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

.tip-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tip-item h4 {
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.2rem;
}

.tip-item p {
    color: #666;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f0f0f0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #888;
    margin-bottom: 0.5rem;
}

.update-time {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .intro h2, section h2 {
        font-size: 2rem;
    }

    .attraction-grid,
    .food-grid,
    .area-grid,
    .transport-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 链接悬停效果 */
a {
    transition: color 0.3s;
}

/* 卡片悬停效果增强 */
.attraction-card,
.food-card,
.tip-item {
    transition: all 0.3s ease;
}

/* 标签样式 */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attraction-card,
.food-card,
.area-card,
.transport-card,
.route-card,
.tip-item {
    animation: fadeIn 0.6s ease-out;
}