/*
Theme Name: Arthur Style
Description: 《亞瑟瘋》專屬WordPress佈景主題 - 探索生活的密碼。整合移動生活、旅人筆記、身體密碼三大主題的現代化部落格設計。
Author: Manus AI
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arthur-style
Tags: blog, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, one-column, two-columns, three-columns, responsive-layout, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
  /* Arthur Style Color Palette */
  --arthur-primary: #1E3A8A;
  --arthur-secondary: #F97316;
  --arthur-accent: #10B981;
  --arthur-gray-50: #F8FAFC;
  --arthur-gray-100: #F1F5F9;
  --arthur-gray-500: #64748B;
  --arthur-gray-900: #1F2937;
  
  /* Typography */
  --arthur-font-sans: 'Inter', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --arthur-font-serif: 'Source Han Serif TC', serif;
  
  /* Spacing */
  --arthur-spacing-xs: 0.5rem;
  --arthur-spacing-sm: 1rem;
  --arthur-spacing-md: 1.5rem;
  --arthur-spacing-lg: 2rem;
  --arthur-spacing-xl: 3rem;
  
  /* Border Radius */
  --arthur-radius-sm: 0.375rem;
  --arthur-radius-md: 0.5rem;
  --arthur-radius-lg: 0.75rem;
  
  /* Shadows */
  --arthur-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --arthur-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --arthur-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--arthur-font-sans);
  line-height: 1.6;
  color: var(--arthur-gray-900);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--arthur-spacing-sm);
  color: var(--arthur-gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: var(--arthur-spacing-sm);
}

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

a:hover {
  color: var(--arthur-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.arthur-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--arthur-spacing-sm);
}

.arthur-grid {
  display: grid;
  gap: var(--arthur-spacing-lg);
}

.arthur-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ==========================================================================
   Header
   ========================================================================== */

.arthur-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--arthur-gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.arthur-header.scrolled {
  background: #ffffff;
  box-shadow: var(--arthur-shadow-md);
}

.arthur-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--arthur-spacing-sm) 0;
}

.arthur-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--arthur-primary);
}

.arthur-nav {
  display: flex;
  gap: var(--arthur-spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.arthur-nav a {
  font-weight: 500;
  padding: var(--arthur-spacing-xs) var(--arthur-spacing-sm);
  border-radius: var(--arthur-radius-sm);
  transition: all 0.2s ease;
}

.arthur-nav a:hover {
  background: var(--arthur-gray-50);
  color: var(--arthur-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.arthur-hero {
  background: linear-gradient(135deg, var(--arthur-primary) 0%, var(--arthur-accent) 100%);
  color: white;
  text-align: center;
  padding: var(--arthur-spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.arthur-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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

.arthur-hero h1 {
  font-size: 3rem;
  margin-bottom: var(--arthur-spacing-md);
  color: white;
}

.arthur-hero p {
  font-size: 1.25rem;
  margin-bottom: var(--arthur-spacing-lg);
  opacity: 0.9;
}

.arthur-cta-button {
  display: inline-block;
  background: var(--arthur-secondary);
  color: white;
  padding: var(--arthur-spacing-sm) var(--arthur-spacing-lg);
  border-radius: var(--arthur-radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--arthur-shadow-md);
}

.arthur-cta-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: var(--arthur-shadow-lg);
  color: white;
}

/* ==========================================================================
   Content Cards
   ========================================================================== */

.arthur-content-section {
  padding: var(--arthur-spacing-xl) 0;
}

.arthur-card {
  background: white;
  border-radius: var(--arthur-radius-lg);
  box-shadow: var(--arthur-shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--arthur-gray-100);
}

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

.arthur-card-header {
  padding: var(--arthur-spacing-lg);
  position: relative;
}

.arthur-card-mobile-life {
  border-left: 4px solid var(--arthur-primary);
}

.arthur-card-mobile-life .arthur-card-icon {
  background: var(--arthur-primary);
}

.arthur-card-traveler-notes {
  border-left: 4px solid var(--arthur-secondary);
}

.arthur-card-traveler-notes .arthur-card-icon {
  background: var(--arthur-secondary);
}

.arthur-card-body-code {
  border-left: 4px solid var(--arthur-accent);
}

.arthur-card-body-code .arthur-card-icon {
  background: var(--arthur-accent);
}

.arthur-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--arthur-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--arthur-spacing-sm);
  color: white;
  font-size: 1.5rem;
}

.arthur-card h3 {
  margin-bottom: var(--arthur-spacing-sm);
  color: var(--arthur-gray-900);
}

.arthur-card p {
  color: var(--arthur-gray-500);
  margin-bottom: var(--arthur-spacing-md);
}

.arthur-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--arthur-radius-sm);
  margin-bottom: var(--arthur-spacing-sm);
}

.arthur-read-more {
  color: var(--arthur-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--arthur-spacing-xs);
  transition: all 0.2s ease;
}

.arthur-read-more:hover {
  color: var(--arthur-secondary);
  transform: translateX(4px);
}

/* ==========================================================================
   Latest Articles
   ========================================================================== */

.arthur-articles {
  background: var(--arthur-gray-50);
  padding: var(--arthur-spacing-xl) 0;
}

.arthur-article-card {
  background: white;
  border-radius: var(--arthur-radius-lg);
  overflow: hidden;
  box-shadow: var(--arthur-shadow-sm);
  transition: all 0.3s ease;
}

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

.arthur-article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.arthur-article-content {
  padding: var(--arthur-spacing-lg);
}

.arthur-article-meta {
  display: flex;
  gap: var(--arthur-spacing-sm);
  margin-bottom: var(--arthur-spacing-sm);
  font-size: 0.875rem;
  color: var(--arthur-gray-500);
}

.arthur-article-category {
  background: var(--arthur-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--arthur-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.arthur-footer {
  background: var(--arthur-gray-900);
  color: white;
  padding: var(--arthur-spacing-xl) 0 var(--arthur-spacing-lg);
}

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

.arthur-footer h4 {
  color: white;
  margin-bottom: var(--arthur-spacing-sm);
}

.arthur-footer p,
.arthur-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.arthur-footer a:hover {
  color: var(--arthur-secondary);
}

.arthur-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--arthur-spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .arthur-nav {
    display: none;
  }
  
  .arthur-hero h1 {
    font-size: 2rem;
  }
  
  .arthur-hero p {
    font-size: 1rem;
  }
  
  .arthur-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .arthur-container {
    padding: 0 var(--arthur-spacing-sm);
  }
}

@media (max-width: 480px) {
  .arthur-hero {
    padding: var(--arthur-spacing-lg) 0;
  }
  
  .arthur-hero h1 {
    font-size: 1.75rem;
  }
  
  .arthur-card-header {
    padding: var(--arthur-spacing-md);
  }
  
  .arthur-article-content {
    padding: var(--arthur-spacing-md);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arthur-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.arthur-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.arthur-text-center { text-align: center; }
.arthur-text-left { text-align: left; }
.arthur-text-right { text-align: right; }

.arthur-mb-sm { margin-bottom: var(--arthur-spacing-sm); }
.arthur-mb-md { margin-bottom: var(--arthur-spacing-md); }
.arthur-mb-lg { margin-bottom: var(--arthur-spacing-lg); }

.arthur-mt-sm { margin-top: var(--arthur-spacing-sm); }
.arthur-mt-md { margin-top: var(--arthur-spacing-md); }
.arthur-mt-lg { margin-top: var(--arthur-spacing-lg); }

.arthur-hidden { display: none; }
.arthur-visible { display: block; }

.arthur-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

