/*
Theme Name: Pico Cloud
Theme URI: https://picotw.com
Author: Pico Cloud Technology Ltd
Author URI: https://picotw.com
Description: Pico Cloud - Cloud Communication Platform WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pico-cloud
Tags: business, communications, sms, voice, cloud-services
*/

/* ============================================
   Pico Cloud WordPress Theme
   ============================================ */

/* CSS Variables - 主题色板 */
:root {
    --pico-primary: #4f46e5;
    --pico-primary-light: #6366f1;
    --pico-accent: #a855f7;
    --pico-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --pico-logo-gradient: linear-gradient(135deg, #f472b6, #c084fc);
    
    --pico-dark: #1e293b;
    --pico-text: #111827;
    --pico-text-gray: #6b7280;
    --pico-text-light: #9ca3af;
    
    --pico-bg: #ffffff;
    --pico-bg-light: #f9fafb;
    --pico-border: #e5e7eb;
    
    --pico-success: #15803d;
    --pico-warning: #b45309;
    --pico-error: #dc2626;
    --pico-info: #2563eb;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Consolas', 'Liberation Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--pico-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    background: var(--pico-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--pico-logo-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #d1d5db;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-primary {
    background: var(--pico-text);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #374151;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   Main Content Area
   ============================================ */

.site-content {
    margin-top: 64px;
}

.page-template-fullwidth {
    max-width: 100%;
    padding: 0;
}

.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ============================================
   Hero Section (首页)
   ============================================ */

.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 24px 80px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--pico-gradient);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #030712;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--pico-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-hero-primary {
    background: #111827;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.btn-hero-secondary {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 80px 24px;
    background: white;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #030712;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--pico-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--pico-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    padding: 80px 24px;
    background: var(--pico-bg-light);
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.pricing-tab {
    padding: 10px 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-tab.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.pricing-card .desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pricing-features li {
    font-size: 14px;
    color: #374151;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: "✓";
    color: #15803d;
    font-weight: 600;
}

/* ============================================
   Rate Table
   ============================================ */

.rate-table-section {
    padding: 60px 24px;
    background: white;
}

.rate-table-container {
    max-width: 1000px;
    margin: 0 auto;
}

.rate-table-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rate-table th,
.rate-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.rate-table th {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-table td {
    font-size: 14px;
    color: #374151;
}

.rate-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   About Page
   ============================================ */

.about-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 24px;
    text-align: center;
}

.about-content {
    padding: 60px 24px;
    background: white;
}

.about-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.value-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: #6b7280;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.office-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
}

.office-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.office-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   API Documentation Page
   ============================================ */

.docs-page {
    background: #f9fafb;
    min-height: calc(100vh - 64px);
}

.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.docs-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.docs-sidebar-section {
    margin-bottom: 24px;
}

.docs-sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.docs-sidebar-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.docs-sidebar-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.docs-sidebar-item.active {
    background: #eef2ff;
    color: var(--pico-primary);
    font-weight: 500;
}

.method-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
    min-width: 38px;
    text-align: center;
}

.method-get { background: #dcfce7; color: #15803d; }
.method-post { background: #dbeafe; color: #2563eb; }
.method-put { background: #fef3c7; color: #b45309; }
.method-delete { background: #fee2e2; color: #dc2626; }

.docs-content {
    flex: 1;
    padding: 40px 48px;
    max-width: 960px;
}

.api-version {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.docs-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.docs-content .intro-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.7;
}

.base-url-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.base-url-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.base-url-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #111827;
    flex: 1;
}

.docs-section {
    margin-bottom: 44px;
}

.docs-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.docs-section p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 14px;
    line-height: 1.7;
}

.code-block {
    background: #1f2937;
    border-radius: 8px;
    padding: 14px 18px;
    overflow-x: auto;
    margin: 12px 0;
}

.code-block pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
}

.endpoint-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.endpoint-header {
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

.endpoint-method {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 55px;
    text-align: center;
}

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #374151;
}

.endpoint-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    padding: 16px 18px 0;
}

.endpoint-desc {
    padding: 8px 18px 16px;
    font-size: 14px;
    color: #4b5563;
}

.endpoint-content {
    padding: 0 18px 18px;
}

.subsection-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.params-table th {
    background: #f9fafb;
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    text-transform: uppercase;
}

.params-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.param-name {
    font-weight: 500;
    color: #111827;
    font-family: var(--font-mono);
    font-size: 12px;
}

.param-type {
    color: #7c3aed;
    font-family: var(--font-mono);
    font-size: 11px;
}

.param-desc {
    color: #4b5563;
    font-size: 13px;
}

.security-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px;
    margin: 14px 0;
}

.security-box h4 {
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.security-box p {
    color: #a16207;
    font-size: 13px;
}

.rate-limit {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #1d4ed8;
    margin-top: 12px;
}

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

.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 60px 24px 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--pico-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #9ca3af;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .docs-sidebar {
        display: none;
    }
    
    .docs-content {
        padding: 24px;
    }
}

/* WordPress Required */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.main-nav li {
  list-style: none;
}
.custom-logo {
  max-width: 80px;
}