/* ========================================
   困困狗 - 治愈系慢生活站 全站样式
   CSS前缀: kk-
   配色: 米色(#F5F5DC) 淡蓝(#ADD8E6) 暖黄(#FDFD96) 深灰(#696969)
   ======================================== */

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

:root {
  --kk-beige: #F5F5DC;
  --kk-light-blue: #ADD8E6;
  --kk-warm-yellow: #FDFD96;
  --kk-dark-gray: #696969;
  --kk-white: #FFFEF9;
  --kk-cream: #FFF8E7;
  --kk-soft-pink: #FFE4E1;
  --kk-border: #E8E0D0;
  --kk-shadow: rgba(105, 105, 105, 0.1);
  --kk-radius: 16px;
  --kk-font-cn: 'Quicksand', 'Noto Sans SC', sans-serif;
  --kk-font-display: 'Quicksand', cursive;
}

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

body {
  font-family: var(--kk-font-cn);
  color: var(--kk-dark-gray);
  background-color: var(--kk-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--kk-dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--kk-light-blue);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kk-font-display);
  color: #5a5a5a;
  line-height: 1.4;
}

/* --- Navigation --- */
.kk-header {
  background-color: rgba(245, 245, 220, 0.92);
  padding: 1rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--kk-border);
}

.kk-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kk-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--kk-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #5a5a5a;
}

.kk-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kk-warm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.kk-nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.kk-nav-links a {
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.kk-nav-links a:hover {
  color: var(--kk-light-blue);
  border-bottom-color: var(--kk-light-blue);
  text-decoration: none;
}

.kk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.kk-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--kk-dark-gray);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .kk-hamburger {
    display: flex;
  }
  .kk-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kk-beige);
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--kk-border);
    box-shadow: 0 4px 12px var(--kk-shadow);
  }
  .kk-nav-links.kk-active {
    display: flex;
  }
}

/* --- Hero Section --- */
.kk-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kk-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.kk-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 248, 231, 0.3);
  z-index: 1;
}

.kk-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.kk-hero-content h1 {
  font-size: 2.5rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.kk-hero-content p {
  font-size: 1.2rem;
  color: #5a5a5a;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.kk-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: kk-bounce 2s infinite;
  font-size: 1.5rem;
  color: var(--kk-dark-gray);
}

@keyframes kk-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Section Base --- */
.kk-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.kk-section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.kk-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--kk-light-blue);
  border-radius: 2px;
}

/* --- Card Grid --- */
.kk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.kk-card {
  background: var(--kk-white);
  border-radius: var(--kk-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--kk-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(105, 105, 105, 0.15);
}

.kk-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kk-card-body {
  padding: 1.2rem;
}

.kk-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.kk-card-text {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

.kk-card-meta {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #aaa;
}

/* --- Pet Gallery Masonry --- */
.kk-masonry {
  columns: 3;
  column-gap: 1rem;
}

.kk-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--kk-radius);
  overflow: hidden;
  position: relative;
}

.kk-masonry-item img {
  width: 100%;
  display: block;
  border-radius: var(--kk-radius);
}

.kk-masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kk-masonry-item:hover .kk-masonry-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .kk-masonry { columns: 2; }
}

@media (max-width: 480px) {
  .kk-masonry { columns: 1; }
}

/* --- Horizontal Scroll --- */
.kk-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.kk-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.kk-scroll-container::-webkit-scrollbar-thumb {
  background: var(--kk-light-blue);
  border-radius: 3px;
}

.kk-scroll-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--kk-radius);
  overflow: hidden;
  background: var(--kk-white);
  box-shadow: 0 2px 8px var(--kk-shadow);
}

