/* ============================================
   Professional Cat Care Guide - Main Stylesheet
   ============================================ */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f0f2f5;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px;
        }
        
        @media (min-width: 768px) {
            .container {
                padding: 20px;
            }
        }
        
        header {
            background: white;
            color: #333;
            padding: 15px 0;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        @media (min-width: 768px) {
            header {
                padding: 20px 0;
                margin-bottom: 30px;
            }
        }
        
        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            flex-wrap: wrap;
        }
        
        @media (min-width: 768px) {
            .header-content {
                gap: 0;
            }
        }
        
        .profile-section {
            display: flex;
            align-items: center;
            gap: 0;
            max-width: 800px;
            margin: 0 auto;
        }
        
        @media (min-width: 768px) {
            .profile-section {
                gap: 0;
            }
        }
        
        .profile-pic {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #667eea;
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
            margin-right: 25px;
        }
        
        @media (min-width: 768px) {
            .profile-pic {
                width: 140px;
                height: 140px;
                margin-right: 30px;
            }
        }
        
        .profile-pic:hover {
            transform: scale(1.05);
        }
        
        .header-text h1 {
            font-size: 1.8em;
            margin-bottom: 8px;
            color: #333;
        }
        
        @media (min-width: 768px) {
            .header-text h1 {
                font-size: 2.5em;
                margin-bottom: 10px;
            }
        }
        
        .header-text p {
            font-size: 0.9em;
            color: #666;
            max-width: 500px;
            margin-bottom: 10px;
        }
        
        @media (min-width: 768px) {
            .header-text p {
                font-size: 1.1em;
                margin-bottom: 15px;
            }
        }
        
        .blog-stats {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        @media (min-width: 768px) {
            .blog-stats {
                gap: 20px;
                margin-top: 15px;
            }
        }
        
        .stat-item {
            background: #f0f2f5;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            color: #666;
        }
        
        @media (min-width: 768px) {
            .stat-item {
                padding: 8px 16px;
                font-size: 0.9em;
            }
        }
        
        nav {
            background: white;
            padding: 10px 0;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        @media (min-width: 768px) {
            nav {
                padding: 15px 0;
                margin-bottom: 30px;
            }
        }
        
        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        @media (max-width: 767px) {
            nav ul {
                gap: 10px;
            }
        }
        
        nav a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
            font-size: 0.9em;
        }
        
        @media (min-width: 768px) {
            nav a {
                padding: 10px 20px;
                font-size: 1em;
            }
        }
        
        nav a:hover, nav a.active {
            background: #667eea;
            color: white;
        }
        
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        @media (min-width: 768px) {
            .main-content {
                grid-template-columns: 1fr 350px;
                gap: 30px;
            }
        }
        
        .posts-section {
            background: transparent;
        }
        
        .sidebar {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            height: fit-content;
        }
        
        @media (min-width: 768px) {
            .sidebar {
                padding: 25px;
            }
        }
        
        .post-card {
            background: white;
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border: 1px solid #e4e6ea;
        }
        
        @media (min-width: 768px) {
            .post-card {
                padding: 20px;
                margin-bottom: 20px;
            }
        }
        
        .post-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        @media (min-width: 768px) {
            .post-header {
                gap: 15px;
                margin-bottom: 15px;
            }
        }
        
        .post-author-pic {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #667eea;
            flex-shrink: 0;
        }
        
        @media (min-width: 768px) {
            .post-author-pic {
                width: 50px;
                height: 50px;
            }
        }
        
        .post-author-info {
            flex: 1;
        }
        
        .post-author-name {
            font-weight: 600;
            color: #333;
            font-size: 1em;
            margin-bottom: 2px;
        }
        
        @media (min-width: 768px) {
            .post-author-name {
                font-size: 1.1em;
            }
        }
        
        .post-date {
            color: #666;
            font-size: 0.8em;
        }
        
        @media (min-width: 768px) {
            .post-date {
                font-size: 0.9em;
            }
        }
        
        .post-content-wrapper {
            margin-left: 0;
        }
        
        @media (min-width: 768px) {
            .post-content-wrapper {
                margin-left: 57px;
            }
        }
        
        .post-title {
            font-size: 1.2em;
            color: #333;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        @media (min-width: 768px) {
            .post-title {
                font-size: 1.3em;
                margin-bottom: 10px;
            }
        }
        
        .post-title a:hover {
            color: #667eea !important;
        }
        
        .post-content {
            color: #333;
            line-height: 1.6;
            font-size: 0.95em;
            margin-bottom: 12px;
        }
        
        .post-content p {
            margin-bottom: 15px;
        }
        
        .post-content p:last-child {
            margin-bottom: 0;
        }
        
        @media (min-width: 768px) {
            .post-content {
                font-size: 1em;
                margin-bottom: 15px;
            }
            
            .post-content p {
                margin-bottom: 20px;
            }
        }
        
        .post-image {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: 10px;
            margin-bottom: 12px;
        }
        
        @media (min-width: 768px) {
            .post-image {
                max-height: 500px;
                margin-bottom: 15px;
            }
        }
        
        /* 缩略图样式 */
        .post-image-thumbnail {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
            transition: transform 0.3s ease;
        }
        
        @media (min-width: 768px) {
            .post-image-thumbnail {
                height: 150px;
                margin-bottom: 12px;
            }
        }
        
        .post-image-thumbnail:hover {
            transform: scale(1.02);
        }
        
        .read-more {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.8em;
            transition: all 0.3s ease;
        }
        
        @media (min-width: 768px) {
            .read-more {
                padding: 8px 16px;
                font-size: 0.9em;
            }
        }
        
        .read-more:hover {
            background: #5a6fd8;
            transform: translateY(-1px);
        }
        
        .ad-section {
            background: #f8f9fa;
            border: 2px dashed #ddd;
            border-radius: 10px;
            padding: 0;
            text-align: center;
            margin: 15px 0;
        }
        
        @media (min-width: 768px) {
            .ad-section {
                padding: 0;
                margin: 20px 0;
            }
        }
        
        .visit-counter {
            background: #667eea;
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 15px;
        }
        
        @media (min-width: 768px) {
            .visit-counter {
                padding: 20px;
                margin-bottom: 20px;
            }
        }
        
        .visit-counter h3 {
            margin-bottom: 8px;
            font-size: 1em;
        }
        
        @media (min-width: 768px) {
            .visit-counter h3 {
                margin-bottom: 10px;
                font-size: 1.1em;
            }
        }
        
        .visit-counter p {
            font-size: 1.2em;
            font-weight: bold;
        }
        
        @media (min-width: 768px) {
            .visit-counter p {
                font-size: 1.3em;
            }
        }
        
        .about-section {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
        }
        
        @media (min-width: 768px) {
            .about-section {
                padding: 20px;
                margin-bottom: 20px;
            }
        }
        
        .about-section h3 {
            color: #333;
            margin-bottom: 8px;
        }
        
        @media (min-width: 768px) {
            .about-section h3 {
                margin-bottom: 10px;
            }
        }
        
        footer {
            background: white;
            color: #666;
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        @media (min-width: 768px) {
            footer {
                padding: 20px;
                margin-top: 30px;
            }
        }
        
        /* 移动端特殊优化 */
        @media (max-width: 767px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .profile-section {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                flex-direction: column;
                gap: 8px;
            }
            
            .blog-stats {
                flex-direction: column;
                gap: 8px;
            }
            
            .post-content-wrapper {
                margin-left: 0;
            }
            
            /* 优化移动端图片加载 */
            .post-image {
                height: 180px;
                object-fit: cover;
            }
            
            /* 移动端字体优化 */
            .post-title {
                font-size: 1.1em;
            }
            
            .post-content {
                font-size: 0.9em;
            }
        }
        
        /* 分类导航样式 */
        .category-nav {
            background: white;
            padding: 15px 0;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow-x: auto;
        }
        
        .category-nav ul {
            list-style: none;
            display: flex;
            justify-content: flex-start;
            gap: 15px;
            padding: 0 20px;
            margin: 0;
            white-space: nowrap;
        }
        
        .category-nav a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .category-nav a:hover, .category-nav a.active {
            background: #667eea;
            color: white;
        }
        
        /* 专家资料区域 */
        .expert-profile {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .expert-profile h3 {
            margin-bottom: 15px;
            color: #333;
        }
        
        /* 统计卡片 */
        .stats-section {
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .stat-icon {
            font-size: 2em;
            color: #667eea;
        }
        
        .stat-content {
            flex: 1;
        }
        
        .stat-number {
            font-size: 1.5em;
            font-weight: bold;
            color: #333;
        }
        
        .stat-label {
            font-size: 0.8em;
            color: #666;
        }
        
        /* 快速提示区域 */
        .quick-tips {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .quick-tips h3 {
            margin-bottom: 15px;
            color: #333;
        }
        
        .tip-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .tip-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .tip-icon {
            font-size: 1.5em;
            color: #667eea;
            flex-shrink: 0;
        }
        
        .tip-content strong {
            display: block;
            margin-bottom: 5px;
            color: #333;
        }
        
        .tip-content p {
            font-size: 0.85em;
            color: #666;
            margin: 0;
        }
        
        /* 新闻订阅区域 */
        .newsletter-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .newsletter-section h3 {
            margin-bottom: 10px;
        }
        
        .newsletter-section p {
            margin-bottom: 15px;
            font-size: 0.9em;
        }
        
        .newsletter-form input {
            background: rgba(255,255,255,0.9);
            border: none;
        }
        
        .newsletter-form button {
            background: white;
            color: #667eea;
            font-weight: bold;
        }
        
        .newsletter-form button:hover {
            background: #f8f9fa;
        }
        
        /* 移动端优化 */
        @media (max-width: 767px) {
            .category-nav ul {
                padding: 0 15px;
                gap: 10px;
            }
            
            .category-nav a {
                padding: 6px 12px;
                font-size: 0.8em;
            }
            
            .stat-card {
                padding: 12px;
            }
            
            .stat-icon {
                font-size: 1.5em;
            }
            
            .stat-number {
                font-size: 1.2em;
            }
            
            .tip-item {
                gap: 10px;
            }
            
            .tip-icon {
                font-size: 1.3em;
            }
        }
