/*
 Theme Name: Museder WPSite
 Theme URI: https://example.com/
 Author: Jerry Lin
 Author URI: https://example.com/
 Description: A product landing site theme for WordPress, built for Museder plugins.
 Version: 1.7.9
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: museder-wpsite
 Requires at least: 6.0
 Tested up to: 6.7
 Requires PHP: 7.4
*/

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Section Common Styles
   ============================================ */

.section {
    padding: 4rem 0;
}

.section--light {
    background: #fff;
}

.section--muted {
    background: #f8f9fa;
}

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

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-header__nav-list li {
    margin: 0;
}

.site-header__nav-list a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
    font-weight: 500;
}

.site-header__nav-list a:hover,
.site-header__nav-list a:focus {
    color: #333;
    outline: none;
}

.site-header__nav-list a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 2px;
}

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

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    text-align: left;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    color: #333;
    width: 100%;
    max-width: 400px;
}

.hero-card__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.hero-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.hero-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #555;
}

.hero-card__feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.hero-card__progress {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.hero-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s;
}

.hero-card__status {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 500;
    margin: 0.5rem 0 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn--primary {
    background: #667eea;
    color: #fff !important; /* 確保藍底按鈕文字為白色 */
}

.btn--primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn--secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.btn--secondary:active {
    background: rgba(102, 126, 234, 0.2);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

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

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card--pricing {
    border: 2px solid #e5e5e5;
    position: relative;
}

.card--pricing:hover {
    border-color: #667eea;
}

.card--pricing .pricing__card-name {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.card--testimonial {
    position: relative;
}

.card--testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   Logos Section
   ============================================ */

.logos {
    padding: 3rem 0;
    background: #f8f9fa;
}

.logos__inner {
    /* Container styles are handled by .container class */
}

.logos__title {
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 2rem;
}

.logos__list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logos__item {
    font-size: 1.125rem;
    color: #666;
    font-weight: 500;
}

.logos__link {
    text-decoration: none;
    color: inherit;
}

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

.features {
    padding: 5rem 0;
    background: #fff;
}

.features__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.features__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.features__item {
    /* Card styles are handled by .card class */
}

.features__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features__item-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
}

.features__item-desc {
    color: #666;
    line-height: 1.7;
}

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

.pricing {
    padding: 5rem 0;
    background: #f8f9fa;
}

.pricing__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pricing__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.pricing__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.pricing__card {
    /* Card styles are handled by .card class */
    padding: 2.5rem;
}

.pricing__card-name {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
}

.pricing__card-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.pricing__card-price-note {
    display: block;
    font-size: 0.875rem;
    font-weight: normal;
    color: #888;
    margin-top: 0.25rem;
}

.pricing__card-tagline {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.pricing__card-note {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.pricing__card-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.pricing__card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.pricing__card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.pricing__card-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    color: #fff; /* 確保藍底按鈕文字為白色 */
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials {
    padding: 5rem 0;
    background: #fff;
}

.testimonials__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.testimonials__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.testimonials__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.testimonials__item {
    /* Card styles are handled by .card class */
    padding: 2rem;
}

.testimonials__content {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonials__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e5e5;
    flex-shrink: 0;
}

.testimonials__info {
    flex: 1;
}

.testimonials__name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.testimonials__role {
    font-size: 0.875rem;
    color: #666;
}

.testimonials__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667eea;
    font-size: 1.25rem;
}

.testimonials__item--empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.testimonials__empty-text {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.faq-section__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-section__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.faq-section__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

.faq-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-section__item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-section__item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-section__item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    color: #333;
    transition: background 0.2s;
}

.faq-section__item summary:hover {
    background: #f8f9fa;
}

.faq-section__item summary:focus {
    outline: 2px solid #667eea;
    outline-offset: -2px;
    border-radius: 12px;
}

.faq-section__item summary::-webkit-details-marker {
    display: none;
}

.faq-section__item summary:after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s;
    font-weight: 300;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-section__item[open] summary {
    background: #f8f9fa;
}

.faq-section__item[open] summary:after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-section__item details {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.faq-section__item--empty {
    text-align: center;
    padding: 3rem;
}

.faq-section__empty-text {
    color: #666;
    font-size: 1rem;
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-header--center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   AI Section
   ============================================ */

.ai-section {
    padding: 5rem 0;
    background: #fff;
}

.ai-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ai-plan {
    padding: 2rem;
    position: relative;
}

.ai-plan__badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: #667eea;
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.ai-plan__title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.ai-plan__tagline {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.ai-plan__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-plan__list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.ai-plan__list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.card--highlight {
    border: 2px solid #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.card--highlight:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

/* ============================================
   Empty States
   ============================================ */

.section-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.section-empty--centered {
    text-align: center;
    padding: 3rem 1.5rem;
}

.section-empty p,
.section-empty--centered p {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

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

.site-footer {
    background: #2d3748;
    color: #fff;
    padding: 3rem 0;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer__nav a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer-legal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.site-footer-legal a {
    text-decoration: none;
    color: inherit;
}

.site-footer-legal a:hover {
    text-decoration: underline;
}

.footer-separator {
    margin: 0 0.35rem;
    opacity: 0.6;
}

/* ============================================
   Animation Classes
   ============================================ */

.js-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate--delay-1 {
    transition-delay: 0.1s;
}

.animate--delay-2 {
    transition-delay: 0.2s;
}

.animate--delay-3 {
    transition-delay: 0.3s;
}

.animate--delay-4 {
    transition-delay: 0.4s;
}

.animate--delay-5 {
    transition-delay: 0.5s;
}

.animate--delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   AI Suite Page
   ============================================ */

.ai-suite-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ai-suite-hero .section-title,
.ai-suite-hero .section-subtitle {
    color: #fff;
}

.ai-modules {
    padding: 5rem 0;
    background: #fff;
}

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

.ai-module {
    padding: 2rem;
}

.ai-module__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.ai-module__intro {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ai-module__plans {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.ai-module__plans li {
    padding: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.ai-module__plans li strong {
    color: #333;
    font-weight: 600;
}

.ai-module__hook {
    font-size: 0.9375rem;
    color: #667eea;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.core-features {
    padding: 5rem 0;
}

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

.core-feature {
    padding: 2rem;
}

.core-feature h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
}

.core-feature p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.contact-hero .section-title,
.contact-hero .section-subtitle {
    color: #fff;
}

.contact-form-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-form-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    padding: 2.5rem;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
}

.contact-form__label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form__required {
    color: #e53e3e;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    padding: 0.875rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    padding: 2rem;
    background: #fff;
}

.contact-info__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info__text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-info__text:last-child {
    margin-bottom: 0;
}

.contact-info__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.contact-info__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.contact-info__list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.contact-info__note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.contact-info__note small {
    color: #888;
    font-size: 0.875rem;
}

.contact-form__messages {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contact-form__messages--error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.contact-form__messages--error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-form__messages--error li {
    margin: 0.25rem 0;
}

.contact-form__messages--success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.contact-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.contact-form__checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

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

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__content {
        text-align: center;
    }

    .hero__buttons {
        justify-content: center;
    }

    .features__grid,
    .pricing__grid,
    .testimonials__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .ai-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero-card {
        max-width: 100%;
    }

    .features,
    .pricing,
    .testimonials,
    .faq-section {
        padding: 3rem 0;
    }

    .features__title,
    .pricing__title,
    .testimonials__title,
    .faq-section__title {
        font-size: 2rem;
    }

    .features__grid,
    .pricing__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-header__nav-list {
        gap: 1rem;
        font-size: 0.9375rem;
    }

    .site-header__nav-list a {
        padding: 0.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .pricing__card {
        padding: 2rem;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .logos__list {
        gap: 2rem;
    }

    .ai-plan-grid {
        grid-template-columns: 1fr;
    }

    .card--highlight {
        transform: scale(1);
    }

    .card--highlight:hover {
        transform: translateY(-4px);
    }

    .ai-modules__grid {
        grid-template-columns: 1fr;
    }

    .core-features__grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* ============================================
   WooCommerce Product Page
   ============================================ */

.hero--product {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hero--product .hero__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero__eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero__pricing-inline {
    margin: 2rem 0;
}

/* RestoreOne Pro Price Block */
.msd-pro-price-block {
    text-align: center;
}

.msd-pro-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.msd-pro-price-regular {
    font-size: 1.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.msd-pro-price-sale {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.msd-pro-price-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.msd-pro-price-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.msd-pro-price-note {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.msd-pro-price-cycle {
    font-size: 0.9375rem;
    font-weight: normal;
    opacity: 0.9;
    margin: 0.75rem 0 0;
}

.hero__guarantee {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-top: 1.5rem;
    font-style: italic;
}

.section--product {
    padding: 5rem 0;
    background: #fff;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-content {
    max-width: none;
}

.product-intro {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.product-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-feature-card {
    padding: 1.5rem;
}

.product-feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.product-feature-card__desc {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.product-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-bullets li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.product-bullets li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.5rem;
}

.product-sidebar {
    position: sticky;
    top: 2rem;
}

.product-purchase-card {
    padding: 2rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-purchase-card__title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.product-purchase-card__price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.product-purchase-card__price .msd-pro-price-block {
    text-align: center;
}

.product-purchase-card__price .msd-pro-price-main {
    justify-content: center;
}

.product-purchase-card__price .msd-pro-price-regular {
    font-size: 1.5rem;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ccc;
}

.product-purchase-card__price .msd-pro-price-sale {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    line-height: 1;
}

.product-purchase-card__price .msd-pro-price-badge {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.product-purchase-card__price .msd-pro-price-note {
    color: #666;
}

.product-purchase-card__price .msd-pro-price-cycle {
    color: #888;
}

.product-purchase-card__form {
    margin-bottom: 1.5rem;
}

.product-purchase-card__form .quantity,
.product-purchase-card__form .single_add_to_cart_button {
    width: 100%;
}

.product-purchase-card__form .single_add_to_cart_button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: #667eea;
    color: #fff !important; /* 確保藍底按鈕文字為白色 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.product-purchase-card__form .single_add_to_cart_button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.product-purchase-card__highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-purchase-card__highlights li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.product-purchase-card__guarantee {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.6;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

/* Product Page RWD */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-sidebar {
        position: static;
        order: -1; /* Show purchase card first on mobile */
    }

    .product-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero--product {
        padding: 4rem 0;
    }

    .hero--product .hero__title {
        font-size: 2.5rem;
    }

    .hero--product .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__price {
        font-size: 2rem;
    }

    .section--product {
        padding: 3rem 0;
    }

    .product-purchase-card {
        padding: 1.5rem;
    }
}

/* ============================================
   WooCommerce My Account Page
   ============================================ */

.account-page {
    padding-top: 0;
    padding-bottom: 4rem;
    background-color: #f5f7fb;
}

/* Hero 區塊對齊 - 確保與 account-layout 一致 */
.woocommerce-account .account-hero {
    background: linear-gradient(135deg, #5b5fff, #9146ff);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

/* Hero 內部容器，與 account-layout 對齊 */
.woocommerce-account .account-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (min-width: 1440px) {
    .woocommerce-account .account-hero__inner {
        max-width: 1400px;
        padding: 0 4rem;
    }
}

.account-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.account-hero__subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================
   My Account Page - Wider Layout
   ============================================ */

/* 
 * DOM 結構分析：
 * - header.php 有 <main id="primary" class="site-main">
 * - my-account.php 直接輸出 <div class="account-page">，沒有被 .container 包裹
 * - 但 WooCommerce My Account 頁面在 WordPress 中仍然是一個 Page，可能被頁面模板包裹
 * 
 * 真正限制寬度的 selector：
 * - .container 的 max-width: 1120px (全局，第 34 行)
 * - 如果 My Account 內容被包在 .container 內，就會被限制在 1120px
 * 
 * 解決方案：針對 .woocommerce-account 頁面，放寬所有可能的 .container 寬度
 */

/* 放寬 My Account 頁面中所有可能的 .container 寬度 */
.woocommerce-account .site-main .container,
.woocommerce-account .site-main > .container,
.woocommerce-account .section > .container,
.woocommerce-account .entry-content {
    max-width: 1280px;  /* 從 1120px 增加到 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
}

/* 在更大螢幕進一步加寬 */
@media (min-width: 1440px) {
    .woocommerce-account .site-main .container,
    .woocommerce-account .site-main > .container,
    .woocommerce-account .section > .container,
    .woocommerce-account .entry-content {
        max-width: 1400px;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* 確保 account-page 和 account-layout 在 My Account 頁面有足夠寬度 */
.woocommerce-account .account-page {
    width: 100%;
    max-width: none;
}

.woocommerce-account .account-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* 在更大螢幕上增加間距 */
@media (min-width: 1440px) {
    .woocommerce-account .account-layout {
        max-width: 1400px;
        gap: 3rem;
        padding: 0 4rem;
    }
}

.account-sidebar {
    position: sticky;
    top: 6rem;
}

.account-nav__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
    color: #6b7280;
}

.account-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.account-nav__item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.account-nav__item:last-child {
    border-bottom: none;
}

.account-nav__link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: #111827;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.account-nav__item.is-active .account-nav__link,
.account-nav__item.current-menu-item .account-nav__link,
.account-nav__link:hover {
    background-color: #eef2ff;
    color: #3730a3;
}

.account-content {
    min-height: 320px;
    background: #fff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    width: 100%;
}

.account-dashboard__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.account-dashboard__intro {
    font-size: 0.98rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 100%;
}

.account-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.account-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 200px;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.account-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111827;
}

.account-card__text {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.account-card__button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: #4f46e5;
    color: #ffffff !important; /* 確保藍底按鈕文字為白色 */
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.account-card__button:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.header-account-link {
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 1.25rem;
    text-decoration: none;
    color: #111827;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.header-account-link:hover {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

/* My Account RWD */
@media (max-width: 900px) {
    .woocommerce-account .account-layout {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        max-width: 100%;
    }
    
    .woocommerce-account .account-hero__inner {
        padding: 0 2rem;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav__list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 999px;
        -webkit-overflow-scrolling: touch;
    }

    .account-nav__item {
        border-bottom: none;
        border-right: 1px solid rgba(15, 23, 42, 0.05);
        flex-shrink: 0;
    }

    .account-nav__item:last-child {
        border-right: none;
    }

    .account-nav__link {
        white-space: nowrap;
        padding-inline: 1rem;
    }

    .account-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-account-link {
        margin-left: 0.75rem;
        padding-inline: 0.75rem;
        font-size: 0.875rem;
    }

    .account-hero {
        padding: 2rem 1rem;
    }

    .account-hero__title {
        font-size: 1.75rem;
    }

    .account-hero__subtitle {
        font-size: 0.9375rem;
    }

    .account-content {
        padding: 2rem 1.5rem;
    }
    
    .account-layout {
        padding: 0 1.5rem;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .features__title,
    .pricing__title,
    .testimonials__title,
    .faq-section__title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn--lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   Legal Pages (Terms of Service, Refund Policy)
   ============================================ */

.page-template-default .entry-content,
.page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    line-height: 1.8;
    color: #333;
}

/* Override .entry-content max-width for WooCommerce My Account page */
.woocommerce-account .page .entry-content {
    max-width: none;  /* 移除 800px 限制，讓 account-layout 的 1280px 生效 */
}

.page .entry-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 0;
}

/* Hide page title on My Account page */
body.woocommerce-account .page .entry-title,
body.woocommerce-account .page .entry-header {
    display: none !important;
}

.page .entry-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.page .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.page .entry-content h2:first-of-type {
    margin-top: 0;
}

.page .entry-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.page .entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #555;
}

.page .entry-content ul,
.page .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.page .entry-content li {
    margin-bottom: 0.75rem;
    color: #555;
}

.page .entry-content li::marker {
    color: #667eea;
}

.page .entry-content strong {
    font-weight: 600;
    color: #333;
}

.page .entry-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.page .entry-content a:hover {
    border-bottom-color: #667eea;
}

.page .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f7f7f7;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    font-style: italic;
    color: #666;
}

.page .entry-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.page .entry-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Legal page specific styling */
.page-id-terms-of-service .entry-content,
.page-id-refund-policy .entry-content,
.page-slug-terms-of-service .entry-content,
.page-slug-refund-policy .entry-content {
    background: #fff;
}

/* RWD for legal pages */
@media (max-width: 768px) {
    .page .entry-header {
        padding: 2rem 1rem 1.5rem;
    }

    .page .entry-title {
        font-size: 2rem;
    }

    .page-template-default .entry-content,
    .page .entry-content {
        padding: 2rem 1rem;
    }

    .page .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .page .entry-content h3 {
        font-size: 1.25rem;
    }
}