/* --- Music Player --- */
.kk-player {
  background: var(--kk-white);
  border-radius: var(--kk-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 12px var(--kk-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.kk-player-cover {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.kk-player-info {
  flex: 1;
}

.kk-player-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.kk-player-artist {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
}

.kk-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kk-player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--kk-light-blue);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.kk-player-btn:hover {
  transform: scale(1.1);
}

.kk-progress-bar {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.kk-progress-fill {
  height: 100%;
  width: 35%;
  background: var(--kk-light-blue);
  border-radius: 2px;
}

/* --- Book Shelf --- */
.kk-bookshelf {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.kk-book {
  width: 140px;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.kk-book-cover {
  width: 140px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.kk-book:hover .kk-book-cover {
  transform: rotate(-3deg) scale(1.05);
}

.kk-book-title {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Membership CTA --- */
.kk-membership {
  position: relative;
  border-radius: var(--kk-radius);
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
  color: #5a5a5a;
}

.kk-membership-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.kk-membership h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.kk-membership-perks {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.kk-perk {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px var(--kk-shadow);
}

.kk-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--kk-light-blue);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.3s ease;
  text-decoration: none;
}

.kk-btn:hover {
  transform: scale(0.97);
  background: #8fc9db;
  color: white;
  text-decoration: none;
}

/* --- Announcement Board --- */
.kk-board {
  background: #D2B48C;
  border-radius: var(--kk-radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.kk-note {
  background: var(--kk-warm-yellow);
  padding: 1.2rem;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
  position: relative;
}

.kk-note:nth-child(2) { transform: rotate(1deg); }
.kk-note:nth-child(3) { transform: rotate(-2deg); }
.kk-note:nth-child(4) { transform: rotate(0.5deg); }

.kk-note:hover {
  transform: rotate(0deg) scale(1.03);
}

.kk-note::before {
  content: '📌';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
}

.kk-note-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.kk-note-text {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* --- Footer --- */
.kk-footer {
  background: var(--kk-beige);
  border-top: 1px solid var(--kk-border);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

.kk-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .kk-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.kk-footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #5a5a5a;
}

.kk-footer-col p,
.kk-footer-col a {
  font-size: 0.85rem;
  line-height: 2;
  color: #888;
}

.kk-footer-col a:hover {
  color: var(--kk-light-blue);
}

.kk-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .kk-social-links { justify-content: center; }
}

.kk-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kk-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.kk-social-links a:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.kk-subscribe {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .kk-subscribe { justify-content: center; }
}

.kk-subscribe input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--kk-border);
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  flex: 1;
  max-width: 200px;
}

.kk-subscribe button {
  padding: 0.5rem 1rem;
  background: var(--kk-light-blue);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

.kk-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kk-border);
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

.kk-footer-bottom a {
  color: #999;
}

.kk-footer-bottom a:hover {
  color: var(--kk-light-blue);
}

.kk-cert-badge {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  display: inline;
  margin-right: 4px;
}

.kk-honor {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #aaa;
}

/* --- Page Banner --- */
.kk-page-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kk-page-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kk-page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.kk-page-banner-text {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
}

.kk-page-banner-text h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.kk-page-banner-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- Radio Page --- */
.kk-radio-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.kk-radio-card {
  background: var(--kk-white);
  border-radius: var(--kk-radius);
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 12px var(--kk-shadow);
  transition: transform 0.3s ease;
}

.kk-radio-card:hover {
  transform: translateY(-3px);
}

.kk-radio-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.kk-radio-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.kk-radio-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.kk-radio-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.kk-radio-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--kk-light-blue);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Form --- */
.kk-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--kk-white);
  padding: 2rem;
  border-radius: var(--kk-radius);
  box-shadow: 0 2px 12px var(--kk-shadow);
}

.kk-form h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.kk-form-group {
  margin-bottom: 1rem;
}

.kk-form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #666;
}

.kk-form-group input,
.kk-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--kk-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.kk-form-group input:focus,
.kk-form-group textarea:focus {
  border-color: var(--kk-light-blue);
}

.kk-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.kk-form-submit {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: var(--kk-light-blue);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.15s ease;
}

.kk-form-submit:hover {
  transform: scale(0.98);
}

/* --- APP Download Page --- */
.kk-app-hero {
  text-align: center;
  padding: 3rem 1rem;
}

.kk-app-hero img {
  max-width: 300px;
  margin: 0 auto 2rem;
  border-radius: var(--kk-radius);
}

.kk-app-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.kk-app-hero p {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
}

.kk-download-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.kk-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #333;
  color: white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.kk-download-btn:hover {
  transform: scale(1.03);
  color: white;
  text-decoration: none;
}

.kk-app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.kk-app-feature {
  text-align: center;
  padding: 1.5rem;
  background: var(--kk-white);
  border-radius: var(--kk-radius);
  box-shadow: 0 2px 8px var(--kk-shadow);
}

.kk-app-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.kk-app-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.kk-app-feature p {
  font-size: 0.8rem;
  color: #999;
}

/* --- Content Page --- */
.kk-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.kk-article h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.kk-article-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kk-border);
}

.kk-article-content {
  font-size: 1rem;
  line-height: 2;
}

.kk-article-content p {
  margin-bottom: 1.5rem;
  text-indent: 2em;
}

.kk-article-content img {
  border-radius: var(--kk-radius);
  margin: 1.5rem auto;
}

/* --- Travel Map --- */
.kk-travel-map {
  position: relative;
  background: var(--kk-cream);
  border-radius: var(--kk-radius);
  padding: 2rem;
  min-height: 400px;
}

.kk-map-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.kk-map-pin {
  background: var(--kk-white);
  padding: 1.5rem;
  border-radius: var(--kk-radius);
  box-shadow: 0 2px 12px var(--kk-shadow);
  max-width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.kk-map-pin:hover {
  transform: translateY(-4px);
}

.kk-map-pin-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* --- Utility --- */
.kk-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kk-fade-in.kk-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .kk-hero-content h1 { font-size: 2rem; }
  .kk-section { padding: 2.5rem 1rem; }
}

@media (max-width: 768px) {
  .kk-hero { min-height: 60vh; }
  .kk-hero-content h1 { font-size: 1.6rem; }
  .kk-hero-content p { font-size: 1rem; }
  .kk-section-title { font-size: 1.4rem; }
  .kk-player { flex-direction: column; text-align: center; }
  .kk-radio-card { flex-direction: column; }
  .kk-radio-cover { width: 100%; height: 160px; }
}

@media (min-width: 1440px) {
  .kk-section { max-width: 1400px; }
}
