.corporate-website-page,
.corporate-website-page button,
.corporate-website-page input,
.corporate-website-page textarea,
.corporate-website-page select {
    font-family: "Noto Serif TC", serif;
}

.process-section, .features-section, .credential-section, .contact-cta, .overview-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 論文指導頁面的 Hero 區域背景 */
#hero.with-bg-image {
    background-image: url('Gemini_Generated_Image_84jw5d84jw5d84jw.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero.home-hero {
    --hero-glow-x: 50%;
    --hero-glow-y: 50%;
    background-image: url('ChatGPT Image 2026年7月17日 下午07_51_07.png');
    background-color: var(--site-bg);
    background-size: cover;
    background-position: center;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    padding: 0;
    overflow: hidden;
}

#hero.home-hero::after {
    content: "";
    position: absolute;
    left: var(--hero-glow-x);
    top: var(--hero-glow-y);
    width: clamp(180px, 18vw, 340px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0) 72%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

#hero.home-hero:hover::after {
    opacity: 1;
}

#hero.home-hero::before {
    display: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    padding: 0 2rem;
    text-align: center;
}

.home-hero-content h1 {
    max-width: 920px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 5.4rem);
    font-weight: 600;
    line-height: 1.18;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
}

#hero.corporate-website-hero {
    background-image: url('ChatGPT Image 2026年6月20日 上午12_38_49.png');
    background-color: var(--site-bg);
    background-size: 100% auto;
    background-position: center -30px;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 0;
    aspect-ratio: 1974 / 797;
    padding: 0;
}

body:has(#hero.corporate-website-hero) main {
    margin-top: 38px;
}

#hero.corporate-website-hero::before {
    display: none;
}

#hero.ecommerce-store-hero {
    background-image: url('ChatGPT Image 2026年6月20日 上午01_30_37.png');
    background-color: var(--site-bg);
    background-size: contain;
    background-position: center;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 0;
    aspect-ratio: 1976 / 796;
    padding: 0;
}

#hero.ecommerce-store-hero::before {
    display: none;
}

#hero.with-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

#hero.with-bg-image.home-hero::before,
#hero.with-bg-image.corporate-website-hero::before,
#hero.with-bg-image.ecommerce-store-hero::before {
    display: none;
}

#hero.with-bg-image .hero-content {
    position: relative;
    z-index: 2;
}

#hero.with-bg-image .hero-content h1,
#hero.with-bg-image .hero-content .hero-tagline {
    color: #333333;
}

#hero .hero-tagline {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    letter-spacing: 0.3rem;
    opacity: 0.95;
}

.process-section {
    background: var(--site-bg);
}

.overview-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: var(--site-bg);
    scroll-margin-top: 90px;
}

.overview-carousel {
    display: block;
    height: 360vh;
}

.overview-carousel-viewport {
    height: clamp(500px, 68vh, 640px);
    min-height: 500px;
    overflow: hidden;
    position: sticky;
    top: 90px;
    background: #ffffff;
}

.overview-carousel-track {
    position: relative;
    height: 100%;
}

.overview-carousel .overview-panel {
    position: absolute;
    inset: 0;
    height: 100%;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(12%);
    pointer-events: none;
    transition: opacity 1100ms ease, transform 1100ms ease;
}

.overview-carousel .overview-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.overview-carousel .overview-panel-split {
    min-height: 0;
}

.overview-panel {
    scroll-margin-top: 90px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1.4rem 2rem;
    min-height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.overview-panel-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.overview-copy {
    min-width: 0;
}

.overview-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.overview-kicker {
    margin: 0 0 0.75rem;
    color: #777777;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.overview-panel h2 {
    margin: 0 0 1rem;
    color: #333333;
    font-size: 1.6rem;
    text-align: left;
}

.overview-panel p {
    color: #555555;
    line-height: 1.8;
}

.overview-panel ul {
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    color: #444444;
    line-height: 1.9;
}

.overview-list-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.3fr);
    align-items: center;
    gap: 1.5rem;
}

.overview-list-action ul {
    margin-right: 0;
}

.overview-case-button {
    justify-self: center;
    transform: translateX(-6rem);
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.module-hero {
    max-width: none;
    margin: 0;
    padding: 0;
    scroll-margin-top: 90px;
    background-image: url('ChatGPT Image 2026年6月20日 上午01_30_37.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1976 / 796;
}

.portfolio-sticky-showcase {
    height: 780vh;
    background: #ffffff;
}

.portfolio-sticky-viewport {
    position: sticky;
    top: 90px;
    height: clamp(500px, 68vh, 640px);
    min-height: 500px;
    overflow: hidden;
    background: #ffffff;
}

.portfolio-sticky-track {
    position: relative;
    height: 100%;
}

.portfolio-sticky-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: center;
    padding: 1.4rem 2rem;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(12%);
    pointer-events: none;
    transition: opacity 900ms ease, transform 900ms ease;
}

.portfolio-sticky-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portfolio-sticky-copy p {
    margin: 0 0 0.9rem;
    color: #777777;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portfolio-sticky-copy h2 {
    margin: 0 0 1rem;
    color: #111111;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 1.05;
    text-align: left;
}

.portfolio-sticky-copy span {
    display: block;
    max-width: 36rem;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.portfolio-sticky-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(430px, 54vh);
    border: 1px solid #222222;
    background: #0f1014;
    color: #d2b45f;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 1;
}

.process-section h2, .features-section h2, .credential-section h2, .contact-cta h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333333;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.process-grid.website-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-item {
    background: #f5f5f5;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.process-item:nth-child(even) {
    background: #ffffff;
}

.process-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card-link:focus-visible {
    outline: 3px solid #4a90e2;
    outline-offset: 3px;
}

.process-number {
    width: 50px;
    height: 50px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-item h3 {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 0.2rem;
    font-weight: normal;
}

.process-item h3:last-of-type {
    margin-bottom: 1rem;
}

.process-item p {
    color: #666666;
    line-height: 1.8;
    font-size: 0.9rem;
    text-align: center;
}

.process-card-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

.features-section {
    background: var(--site-bg);
}

.service-marquee {
    overflow: hidden;
    margin: 0 auto 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.service-marquee-track {
    display: flex;
    width: max-content;
    animation: serviceMarquee 30s linear infinite;
    align-items: flex-end;
}

.service-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 4.5rem;
    padding-right: 4.5rem;
}

.service-marquee-track > span,
.service-marquee-track > a,
.service-marquee-group > a {
    flex: 0 0 auto;
    color: #333333;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.service-marquee-item span {
    color: #333333;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.service-marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    width: 240px;
    color: inherit;
    text-decoration: none;
}

.service-marquee-item:hover img {
    transform: translateY(-4px);
}

.service-marquee-item img {
    display: block;
    width: 220px;
    height: 165px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

@keyframes serviceMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.assistance-list {
    max-width: 900px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1rem;
}

.assistance-block {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.assistance-block:nth-child(odd) {
    background: #f3f4f5;
}

.assistance-block:nth-child(even) {
    background: #ffffff;
}

.assistance-block h3 {
    margin: 0 0 0.8rem;
    color: #333333;
    font-size: 1.1rem;
}

.assistance-block h3:not(:first-child) {
    margin-top: 1.5rem;
}

.assistance-block p {
    margin: 0;
    color: #666666;
    line-height: 1.8;
}

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

.feature-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e8e8e8;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: #4a90e2;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
}

.feature-item h3 {
    font-size: 1.4rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666666;
    line-height: 1.6;
}

.credential-section {
    background: var(--site-bg);
}

.certificate-container {
    text-align: center;
    margin-top: 2rem;
}

.certificate-container img {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-cta {
    background: transparent;
    color: #333333;
    text-align: center;
}

.contact-cta h2 {
    color: #333333;
}

.contact-cta p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.cta-button {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 1rem 3rem;
    border-radius: 0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #34495e;
}

.cta-button.cta-primary {
    background: #2c3e50;
    color: #ffffff;
}

.cta-button.cta-primary:hover {
    background: #1f2d3a;
}

.cta-button.cta-secondary {
    background: #ffffff;
    color: #333333;
    border: 1px solid #b8b8b8;
}

.cta-button.cta-secondary:hover {
    background: #f2f2f2;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .cta-button {
    flex: 0 1 auto;
    min-width: 170px;
}

.service-page-actions {
    margin: 0;
    padding: 1.5rem 1rem;
    background: var(--site-bg);
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button-row .cta-button {
    margin: 0;
    flex: 0 1 auto;
    min-width: 170px;
}

.button-row {
    text-align: center;
}

@media (max-width: 768px) {
    .overview-section {
        grid-template-columns: 1fr;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .overview-carousel-viewport {
        height: min(640px, calc(100vh - 80px));
        min-height: 520px;
        top: 80px;
    }

    .portfolio-sticky-showcase {
        height: 780vh;
    }

    .portfolio-sticky-viewport {
        top: 80px;
        height: min(640px, calc(100vh - 80px));
        min-height: 560px;
    }

    .portfolio-sticky-panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.35rem;
        align-content: center;
    }

    .portfolio-sticky-copy h2 {
        font-size: 2rem;
    }

    .portfolio-sticky-copy span {
        font-size: 0.95rem;
    }

    .portfolio-sticky-visual {
        min-height: 220px;
        font-size: 4rem;
    }

    .overview-panel {
        padding: 1.35rem;
    }

    .overview-panel-split {
        grid-template-columns: 1fr;
    }

    .overview-panel h2 {
        font-size: 1.35rem;
    }

    .overview-list-action {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .overview-case-button {
        transform: none;
    }

    .service-marquee-track {
        animation-duration: 22s;
    }

    .service-marquee-group {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }

    .service-marquee-track > span,
    .service-marquee-item span {
        font-size: 0.95rem;
    }

    .service-marquee-item {
        width: 170px;
        gap: 0.8rem;
    }

    .service-marquee-item img {
        width: 160px;
        height: 120px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-section h2, .features-section h2, .credential-section h2, .contact-cta h2 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .hero-actions .cta-button {
        min-width: auto;
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    header {
        padding: 1rem 1.2rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .cta-button {
        padding: 0.95rem 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.9rem 1rem;
    }

    nav ul {
        display: block;
        text-align: center;
    }

    nav li {
        display: block;
        margin-bottom: 0.75rem;
    }

    nav a {
        display: inline-block;
        width: auto;
    }

    main {
        margin-top: 90px;
    }

    section {
        padding: 2rem 1rem;
    }

    #hero {
        min-height: auto;
        padding: 4rem 0.75rem;
    }

    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #hero .hero-tagline {
        font-size: 1rem;
        margin-top: 1rem;
        letter-spacing: 0;
    }

    .process-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-item,
    .feature-item,
    .notice-item,
    .faq-item {
        padding: 1.5rem;
    }

    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .cta-button {
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .review-form-wrap,
    .reviews-list,
    .faq-container,
    .notice-container {
        padding: 1rem;
    }

    .feature-item h3,
    .process-item h3 {
        font-size: 1.1rem;
    }

    .process-item p,
    .feature-item p {
        text-align: left;
        font-size: 0.95rem;
    }

    .contact-cta p {
        font-size: 1rem;
    }

    .certificate-container img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.75rem;
    }

    header {
        padding: 0.75rem 0.75rem;
    }

    #hero {
        padding: 3rem 0.75rem;
    }

    #hero h1 {
        font-size: 1.75rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.95rem 1rem;
    }

    .process-item,
    .feature-item {
        padding: 1.25rem;
    }

    .process-item p,
    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .process-grid.website-process-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ 樣式 */
.faq-container {
    max-width: 900px;
    margin: 3rem auto;
}

.faq-item {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 1.5rem;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.4rem;
    color: #4a90e2;
    transition: transform 0.3s ease;
}

.faq-item.open h3::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item p,
.faq-item ul {
    display: none;
    color: #666666;
    line-height: 1.8;
    text-align: left;
    margin-top: 1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease;
}

.faq-item.open p,
.faq-item.open ul {
    display: block;
    opacity: 1;
    max-height: 1500px;
}

.faq-item ul li {
    margin-bottom: 0.5rem;
}

/* 諮詢前須知樣式 */
.notice-container {
    max-width: 900px;
    margin: 3rem auto;
}

.notice-item {
    background: #ffffff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.notice-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.notice-item p {
    color: #333333;
    line-height: 1.8;
    text-align: left;
}

.notice-item ul {
    color: #333333;
    line-height: 1.8;
}

.notice-item ul li {
    margin-bottom: 0.5rem;
}

/* 視覺化流程圖樣式 */
.visual-process {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.visual-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.visual-icon {
    width: 100px;
    height: 100px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 4px dotted #6ba3e8;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.visual-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
}

.visual-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.visual-arrow {
    font-size: 2rem;
    color: #4a90e2;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .visual-process {
        flex-direction: column;
    }
    
    .visual-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

.button-row .cta-button {
    display: inline-block !important;
    width: auto !important;
    flex: 0 1 auto;
    min-width: 170px;
}

.button-row {
    justify-content: center;
}

.cta-button,
.cta-button.cta-primary,
.cta-button.cta-secondary {
    background: transparent !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
}

.cta-button:hover,
.cta-button.cta-primary:hover,
.cta-button.cta-secondary:hover {
    background: #111111 !important;
    color: #d2b45f !important;
}
